mantispy.get.features#
- mantispy.get.features(adata, object=None, feature_group=None, channel=None, key=None, canonical_channels=False)#
Names of the features matching every filter given.
- Parameters:
adata (
AnnData) – Object to query.object (
str|None(default:None)) – Exact matches against the parsedvarcolumns of the same name.feature_group (
str|None(default:None)) – Exact matches against the parsedvarcolumns 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 booleanvarcolumn is true, e.g."selected".canonical_channels (
bool(default:False)) – Compare channels throughcanonical_channel, so thatchannel="DNA"also matches a dataset whose nuclear stain is namedHoechstorDAPI.
- Return type:
- Returns:
Feature names, in
varorder.- Raises:
KeyError –
keynames a columnvardoes not have.