pegasus.select_features¶
-
pegasus.
select_features
(data, features=None)[source]¶ Subset the features and store the resulting matrix in dense format in data.uns with ‘fmat_’ prefix. ‘fmat_*’ will be removed before writing out the disk.
- Parameters
data (
anndata.AnnData
) – Annotated data matrix with rows for cells and columns for genes.features (
str
, optional, default:None
.) – a keyword indata.var
, which refers to a boolean array. IfNone
, all features will be selected.
- Return type
str
- Returns
keyword (
str
) – The keyword indata.uns
referring to the features selected.Update
data.uns
–data.uns[keyword]
: A submatrix of the data containing features selected.
Examples
>>> pg.select_features(adata)