Pipeline Monitoring & Run Management
This page covers practical operational guidance for managing pipeline runs from launch through completion, including progress monitoring, checkpoint behaviour, partial-failure recovery, and resource tracking.Standard Run Command
The canonical command for a full pipeline run with reproducible environments:HPC / Slurm Cluster Execution
For large datasets or computationally intensive steps (M05 HyPhy, M04 IQ-TREE2), submit to a Slurm cluster using a Snakemake profile:Monitoring Progress
Real-time Log Tailing
Monitor the main Snakemake log and any specific rule log simultaneously:Checking DAG Progress
Expected Runtime by Module (Reference: 16-core workstation, 3,000 sequences, Flu A MP)
M05 HyPhy GARD is the single most compute-intensive step. For short segments (< 1,200 bp) with < 300 sequences, GARD may complete in 1–2 hours. For whole-genome targets or large datasets, always submit GARD to an HPC cluster.
Checkpoint Behaviour (M07 Bridge Builder)
M07 is declared as a Snakemakecheckpoint rather than a regular rule. This is a critical architectural detail:
- A checkpoint forces Snakemake to re-evaluate the DAG after it completes, because the number of output regions (and therefore the number of downstream M08/M09/M10 jobs) is not known until M07 finishes and writes the manifest.
- After M07 completes, Snakemake reads
results/{BUILD}/m07/primer_targets_manifest.yamlto discover the list ofregion_idvalues, then dynamically schedules the appropriate number of M08, M09, and M10 instances.
Partial Failure Recovery
Resuming After Interruption
Snakemake automatically tracks which output files exist. Simply re-run the same command with--rerun-incomplete:
--rerun-incomplete detects these and marks them for re-execution.
Unlocking a Locked Working Directory
If Snakemake was killed without a clean shutdown, it may leave a.snakemake/locks/ directory that prevents new runs:
Forcing a Specific Module to Re-run
Dry-Run Validation
Always run a dry-run before any full pipeline execution to validate the DAG without executing anything:- Expected number of jobs (verify it matches your target)
- Any
MissingInputExceptionerrors (missing config files or input data) - Any
AmbiguousRuleExceptionerrors (rule ordering conflicts) - Resource estimates in the
--dryrunsummary
