mantispy.get.features#
- mantispy.get.features(adata, object=None, feature_group=None, channel=None, key=None, canonical_channels=False)[source]#
Names of the features matching every filter given.
- Parameters:
- adata
AnnData Object to query.
- object
str|None(default:None) Exact matches against the parsed
varcolumns of the same name.- feature_group
str|None(default:None) Exact matches against the parsed
varcolumns of the same name.- channel
str|None(default:None) Matches any component of a multi-channel value, so
"DNA"selects"DNA|ER"colocalization features too.- key
str|None(default:None) Restrict to features where this boolean
varcolumn is true, e.g."selected".- canonical_channels
bool(default:False) Compare channels through
canonical_channel, so thatchannel="DNA"also matches a dataset whose nuclear stain is namedHoechstorDAPI.
- adata
- Return type:
- Returns:
Feature names, in
varorder.- Raises:
KeyError –
keynames a columnvardoes not have.