diffsvg.pl.plot_pvalue_histogram#

diffsvg.pl.plot_pvalue_histogram(stats_df, pvalue=None, bins=20, ax=None, figsize=(4, 4), save_path=None)#

QC histogram of a per-gene p-value column; should look roughly uniform under the null.

Parameters:
stats_df

A statistics table indexed by gene, e.g. adata.varm["dsvg_stats"].

pvalue default: None

Column to histogram. Defaults to "wald_pval" for the Wald test and "parallel_pval" for test="parallel".

bins default: 20

Passed to matplotlib.axes.Axes.hist.

ax default: None

Existing axes to draw into; a new figure is created if omitted.

figsize default: (4, 4)

Passed to plt.subplots when ax is omitted.

save_path default: None

If given, save the figure here (dpi=300, bbox_inches="tight").

Returns:

matplotlib.axes.Axes