Skip to content
pritampanda15Public

Repository files navigation

BioGrace Logo

BioGrace

Publication-Grade DE & Single-Cell Plotter · Biologist's Statistical Test Advisor & Anti-Barplot Studio

Live Studio CI & Stats Tests Academic Only License CLI Included

BioGrace Studio Preview

BioGrace eliminates two daily bottlenecks between wet-lab and dry-lab biology inside a fluid, Apple-designed interface that runs 100% client-side in the browser (zero server upload — your unpublished data never leaves your machine) and ships with a matching headless CLI and auto-generated R & Python code.


Live Demo


Five Integrated Studios (BioGrace v2.0 Complete Suite)

1. DE & Single-Cell Publication Plotter

Stop fighting ggplot2 and matplotlib layouts for hours after finishing DESeq2, edgeR, limma, Scanpy, or Seurat:

  • Drag-and-drop CSV/TSV with automatic tool & column detection (DESeq2, edgeR, limma, Scanpy, Seurat, fgsea, binary UpSet tables).
  • Fifteen interactive publication chart types (organized into DE/Bulk, Single-Cell, and Assays & Clinical):
    • DE & Bulk: Volcano Plot, MA Plot, PCA with 95% Confidence Ellipses, Z-Scored DEG Expression Heatmap, DEG UpSet Plot, Ranked Pathway Lollipop.
    • Single-Cell: Interactive scRNA UMAP & t-SNE (with FeaturePlot gene overlays, corner-arrow axes, draggable cluster centroids, and Split-by-Condition view), scRNA Marker Dot Plot, Differentiation Pseudotime Ribbon.
    • Wet-Lab & Clinical Assays: 4PL Dose–Response / IC₅₀ Curve Fitter, Kaplan–Meier Survival + Log-Rank Test + Number-at-Risk Table, Forest Plot (HR/OR), Multi-Biomarker ROC & AUROC Curves (Youden J), and Method Correlation (Pearson/Spearman) + Bland–Altman Agreement.
  • Plain-English Statistical Explainer: Every analytical plot includes a layman-friendly biology card explaining what you are looking at, what the live statistics mean (IC₅₀, Hill slope, Log-Rank $p$, AUROC, PC1/PC2%, Bland–Altman bias), common pitfalls to avoid, and a one-click copyable Methods/Legend paragraph.
  • 6 Scientific Journal Presets:
    • Nature Portfolio (89 / 120 / 183 mm, open frame, outward ticks)
    • Science (AAAS) (75 / 120 / 175 mm, open frame, outward ticks)
    • Cell Press (85 / 114 / 174 mm, open frame, outward ticks)
    • ACS (JCTC / JACS / JCIM) (84.6 / 130 / 177.8 mm, 4-spine boxed frame, inward ticks)
    • Biophysical Journal (85 / 128 / 178 mm, 4-spine boxed frame, inward ticks)
    • PNAS (87 / 114 / 178 mm, open frame, outward ticks)
  • 7 Colorblind-Safe & Publication Palettes: Okabe–Ito, Nature (NPG), ACS Classic, Paul Tol Bright, Paul Tol Muted, Viridis Discrete, and Grayscale Pub.
  • 13 Continuous Colormaps (for scRNA Dot Plots & continuous scales): RdYlBu_r, viridis, plasma, inferno, magma, cividis, coolwarm, Spectral_r, turbo, Blues, YlGnBu, cubehelix_r, and Greys.
  • Typography, Preflight & Export Controls: Sans-Serif (Helvetica/Arial), Serif (Times New Roman/Georgia), Monospace, custom font size (pt), stroke line width (pt), Single / 1.5 / Double column widths (mm), Transparent Background, 1-Click CVD Colorblindness Simulator (Deuteranopia / Protanopia / Tritanopia / B&W Print), Journal Submission Preflight Guard with Auto-Fix, and 300 / 600 / 1200 DPI PNG, 600 DPI 32-bit RGBA TIFF, plus vector SVG & PDF (svg2pdf.js).
  • Spreadsheet-Native Data Import: Drag-and-drop CSV/TSV or multi-sheet Excel (.xlsx / .xls) workbooks, paste cells directly from Excel / Google Sheets / GraphPad Prism, and remap arbitrary column headers with the Visual Column Mapper.

2. 20 Open-Source Top-Journal Figure Archetypes

