skbio.alignment.TabularMSA.__contains__#

TabularMSA.__contains__(label)[source]#

Determine if an index label is in this MSA.

Parameters:
labelhashable

Label to search for in this MSA.

Returns:
bool

Indicates whether label is in this MSA.

Examples

>>> from skbio import DNA, TabularMSA
>>> msa = TabularMSA([DNA('ACG'), DNA('AC-')], index=['l1', 'l2'])
>>> 'l1' in msa
True
>>> 'l2' in msa
True
>>> 'l3' in msa
False