TrajAtlas.utils.getAttributeBase#
- TrajAtlas.utils.getAttributeBase(adata, axis_key, sampleKey='sample', subsetCell=None, subsetGene=None, cell_threshold=40, njobs=-1, bootstrap_iterations=0, **kwargs)[source]#
Get attribute (peak, expression, correlation) base on axis.
See also
See Projecting Osteogenic Datasets onto Differentiation Atlas and OPCST Model Using TrajAtlas for how to make trajecoty dotplot.
- Parameters:
%(adata)s –
featureKey – The specific slot in
adata.varthat houses the gene-feature relationship informationsampleKey (
str) – The specific slot inadata.obsthat houses the sample informationpatternKey – Pattern names. If not specific, we use all pattern in adata.obs.featureKey
cell_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.adata (AnnData) –
subsetCell (List | None) –
subsetGene (List | None) –
- Returns:
MuData object which contains correlation, expression, peak modal.