Skip to content

making python Alignment objects subscriptable  #65

Description

@diekhans

Being able to index as an array as well as iterate would be useful

>>> type(blk)                                                                                              
<class 'taffy.lib.Alignment'>                                                                              
>>> blk[0]                                                                                                 
Traceback (most recent call last):                                                                         
  File "<stdin>", line 1, in <module>                                                                      
TypeError: 'Alignment' object is not subscriptable                                                         

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions