decoupler.get_acts

decoupler.get_acts(adata, obsm_key)

Extracts activities as AnnData object.

From an AnnData object with source activities stored in .obsm, generates a new AnnData object with activities in X. This allows to reuse many scanpy processing and visualization functions.

Parameters
adataAnnData

Annotated data matrix with activities stored in .obsm.

obsm_key

.osbm key to extract.

Returns
actsAnnData

New AnnData object with activities in X.