A centralized collection of reusable analysis templates for virology and genomics research. Browse the live gallery at: https://aleponce4.github.io/lab-bioinfo-templates
Note
Developed and maintained by Alejandro Ponce-Flores for virology and genomics bioinformatics work at UTHSC.
Every template in this repository ships with synthetic example data generated by the
data/simulate_data.R / data/simulate_data.py script in its own folder. No experimental
or study data is included, and no figure or statistic here was produced from a real dataset.
| # | Template | Language | Key Analysis | Example Data | Gallery Status |
|---|---|---|---|---|---|
| 01 | Plaque Assay + Violin Plots | R | One-way ANOVA, Tukey HSD, log10 titer | Synthetic | 🟢 Active |
| 02 | Image Infection + Dose-Response | R | 4PL regression, EC50/CC50 | Synthetic | 🟢 Active |
| 03 | Multi-Condition ANOVA | R | Welch ANOVA, Holm correction | Synthetic | 🟢 Active |
| 04 | MagPix / Luminex Multiplex | R | Two-way ANOVA, emmeans, FDR | Synthetic | 🟢 Active |
| 05 | Phylo-Geographic Analysis | R | Mantel test, scatter pies, maps | Synthetic | 🟢 Active |
| 06 | GO Enrichment Analysis | R | clusterProfiler, KEGG/Reactome | Synthetic | 🟢 Active |
| 07 | RNA-seq / DESeq2 | R | End-to-end DESeq2, QC diagnostics, heatmaps | Synthetic | 🟢 Active |
| 08 | VCF Mutation Analysis | Python | Entropy, mutation frequency, heatmaps | Synthetic | 🟢 Active |
| 09 | WGCNA Co-Expression Analysis | R | Co-expression modules, module-trait correlation | Synthetic | 🟢 Active |
| 10 | RNA-seq TF/Causal Network | R | TF activity, signed PKN overlap, network graphs | Synthetic | 🟢 Active |
| 11 | Variant Frequency + Shannon Entropy | Python | Intra-host variants, Shannon entropy curves | Synthetic | 🟢 Active |
| 12 | Coverage Depth Analysis | Python | Per-position depth, gene annotations | Synthetic | 🟢 Active |
| 13 | Selection Pressure (πN - πS) | Python | Selection pressure, nonsynonymous/synonymous diversity | Synthetic | 🟢 Active |
| 14 | Haplotype Composition | Python | Haplotype proportions across timepoints | Synthetic | 🟢 Active |
# 1. Install all R packages once
source("install_packages.R")
# 2. Start with the USER CONFIGURATION block at the top, then review study design,
# assumptions, contrasts, and method-specific limitations before applying to real data.
# 3. Knit / renderconda env create -f environment.yml
conda activate virology-bioinfo
# Each Python template is a Quarto document; render it to reproduce the gallery page
quarto render templates/08_vcf-mutation-analysis/template.qmdtemplates/08_vcf-mutation-analysis/template.ipynb is a notebook export of that
template's .qmd, regenerated with quarto convert — edit the .qmd, not the notebook.
Every template includes a clearly marked configuration section at the very top:
## ── USER CONFIGURATION ──────────────────────────────────────────────────────
DATA_FILE <- "data/your_data.csv" # <-- specify target dataset path
GROUP_COL <- "Treatment"
# ... (parameters documented inline)
## ────────────────────────────────────────────────────────────────────────────Start with the configuration block, then review the study design, assumptions, contrasts, and method-specific limitations before applying the template to real experimental data.
Each template includes a data/simulate_data.R (or .py) script that generates a small, deterministic synthetic dataset. These synthetic datasets verify software mechanics, input schema contracts, and figure generation across the Quarto gallery. They serve as structural starting points and require study-specific scientific and statistical review before application to experimental research datasets.
To regenerate example data:
source("templates/01_plaque-assay-violin/data/simulate_data.R")All templates enforce publication-oriented plotting and export defaults that require study-specific review:
theme_classic()ortheme_bw()base themes- Okabe-Ito colorblind-safe palettes where applicable
- TIFF / SVG / PDF output defaults at 300–600 dpi
- Consistent axis tick lengths and line widths
- Fork the repo
- Copy an existing template folder as a starting point (template 07 is the most complete reference — config block, path helpers, input validation)
- Follow the conversion rules in the template header comments
- Register the new template in all four places: the card and the reference table in
index.qmd, the render list and sidebar in_quarto.yml, thePAGESarray inscripts/ci-preflight.sh, and the table above. Python templates also need alinguist-languageline in.gitattributes. - Open a pull request
Each template's analysis lives in template.Rmd (R) or in the {python} chunks of
template.qmd (Python). For R templates the template.qmd is a thin gallery wrapper that
pulls the .Rmd in as a child document — edit the .Rmd.
MIT — free to use and adapt for scientific research.