skbio.alignment.TabularMSA.__iter__¶
-
TabularMSA.
__iter__
()[source]¶ Iterate over sequences in the MSA.
State: Experimental as of 0.4.1.
- Yields
GrammaredSequence – Each sequence in the order they are stored in the MSA.
Examples
>>> from skbio import DNA, TabularMSA >>> msa = TabularMSA([DNA('ACG'), DNA('AC-')]) >>> for seq in msa: ... str(seq) 'ACG' 'AC-'