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:
- msparse matrix
- rarray of samples
- carray of features