partipy.plot_bootstrap_variance#
- partipy.plot_bootstrap_variance(adata, summary_method='median', result_filters=None)#
Visualize archetype stability as a function of the number of archetypes using cached bootstrap results.
- Parameters:
adata (anndata.AnnData) – Annotated data object containing bootstrap results in
adata.uns["AA_bootstrap"].summary_method (str, default
"median") – Summary statistic to display as a dotted line across archetype counts. Must be one of{"median", "max", "mean"}.result_filters (Mapping[str, Any] | None, default
None) – Filters forwarded to_resolve_aa_resultto select the AA configuration for which bootstrap results are summarized. IfNone, a configuration with matching bootstrap data must exist uniquely.
- Return type:
ggplot- Returns:
pn.ggplot A plot of per-archetype variance alongside the selected summary statistic across archetype counts.