TrajAtlas.utils.getAttributeGEP#
- TrajAtlas.utils.getAttributeGEP(adata, featureKey='pattern', sampleKey='sample', patternKey=None, cell_threshold=5, njobs=-1, bootstrap_iterations=0, **kwargs)[source]#
Get attribute (peak, expression, correlation) based on gene expression pattern axis with optional bootstrapping.
- Parameters:
adata (
AnnData) –object. (Annotated data) –
featureKey (
str) – The specific slot inadata.varthat houses the gene-feature relationship informationsampleKey (
str) – The specific slot inadata.obsthat houses the sample informationpatternKey (
Optional[List]) – Pattern names. If not specific, we use all patterns in adata.obs.featureKeycell_threshold (
int) – Minimal cells to keepnjobs (
int) – Number of cores to usebootstrap_iterations (
int) – Number of bootstrap iterations to perform. If 0, bootstrapping is not performed.
- Returns:
MuData object. Contains correlation, expression, and peak modal.