TabularMSA.
__contains__
(label)[source]¶Determine if an index label is in this MSA.
State: Experimental as of 0.4.1.
label (hashable) – Label to search for in this MSA.
Indicates whether label is in this MSA.
bool
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