decoupler.extract

decoupler.extract(mat, use_raw=True, verbose=False, dtype=<class 'numpy.float32'>)

Processes different input types so that they can be used downstream.

Parameters
matlist, pd.DataFrame or AnnData

List of [matrix, samples, features], dataframe (samples x features) or an AnnData instance.

use_rawbool

Use raw attribute of adata if present.

dtypetype

Type of float used.

Returns
mcsr_matrix

Sparse matrix containing molecular readouts or statistics.

rndarray

Array of sample names.

cndarray

Array of feature names.