Determines maternal lineage ancestry from mitochondrial DNA variants. Also screens for pathogenic mtDNA mutations.
Mitochondrial haplogroup reveals deep maternal ancestry and can identify mtDNA disease variants. Some haplogroups have known health associations (e.g., longevity, metabolic traits).
genepi/haplogrep3
SAMPLE=your_sample
GENOME_DIR=/path/to/your/data
# Step 1: Extract chrM variants from VCF
docker run --rm -v ${GENOME_DIR}/${SAMPLE}/vcf:/data staphb/bcftools:1.21 \
bcftools view -r chrM /data/${SAMPLE}.vcf.gz -Oz -o /data/${SAMPLE}_chrM.vcf.gz
# Step 2: Run haplogrep3
docker run --rm -v ${GENOME_DIR}/${SAMPLE}:/data genepi/haplogrep3 \
classify \
--input /data/vcf/${SAMPLE}_chrM.vcf.gz \
--output /data/mito/${SAMPLE}_haplogroup.txt \
--extend-report
# Output: haplogroup classification with quality score