Interactive vector SVG gallery inspired by the MIT-licensed GeneticistHere/ggplot2-20-journal-cases collection (Nature, Nature Microbiology, Nature Cell Biology, Nature Communications, iMeta, IJMS):

  • Distribution & Stats: Individualized Error Dot-Plot (01), Grouped Error Dot-Plot (02), Paired Boxplot (05), Horizontal Raincloud (06), Variance Bars with CLD Letters (09), Split Violin (20).
  • Genomics & Clinical: Multi-Group Volcano (03), Manhattan GWAS/TWAS (04), Clinical Cohort Swimmer Plot (07), Importance Bars + Abundance Streams (08).
  • Networks & Flows: Circos Fusion-Gene Diagram (10), Module Interaction Network (11), Sankey + Enrichment Bubble Panel (12), Multi-Level Alluvial Flow (17).
  • Heatmaps & Composition: Discrete Binned Heatmap (13), Mantel Composite Correlation Heatmap (14), Multi-Group Correlation Heatmap (15), Polar-Coordinate Circular Heatmap (16), Hierarchical Pathway Treemap (18), Mosaic & Sunburst Ring (19).
  • Every figure is live CSV data-driven (upload your own CSV or click Load Test CSV), responds live to all 6 journal presets, 7 color palettes, 13 colormaps, fonts, and stroke widths, with vector SVG/PDF/TIFF export, reproducible ggplot2 R & Python starter code, and an inline CSV Format Guide + downloadable sample CSV.

3. Biologist's Statistical Test Advisor, Anti-Barplot Studio & Plain-English Coach

