Skip to content

About

Reusable virology and genomics analysis templates developed for the Jonsson Lab, with a Quarto gallery and synthetic example data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Virology & Genomics Bioinformatics Analysis Templates

CI Render Site License: MIT

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.

Available Templates

# 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

Quick Start

R Templates (01–07, 09–10)

# 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 / render

Python Templates (08, 11–14)

conda 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.qmd

templates/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.


Usage & Execution Workflow

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.


Demonstration Data Notice

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")

Plotting & Visualization Defaults

All templates enforce publication-oriented plotting and export defaults that require study-specific review:

  • theme_classic() or theme_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

Contributing

  1. Fork the repo
  2. Copy an existing template folder as a starting point (template 07 is the most complete reference — config block, path helpers, input validation)
  3. Follow the conversion rules in the template header comments
  4. 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, the PAGES array in scripts/ci-preflight.sh, and the table above. Python templates also need a linguist-language line in .gitattributes.
  5. 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.


License

MIT — free to use and adapt for scientific research.

About

Reusable virology and genomics analysis templates developed for the Jonsson Lab, with a Quarto gallery and synthetic example data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages