API#
Basic plots#
|
Generate a cross-tabulation plot between two categorical variables from |
|
Plot histograms of a numeric variable with optional grouping and faceting. |
|
Generate pie charts of the proportion of each category of |
|
Plot transcript locations and cell centroids, coloring transcripts by a chosen feature. |
|
Plot a joint scatter/KDE comparison of two point-level metrics, colored by a third variable. |
|
Generate a clustered heatmap from the given data and optionally save it to a file. |
|
Plot a heatmap of features by cell type, sorted by each feature's dominant cell type. |
|
Plot spatial transcripts colored by a grouping variable, overlaid on cell boundaries. |
uRNA quantification#
|
Plot a heatmap or clustered heatmap of per-gene metrics. |
|
Plot a violin plot comparing |
|
Plot a scatter plot of two metrics from |
|
Plot a horizontal bar chart of the top and bottom genes for a metric. |
|
Plot the log fold change per gene over noise as a boxplot grouped by codeword category. |
|
Plot KDEs of the spatial distribution of intracellular and extracellular transcripts for a list of genes. |
|
Plot the distribution of Moran's I scores from a DataFrame. |
|
Scatter plot of two diffusion metrics per probe, colored by control-probe status. |
|
Plot intracellular and extracellular expression of a selected gene side by side. |
Source, target and communication#
|
Plot cell type-cell type interaction strength as a heatmap or chord diagram. |
|
Plot a cell type x cell type contact matrix as a heatmap or chord diagram. |
|
Plot gene-level cell type-cell type interaction strength as a heatmap or chord diagram. |
|
Plot gene distance distributions, optionally grouped by cluster. |
|
Plot the average normalized distance distribution for each cluster. |
|
Plot the diffusion distance distribution of specified genes as subplots in a grid. |
|
Plot a heatmap or clustered heatmap of source scores by cell type. |
|
Plot a heatmap or clustered heatmap of target scores by cell type. |
|
Plot transcripts colored by intracellular and extracellular source cell type, overlaid on cell boundaries. |
|
Plot a per-gene Y-axis variable from |
|
Plot arrows from source to target cells based on transcript proximity for a gene. |
|
Plot the positions of target cells, source cells, and extracellular RNA transcripts for a gene. |
Factor analysis#
|
Plot per-cell factor loadings from a specified table, grouped by cell type. |
|
Plot top scoring genes for each factor from NMF/LDA. |
|
Plot ranking of genes using a matrixplot based on factor loadings. |
|
Plot the spatial distribution of each NMF factor for cells. |
|
Plot a heatmap of NMF gene loadings, filtered to genes with a high maximum loading. |
|
Plot the spatial distribution of NMF factors for extracellular transcripts and cells. |
Transfer NMF gene loadings from an extracellular RNA dataset to a cellular dataset. |
Colormaps & palettes#
|
Return a continuous colormap for Matplotlib. |
|
Return a discrete color palette as a list of hex codes. |