API#
Basic plots#
|
Generates a cross-tabulation plot between two categorical variables from |
|
Plots histograms of a numeric variable with optional grouping and faceting. |
|
Generates pie charts showing the proportion of different categories for a specified categorical variable. |
|
Plots a scatter plot of transcript locations and cell centroids, coloring the transcripts by a specific feature (e.g., distance to the closest cell) and optionally saving the plot to a file. |
|
Generate a clustered heatmap from the given data and optionally save it to a file. |
|
Plots the heatmap of target cells by gene. |
|
Plots a scatter plot of genes with their estimated diffusion coefficient (D_estimated) on the x-axis and a statistical metric (e.g., KS statistic) on the y-axis. |
uRNA quantification#
|
Creates a heatmap or clustered heatmap of gene metrics, with color differentiation for control probes and optional saving. |
|
Creates a violin plot comparing logfoldratio_over_noise values for controlvs non-control probes, and tests for significance using the specified test. |
|
Creates a scatter plot of two specified metrics from a SpatialData object, highlighting control vs. |
|
Creates a horizontal bar plot showing the top and bottom genes based on a specified metric. |
|
Function that plots log fold change per gene over noise using a boxplot. |
|
Plots kernel density estimates (KDE) for the spatial distribution of intracellular and extracellular transcripts for a list of genes. |
|
Plots the distribution of Moran's I scores from a DataFrame. |
|
Styled diffusion scatter plot matching metric_scatter aesthetics. |
|
Plots intracellular and extracellular expression of a selected gene. |
Source, target and communication#
|
Plot cell type-cell type interaction strength as a heatmap or chord diagram. |
|
Plot cell type-cell type interaction strength as a heatmap or chord diagram. |
|
Plots either (1) A clustermap of all genes' distance distributions, sorted by cluster, with row colors, (2) A collapsed clustermap showing the mean distribution per cluster, with color-coded labels. |
|
Plots the average normalized distance distribution for each cluster, overlaid with the expected (theoretical) diffusion pattern from a Rayleigh distribution computed from the global data (purely diffusion-based). |
|
Plots the diffusion distribution of specified genes as subplots in a grid. |
|
Plots a heatmap or clustered heatmap of source scores by cell type. |
|
Plots a heatmap or clustered heatmap of target scores by cell type. |
|
The function plots arrows from source to target cells based on transcript proximity, color-coding source and target cells, and transcript locations. |
|
Generates a scatter plot showing the positions of target cells, source cells, and extracellular RNA transcripts within a spatial omics dataset. |
Factor analysis#
|
Plot factors from a specified layer in a Scanpy AnnData object. |
|
Plot top scoring genesex for each factor from NMF/LDA. |
|
Plot ranking of genes using a matrixplot based on factor loadings. |
|
Extracts the NMF (Non-negative Matrix Factorization) factors from the specified AnnData object within the spatial data ( |
|
Extracts the NMF (Non-negative Matrix Factorization) gene loadings matrix from the specified AnnData object within the spatial data ( |
|
Plots the spatial distribution of NMF factors for extracellular transcripts and cells. |
Transfers the gene loadings (H matrix) derived from extracellular RNA analysis to a cellular dataset. |
Colormaps & palettes#
|
Returns a continuous colormap for Matplotlib. |
|
Returns a discrete color palette as a list of hex codes. |