genomics-pipeline

Step 7: Pharmacogenomics (PharmCAT)

What This Does

Clinical-grade pharmacogenomic analysis — determines how you metabolize drugs based on your DNA. The same tool hospitals use for precision medicine.

Why

Identifies which drugs work well, which need dose adjustments, and which to avoid entirely. Covers 23 pharmacogenes affecting hundreds of medications.

Tool

Docker Image

pgkb/pharmcat:2.15.5

Command

SAMPLE=your_sample
GENOME_DIR=/path/to/your/data

# Step 1: preprocess the VCF against the GRCh38 reference
docker run --rm \
  --cpus 2 --memory 4g \
  -v ${GENOME_DIR}/${SAMPLE}/vcf:/data \
  -v ${GENOME_DIR}/reference:/ref \
  pgkb/pharmcat:2.15.5 \
  python3 /pharmcat/pharmcat_vcf_preprocessor.py \
    -vcf /data/${SAMPLE}.vcf.gz \
    -refFna /ref/Homo_sapiens_assembly38.fasta \
    -o /data/ \
    -bf ${SAMPLE}

# Step 2: run PharmCAT on the preprocessed VCF
docker run --rm \
  --cpus 2 --memory 4g \
  -v ${GENOME_DIR}/${SAMPLE}/vcf:/data \
  pgkb/pharmcat:2.15.5 \
  java -jar /pharmcat/pharmcat.jar \
    -vcf /data/${SAMPLE}.preprocessed.vcf.bgz \
    -o /data/ \
    -bf ${SAMPLE} \
    -reporterJson

Output

Key Genes

| Gene | Drugs Affected | Example | |—|—|—| | CYP2C19 | SSRIs, PPIs, clopidogrel | 1/17 = rapid → SSRIs fail faster | | CYP2D6 | 25% of all drugs, opioids, tamoxifen | Complex — may need BAM-based calling | | UGT1A1 | Irinotecan, bilirubin clearance | 28/28 = Gilbert’s syndrome | | DPYD | 5-FU, capecitabine (chemo) | Poor = lethal toxicity | | NAT2 | Isoniazid, hydralazine | Slow acetylator = increased toxicity |

Limitations

Maintenance