API Reference#
Main scoring function#
Compute spatially smoothed and spatially corrected gene set enrichment scores for one or more gene signatures. |
Helper functions#
These functions are used by the score function.
Infer gene weights based on the coefficient of variation (CV) of gene expression. |
|
Build a signed gene weight dictionary from upregulated and downregulated gene lists. |
Main plotting function#
Visualise spatial enrichment maps for given signatures using spatial scatter plots. |
Geostatistical evaluations#
Functionalities to assess the smoothness of scores or input gene signature.
Compute and visualise spatial metrics for different scoring methods in a given dataset. |
|
Compare spatial autocorrelation of EnrichMap scores across patients using permutation-standardised Moran's I. |
|
Pairwise Wasserstein (earth mover's) distance between patients based on spatially embedded EnrichMap scores. |
|
Fit empirical semivariograms to EnrichMap scores per patient and extract structural parameters for cross-patient comparison of spatial organisation. |
|
Compute empirical variograms to assess spatial dependence for any score key. |
|
Compute and plot empirical variograms for multiple score keys on the same plot. |
|
Plot Moran scatterplots (spatial correlograms) for one or multiple spatial libraries. |
|
Plot cross-Moran scatterplots: score_x vs spatial lag of score_y, per library or globally. |
Signature associations#
Plot a heatmap of correlations between gene set scores in adata.obs. |
Gene-level visualisations#
Spatial gene contribution heatmap with expression scaling and spatial ordering. |
|
Visualise gene contributions to a spatial gene signature using PCA-reduced scatter plot. |