# skbio.alignment.TabularMSA.__reversed__¶

TabularMSA.__reversed__()[source]

Iterate in reverse order over sequences in the MSA.

State: Experimental as of 0.4.1.

Yields

GrammaredSequence – Each sequence in reverse order from how they are stored in the MSA.

Examples

>>> from skbio import DNA, TabularMSA
>>> msa = TabularMSA([DNA('ACG'), DNA('AC-')])
>>> for seq in reversed(msa):
...     str(seq)
'AC-'
'ACG'