13. Pan-Genome Graph Construction & Variation Graph Genotyping
Transitioning from reference bias toward non-linear multi-assembly variation graphs using Minigraph-Cactus, indexing with vg, and mapping short reads via vg giraffe.
| Metric / Requirement | Specification | Target Configuration |
|---|---|---|
| Core Engine / Framework | Minigraph-Cactus + vg giraffe + vg call | Nextflow / Snakemake Compatible |
| Benchmark Runtime | ~6 – 10 hours | 32 CPU cores / 64 GB RAM |
| Standard Container | quay.io/comparative-genomics-toolkit/cactus:v2.7.2 | Docker • Singularity • Conda |
| Input → Deliverable | Multiple FASTA Assemblies → GBZ Graph, Non-Biased Mapped GAM, Graph VCF | |
Step 1: Construct Pangenome Variation Graph with Minigraph-Cactus
Integrates dozens of phased telomere-to-telomere assemblies into a reference graph.
cactus-pangenome ./jobStore ./assemblies.seqfile \
--outDir ./pangenome_out \
--outName human_pangenome \
--reference GRCh38 \
--vcf --gbz --gfa--gbz emits the Graph-Burrows-Wheeler compressed index; --vcf creates VCF representation of all graph bubbles.Step 2: Generate vg Giraffe High-Performance Graph Indices
Builds distance index, minimizer index, and snarl decompositions for rapid k-mer alignment.
vg autoindex --workflow giraffe -p pangenome_out/human_pangenome.gbz -g pangenome_indexStep 3: Align Short Reads to Pangenome Graph with vg Giraffe
Aligns Illumina reads to the non-linear pangenome, completely eliminating human reference allele bias.
vg giraffe --gbz-name pangenome_out/human_pangenome.gbz \
--dist-name pangenome_out/human_pangenome.dist \
--min-name pangenome_out/human_pangenome.min \
-f sample_R1.fq.gz -f sample_R2.fq.gz > sample_mapped.gamStep 4: Graph-Based Genotype Calling with vg call
Packs alignment coverage depths across graph nodes/edges and calls phased variants.
vg pack -x pangenome_out/human_pangenome.gbz -g sample_mapped.gam -Q 5 -o sample.pack
vg call pangenome_out/human_pangenome.gbz -k sample.pack > sample_graph_variants.vcf🚀 Automated Nextflow (nf-core) Production Execution
Execute this complete workflow across any SLURM, AWS Batch, or Google Cloud HPC cluster using the verified community container pipeline:
# Orchestrated via Cactus container or Nextflow pangenome pipeline