ComparativeGenomicsToolkit / taffy

This is a library C/Python/CLI for working with TAF (.taf,.taf.gz) and MAF (.maf) alignment files
MIT License
23 stars 3 forks source link

making python Alignment objects subscriptable #65

Open diekhans opened 3 weeks ago

diekhans commented 3 weeks ago

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