API reference#
All plot_* functions return a matplotlib.figure.Figure; all *_table
functions return a pandas.DataFrame. Call set_publication_style()
once to style every subsequent figure consistently.
Loading & style#
Load a prepared |
|
A loaded, viewer-ready dataset. |
|
Apply a single, coherent publication style to all subsequent plots. |
|
Set global matplotlib defaults for all subsequent |
|
Return a named qualitative colour palette as a list of hex strings. |
Embedding plots#
Scatter of a 2-D embedding colored by a metadata column or a gene. |
|
Grid of embedding scatters, one panel per gene. |
|
3-D scatter of the first three dimensions of an embedding. |
Expression plots#
Violin or box plot of a gene's expression grouped by a metadata column. |
|
Stacked violin plots: one violin per gene, grouped by a metadata column. |
|
Dot plot: mean expression × fraction expressing across groups. |
|
Mean-expression matrix heatmap: groups × genes. |
|
Expression heatmap: genes × cells, grouped by a metadata column. |
|
Track-style expression plot: one horizontal color strip per gene. |
|
Grouped comparison bar chart: mean gene expression per group ± error bar. |
|
Trend line: mean gene expression along an ordered |
|
Radar (spider) plot: mean expression of several genes per group. |
Composition & relationships#
Stacked bar of |
|
Pairwise correlation matrix between groups (based on mean expression). |
Tables & export#
Return the per-group DE / marker table as a DataFrame. |
|
Return the |
|
Return the per-cell metadata ( |
|
Render the standard view set and write them to |
|
Write marker, composition, and metadata tables to |
Preparation (CLI + API)#
Turn a raw .h5ad into a viewer-ready object. For atlases larger than RAM, see
Large data.
Prepare an AnnData for the scPyviewer app. |
|
Write a stratified cell subsample of a too-big |