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