bioalpha.singlecell.read_gene_signatures_GSEA
- bioalpha.singlecell.read_gene_signatures_GSEA(name: str, organism: Literal['Human', 'Mouse', 'Yeast', 'Fly', 'Fish', 'Worm'] = 'Human', adata: AnnData | None = None, key_added: str | None = None, copy: bool = False, **kwargs) List[GeneSignature] | AnnData | None
Read gene signatures from
GSEA
(https://www.gsea-msigdb.org/).- Parameters:
name (
str
) – A gene_sets.gmt file or an enrichr library name.organism (
str
, default ='Human'
) – One from {'Human'
,'Mouse'
,'Yeast'
,'Fly'
,'Fish'
,'Worm'
}. This arugment has not effect if input is a.gmt
file.adata (Optional[
AnnData
], default =None
) – The annotated data matrix of shapen_obs
xn_vars
. If passed anot None
value,gene_signatures
will be saved inadata.uns
. Otherwise, return a list gene signatures.key_added (Optional[
str
], default =None
) – The key inadata.uns
information is saved to. Can not be set whenadata
isNone
.copy (
bool
, default =False
) – Whether to copyadata
or modify it inplace.
- Returns:
If
adata
is passed,"gene_sigs"
will be added inadata.uns
and returned ifcopy = True
.Otherwise, return a
List[GeneSignature]
.