statistical-significance-annotation

Solid

Guide for annotating statistical significance (p-value asterisks) on comparison plots. Covers standard notation (ns, *, **, ***, ****), matplotlib bracket+asterisk implementation, and use with seaborn box/violin/bar plots. Use when preparing publication-ready figures with significance markers.

AI & Automation 286 stars 26 forks Updated 4 days ago NOASSERTION

Install

View on GitHub

Quality Score: 82/100

Stars 20%
82
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Statistical Significance Annotation on Plots ## Overview Statistical significance annotations (asterisk notation) are visual markers placed on comparison plots to indicate the results of hypothesis tests between groups. They consist of brackets connecting two groups and asterisk symbols denoting the p-value range. Proper annotation ensures that the visual claims in a figure match the quantitative evidence, making plots publication-ready and scientifically rigorous. This guide covers the standard conventions, when and how to annotate, and a reusable matplotlib implementation. ## Key Concepts ### Standard Asterisk Notation The widely adopted convention maps p-value ranges to asterisk symbols: | Symbol | P-value Range | Meaning | |--------|--------------|---------| | ns | p > 0.05 | Not significant | | \* | p <= 0.05 | Significant | | \*\* | p <= 0.01 | Highly significant | | \*\*\* | p <= 0.001 | Very highly significant | | \*\*\*\* | p <= 0.0001 | Extremely significant | The conversion function: ```python def pvalue_to_asterisk(p: float) -> str: """Convert a p-value to standard asterisk notation.""" if p <= 0.0001: return "****" elif p <= 0.001: return "***" elif p <= 0.01: return "**" elif p <= 0.05: return "*" else: return "ns" ``` ### Adjusted vs Raw P-values - **Single comparison** (one t-test): Use raw p-value. - **Multiple comparisons** (pairwise tests across 3+ groups, multiple genes): Use adjus...

Details

Author
jaechang-hits
Repository
jaechang-hits/SciAgent-Skills
Created
5 months ago
Last Updated
4 days ago
Language
Python
License
NOASSERTION

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

statistical-analysis

Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions, or format results for publication. Covers frequentist (t-test, ANOVA, chi-square, regression, correlation, survival, count, reliability) and Bayesian. Use statsmodels or pymc-bayesian-modeling to fit.

286 Updated 4 days ago
jaechang-hits
AI & Automation Solid

seaborn-statistical-plots

Statistical visualization on matplotlib with native pandas support. Auto aggregation, CIs, grouping for distributions (histplot, kdeplot), categorical (boxplot, violinplot), relational (scatterplot, lineplot), regression (regplot, lmplot), matrix (heatmap, clustermap), grids (pairplot, FacetGrid). Use for quick statistical summaries; matplotlib for fine control; plotly for interactive HTML.

286 Updated 4 days ago
jaechang-hits
AI & Automation Listed

vivarium-report

Make publication-grade figures (and tables / methods text) from comparative-genomics results, in Python OR R. Use whenever the user wants to plot or visualize genomics analysis output — an ANI/AAI heatmap, a CAZy/COG/KEGG category bar chart, a pangenome or presence/absence matrix, a dN/dS (ω) plot, a phylogenetic tree, a synteny/dot plot — or to turn analysis tables into a journal-ready figure, or draft a methods paragraph with tool versions. Triggers on phrases like "plot the ANI matrix", "make a heatmap of", "bar chart of CAZy/COG categories", "figure for the paper", "make this publication quality", "出个图", "画个热图/柱状图", "把这个表画成图", "出版级/Nature 风格的图", "ANI 热图". Produces editable SVG + PDF + TIFF (600 dpi) with Nature-style conventions (Arial, small fonts, editable text, restrained palette). This skill plots results that already exist — to *compute* ANI/AAI use vivarium-compare, to *build* a tree use vivarium-phylo, to *run* a search use vivarium-search; this one turns their output into the figure. Part of the v

1 Updated 1 weeks ago
Jason-0409-G