sccloud.select_features

sccloud.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 in data.var, which refers to a boolean array. If None, all features will be selected.

Return type

str

Returns

  • keyword (str) – The keyword in data.uns referring to the features selected.

  • Update data.uns

    • data.uns[keyword]: A submatrix of the data containing features selected.

Examples

>>> scc.select_features(adata)