# Pandemic Preparedness ## Docs - [Introduction](https://pandemic-prep-docs.mintlify.app/index.md): Welcome to the Evolutionary Diagnostic Pipeline for Pandemic Preparedness. Design mutation-resistant assays using molecular evolution data. - [Quickstart](https://pandemic-prep-docs.mintlify.app/getting-started/quickstart.md) - [Data Preparation](https://pandemic-prep-docs.mintlify.app/getting-started/data-preparation.md): Comprehensive guide to preparing, formatting, and sourcing raw genomic data and metadata for the pipeline. Covers GISAID EpiFlu, NCBI Virus, and custom laboratory datasets. - [Configuration](https://pandemic-prep-docs.mintlify.app/getting-started/configuration.md) - [Evolutionary Diagnostics](https://pandemic-prep-docs.mintlify.app/concepts/evolutionary-diagnostics.md): The scientific rationale for combining physical sequence conservation with evolutionary selection pressure analysis to design mutation-resistant diagnostic assays for pandemic surveillance. - [Shannon Entropy in Diagnostic Design](https://pandemic-prep-docs.mintlify.app/concepts/shannon-entropy.md): Detailed mathematical explanation of Shannon Entropy, how it is calculated across multiple sequence alignments, and its application as the baseline signal for sequence conservation. - [Selection Pressure: FUBAR vs. MEME vs. GARD](https://pandemic-prep-docs.mintlify.app/concepts/selection-pressure.md): A molecular biology guide comparing the three core HyPhy methods used in the pipeline. Explains their mathematical models, detection capabilities, and specific use cases in diagnostic design. - [PrimerLab Genomic Framework](https://pandemic-prep-docs.mintlify.app/concepts/primerlab-framework.md): A detailed overview of the PrimerLab Genomic engine, its internal thermodynamic design algorithms, and how it integrates with the Evolutionary Diagnostic Pipeline. - [Pipeline Architecture Overview](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/overview.md): High-level overview of the ten-module Snakemake pipeline — data flow, module interdependencies, conda environments, and directory conventions. - [M01: Data Acquisition & Standardisation](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m01-acquisition.md): Fetches raw viral sequences from NCBI or local repositories, runs Nextclade for clade/lineage classification, and normalises metadata into the enriched TSV structure required by downstream Augur modules. - [M02: Quality Control & Subsampling](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m02-qc-subsampling.md): Applies hard QC filters to remove low-quality sequences and performs adaptive spatio-temporal subsampling to produce a balanced, representative dataset for phylogenetic analysis. - [M03: Multiple Sequence Alignment](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m03-alignment.md): Performs reference-based multiple sequence alignment using MAFFT (via augur align), producing a coordinate-normalised alignment that forms the shared input for both the phylogenetic track (M04) and the entropy conservation track (M07). - [M04: Phylogenetic Tree Inference & Time-Calibration](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m04-phylogenetics.md): Constructs a maximum-likelihood phylogenetic tree from the M03 alignment using IQ-TREE2 (via augur tree) and calibrates it against sample collection dates to produce a time-resolved phylogeny (via augur refine). - [M05: Evolutionary Selection Pressure Analysis](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m05-selection-analysis.md): Runs HyPhy's FUBAR, MEME, and GARD methods on gene-sliced codon alignments to quantify pervasive purifying selection, episodic diversifying selection, and recombination breakpoints. These signals are consumed by the Bridge Builder (M07) as scoring components. - [M06: Ancestral Sequence Reconstruction & Export](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m06-ancestral-mapping.md): Reconstructs ancestral nucleotide and amino acid mutations across the phylogenetic tree using joint maximum likelihood inference, then exports the complete annotated dataset as an Auspice-compatible JSON for Nextstrain visualisation. - [M07: Diagnostic Bridge Builder & SNP Finder](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m07-bridge-builder.md): Combines Track A sequence conservation with Track B selection pressure scores to identify and rank stable target regions for diagnostic assay design. - [M08: Thermodynamic Primer Design](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m08-primer-design.md): Executes PrimerLab integration to design degenerate primers and probes within M07-consensuses. Validates secondary structures via ViennaRNA. - [M09: BLAST Specificity Verification](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m09-blast-specificity.md): Verifies primer and probe specificity by running BLAST searches of top candidate sequences against human and pathogen-specific databases. Supports both remote NCBI nt queries and local custom databases for offline or HPC workflows. - [M10: In-Silico PCR Coverage Analysis](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m10-insilico-validation.md): Simulates PCR/RAA amplification against historical sequences using SeqKit amplicon and generates interactive HTML dashboards and mismatch breakdown reports. - [M11 multiplex compatibility](https://pandemic-prep-docs.mintlify.app/pipeline-architecture/m11-multiplex-compatibility.md) - [Configuration Reference](https://pandemic-prep-docs.mintlify.app/reference/configuration-reference.md): Complete reference for all configuration keys in the pipeline YAML profiles. Covers all modules from M01 data acquisition through M10 in-silico validation. - [Output Files Catalog](https://pandemic-prep-docs.mintlify.app/reference/output-files.md): Complete catalog of all files produced by each pipeline module, including their schema, location pattern, and downstream consumers. - [Supported Pathogens](https://pandemic-prep-docs.mintlify.app/reference/supported-pathogens.md): Reference profiles for all pathogens currently validated in the pipeline, including reference accessions, segment configurations, recommended clock rates, and Nextclade dataset identifiers. - [Pipeline Monitoring & Run Management](https://pandemic-prep-docs.mintlify.app/operations/monitoring.md): Best practices for monitoring long-running pipeline executions, interpreting progress, managing Snakemake checkpoints, and handling partial failures on HPC and local workstations. - [Troubleshooting](https://pandemic-prep-docs.mintlify.app/operations/troubleshooting.md) - [Data Management & GISAID Compliance](https://pandemic-prep-docs.mintlify.app/operations/data-management.md): Best practices for managing viral genomic data downloaded from GISAID and NCBI Virus, ensuring database compliance, and tracking reference data changes. - [Supplementary exports](https://pandemic-prep-docs.mintlify.app/operations/supplementary-exports.md) - [Developer Guide](https://pandemic-prep-docs.mintlify.app/development/developer-guide.md): Guide for contributors and developers: repository structure, adding new rules and scripts, coding standards, environment management, and testing protocols. - [Testing & Validation Suite](https://pandemic-prep-docs.mintlify.app/development/testing.md): Guidelines for testing the pipeline: dry-run validation, unit testing local Python scripts, and running integration verification on subset datasets. - [Pipeline changelog](https://pandemic-prep-docs.mintlify.app/development/pipeline-changelog.md) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.