Stop choosing inappropriate statistical tests, hiding distributions behind dynamite bar charts + SEM, or decoding opaque statistical jargon:

  • Plain-English Biology Translator: Explains your exact result in everyday language (what the $p$-value means about luck, whether the effect size is practically small/medium/large, a visual 4-step Decision Path Flowchart, a one-click Ready-to-Paste Methods & Figure Legend Paragraph, and a 7-concept Biologist's Pocket Guide to Statistics).
  • Automated assumption & study-design engine (pure client-side TypeScript):
    • Normality check: Shapiro–Wilk test (Royston approximation) and skewness per group.
    • Variance check: Brown–Forsythe median-centered Levene's test.
    • Pseudoreplication Guard: Detects repeated technical measurements nested within biological replicates/donors, warns against inflated $N$, and provides one-click Collapse to Biological Means plus lme4::lmer mixed-model code.
    • Smart protocol advisor: Recommends and explains Welch's t-test, Paired t-test, Mann–Whitney U, Wilcoxon signed-rank, Welch's one-way ANOVA, Kruskal–Wallis, or Friedman + Benjamini–Hochberg (BH-FDR) or Holm correction alongside effect sizes (Hedges' $g$, Cohen's $d_z$, Cliff's $\delta$, rank-biserial $r$, $\eta^2$, $\epsilon^2$).
  • Anti-Barplot Studio: Fluidly spring-morphs between the misleading Barplot + SEM Trap and honest Raincloud (half-violin KDE + Tukey boxplot + collision-free beeswarm), Box + Beeswarm, and Paired Slopegraph plots.
  • Four built-in biological case studies: Bimodal Responder Split, Multi-Dose Skewed Viability, Paired Patient Pre/Post, and qPCR Technical Replicates (Pseudoreplication Guard).

4. Power, Factorial & Wet-Lab Workbench

  • Sample Size & Statistical Power Calculator: A priori power curves for Two-Sample t-test, Paired t-test, One-Way ANOVA, and Survival Log-Rank (Schoenfeld) with a 1-click NIH / ERC / IACUC Grant Power Justification Paragraph.
  • Two-Way Factorial ANOVA & Longitudinal Time-Course: Interaction plots (Genotype × Treatment with interaction $p$-value) and growth curves (Mean ± 95% CI ribbons, AUC, per-day BH-FDR stars).
  • Direct-to-Plot Wet-Lab Calculators: RT-qPCR $\Delta\Delta C_t$ (1-click send $2^{-\Delta\Delta C_t}$ fold changes into Anti-Barplot Studio), ELISA 4PL Standard Curve with unknown interpolation & %CV QC flags, and Michaelis–Menten Enzyme Kinetics ($V_{\max}, K_m$).

5. Multi-Panel Figure Composer & Local Manuscript Workspace

  • Multi-Panel Board (a / b / c / d): Pin any live BioGrace plot or upload external microscopy / Western blot images into 2×1, 2×2, 3×2, or 1×2 journal-width boards with bold journal-matched panel letters, optional microscopy scale bars (50 µm), and full-board vector SVG / PDF / PNG / 600 DPI TIFF export.
  • Local Manuscript Workspace: Save labeled snapshots (Fig 1A, Fig 1B, Supp Fig 1) locally in the browser across refreshes and export/import full .biograce-project.json bundles.

Interface & Motion Craft

Built using Apple's Designing Fluid Interfaces (WWDC) principles for the web:

  • Critically damped springs (damping 1.0) for UI chrome and plot threshold updates; momentum-driven springs for gesture flicks.
  • Interruptible right-edge Code & CLI sheet with 1:1 pointer drag, soft-boundary rubber-banding, and exponential-decay momentum projection.
  • Translucent frosted materials (backdrop-filter), optical SF Pro typography with tabular-nums, and full prefers-reduced-motion, prefers-reduced-transparency, and prefers-contrast accessibility support.

Sample CSV Datasets (All 36 Plot Formats)

Ready-to-upload test CSV files and column format specifications are included both in-app (via the CSV Guide button in the top bar and directly beneath every plot) and in the repository:

  • examples/ — Ready-to-upload CSVs for all 15 Interactive Plotter formats + Stat Advisor (sample_*.csv and larger test_*.csv files). Uploading any CSV automatically detects its schema and switches to the matching plot.
  • examples/journal_cases/ — Complete CSV templates (01_error_dotplot.csv through 20_split_violin_markers.csv) for all 20 Open-Source Top-Journal Figure Archetypes.

Quick Start

git clone https://github.com/pritampanda15/BioGrace.git
cd BioGrace
npm install
npm run dev

BioGrace CLI Commands

Run headless figure generation, statistical assumption diagnostics, and R/Python script synthesis directly from your terminal:

# Show CLI help
npm run cli -- help

# Volcano Plot + reproducible R & Python scripts from DESeq2/edgeR/limma/Seurat CSV
npm run cli -- plot deseq2_results.csv \
  --type volcano \
  --preset nature \
  --fc 1.0 \
  --fdr 0.05 \
  --label "CXCL10,IDO1,STAT1,MRC1" \
  --out out/volcano.svg \
  --code-r out/volcano.R \
  --code-py out/volcano.py

# Statistical Advisor + Raincloud SVG + JSON diagnostics + R/Python scripts
npm run cli -- stats experiment.csv \
  --preset okabe-ito \
  --adjust BH-FDR \
  --out out/raincloud.svg \
  --report out/stats_report.json \
  --code-r out/analysis.R \
  --code-py out/analysis.py

# Optional flags for paired designs & nested technical replicates
npm run cli -- stats paired_study.csv --paired --out out/paired.svg
npm run cli -- stats qpcr_wells.csv --collapse-replicates --out out/bio_means.svg

# Run built-in biological demos immediately
npm run cli -- demo volcano --out out/demo_volcano.svg --code-r out/demo_volcano.R
npm run cli -- demo stats --out out/demo_raincloud.svg --report out/demo_report.json

If linked globally (npm link), run commands directly as biograce plot ... or biograce stats ....


Deploying to GitHub Pages

BioGrace ships with both a GitHub Actions workflow (.github/workflows/deploy.yml) and a one-command CLI deploy:

# Automatic deployment: push to main (Settings -> Pages -> Source: GitHub Actions)
git push origin main

# Or deploy directly to the gh-pages branch via CLI
npm run deploy
# (or: npm run cli -- deploy)

Academic & Non-Commercial License Only

BioGrace is released strictly under the BioGrace Academic & Non-Commercial Research License (v1.0) — see LICENSE for full terms.

  • Permitted: Free use, modification, and academic citation for university research, teaching, workshops, theses, and non-commercial scientific publications.
  • Restricted: Commercial use (biotech/pharma commercial R&D, paid consulting, fee-for-service, or commercial SaaS/product integration) requires prior written permission from the author.

Citation

If you use BioGrace figures, statistical reports, or generated scripts in an academic publication, please cite:

@software{panda2026biograce,
  author       = {Panda, Pritam},
  title        = {BioGrace: Publication DE/Single-Cell Plotter and Biologist's Statistical Test Advisor},
  year         = {2026},
  url          = {https://github.com/pritampanda15/BioGrace}
}