skbio.alignment.TabularMSA.__contains__¶
- TabularMSA.__contains__(label)[源代码]¶
确定索引标签是否在此MSA中。
状态:从0.4.1开始试验。
- 参数:
label (hashable) -- 要在此MSA中搜索的标签。
- 返回:
指示是否 label 在这个MSA中。
- 返回类型:
bool
示例
>>> 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