mantispy.pp.subset_features#
- mantispy.pp.subset_features(adata, key='selected')#
Return a new object holding only the features flagged by
var[key].- Parameters:
adata (
AnnData) – Object to subset. Never modified.key (
str(default:'selected')) – Booleanvarcolumn naming the features to keep, asfeature_select()writes.
- Return type:
- Returns:
A new object holding only the flagged features.
- Raises:
KeyError – If
varhas no columnkey.