skbio.alignment.TabularMSA.__iter__#

TabularMSA.__iter__()[source]#

Iterate over sequences in the MSA.

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-'