You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gallery is a repository-owned visual catalog for the plotting functions
exported by adata_science_tools._plotting. The coverage contract and asset
filenames come from
example_plotting_gallery/manifest.py:
39 renderers and 46 cases, split across maintained, compatibility, and
deprecated APIs.
The examples are for rendering and API coverage. They are not benchmark
datasets or evidence for biological conclusions.
Data and analysis provenance
The inputs in
example_plotting_gallery/simulated_data.py
are deterministic. Seeded builders create balanced independent groups, paired
subjects, repeated measurements, continuous observations, and composition
categories. Other builders return fixed survival curves and meta-analysis
rows. These precomputed tables, and the deterministic continuous-effect curve
and interval, are plotting inputs rather than estimates produced by the
library.
Some examples deliberately consume analysis results produced by public library
functions:
Library-derived result
Gallery consumers
diff_test effects and p-values, via run_independent_diff_test
barh_l2fc_dotplot_column, barh_dotplot_dotplot_column, barh_dotplot_dotplot_dotplot_column, barh_4X_dotplot_column, l2fc_dotplot_column, l2fc_dotplot_single, qqplot, and volcano_plot_generic; the deprecated l2fc_pvalue_dotplot_gex, l2fc_pvalue_dotplot_protein_metabolite, plot_column_of_bar_h_2groups_with_l2fc_dotplot_GEX_adata, qqplot_pvalues, and volcano_plot_sns_single_comparison_generic cases reuse the same results through their legacy contracts.
fit_smf_ols_models_and_summarize_adata coefficients, confidence intervals, p-values, and sample counts
Both forest cases, plus the adjusted OLS panels in barh_dotplot_dotplot_dotplot_column and barh_4X_dotplot_column.
calculate_expectations, predict_expectation, and excess_expectation fitted values and residuals
Both plot_heatmap cases. The three plot_rank_* renderers instead calculate their displayed rank summaries from the deterministic ranked lists passed to them.
run_independent_diff_test never assigns a sorted or filtered result table
directly to AnnData.var. It starts from a copy of the original AnnData and
left-joins only result columns on the original variable index. This preserves
the matrix-variable alignment and original variable order; a feature omitted
by diff_test, such as the all-zero fixture, remains in var with missing
analysis values.
Coverage boundaries
The manifest labels 30 renderers as maintained, 1 as a compatibility API, and 8
as deprecated. Compatibility and deprecated entries remain in the catalog so
their current call paths and recommended replacements are visible; their
screenshots do not change their support status.
Excluded Venn module
The gallery also excludes _plotting._venn_plots. That module is not
re-exported by _plotting/__init__.py, and importing it requires the optional
matplotlib-venn package, which is not installed in the gallery environment.
The four non-exported functions are venn_plot_2list, venn_plot_3list,
geneset_enrichment_venn, and
geneset_enrichemnt_ol_ven_M_n_N_x. See
_venn_plots.md for their source-level documentation.
Regenerate the assets
The plotting_gallery_params block in
config/config.yaml controls the asset directory, log
directory, selected renderer names, selected case IDs, and whether generation
continues after an error. Null renderer and case selections generate all
manifest cases. From the repository root, run:
bash scripts/000_generate_plotting_gallery.bash
The runner sources config/local_env.sh, activates POSTPROCESS_ENV, configures
headless Matplotlib, writes a runner log under scripts/logs, and leaves
analysis and output selection to the Python entry point and YAML config.
Catalog
The entries, order, case IDs, titles, statuses, replacements, and filenames
below are derived from RENDERER_MANIFEST; the manifest remains authoritative
if coverage changes.