Call CYP2D6, CYP2C9, CYP2C19, DPYD, TPMT, NUDT15, UGT1A1, SLCO1B1, CYP3A5, VKORC1, and other CPIC Level A pharmacogenes from sequencing data; translate diplotype to activity score (Caudle 2020) and phenotype; apply CPIC and DPWG dosing guidance. Covers HLA-B57:01 / B15:02 / B58:01 / A31:01 / B35:02 screening for ICI / antiepileptics / abacavir / minocycline, with explicit recognition of the CYP2D6 SV footgun (4xN clinical silence), the 2024 DPYD activity-score framework, the 2025 TPMT+NUDT15 compound-IM update, and the COAG paradigmatic ancestry-algorithm failure.
# PharmCAT (CPIC-recommended multi-gene)
java -jar pharmcat.jar --help
# Download from https://pharmcat.org
# Cyrius (CYP2D6 SV-aware; mandatory for CYP2D6)
pip install cyrius
# or: conda install -c bioconda cyrius
# Aldy (alternative multi-gene)
pip install aldy
# HLA imputation from SNP arrays
# R: install.packages('HIBAG')
# Download ancestry-matched reference panel from https://hibag.s3.amazonaws.com/
# PharmGKB API
pip install requests pandas
Tell the agent what to do: - "Run PharmCAT on this VCF; supplement CYP2D6 with Cyrius; cross-reference HLA from typing" - "Calculate CYP2D6 activity score for 4xN/10 (this is the clinical-silence footgun)" - "For this East-Asian patient, screen NUDT15 3 before mercaptopurine; do NOT rely on TPMT alone" - "Apply CPIC DPYD activity-score framework to determine fluoropyrimidine dose" - "Pre-emptive PGx panel from VCF: report all CPIC Level A genes with phenotype + dosing" - "Screen HLA-B57:01 before abacavir; require 4-field specificity to distinguish from *57:03"
"Run PharmCAT on my cohort VCF. For samples with CYP2D6 suspected SVs (CN!=2 in BAM coverage), run Cyrius and merge outside calls. Generate per-sample CPIC report."
"Apply Swen 2023 PREPARE-style 12-gene panel to this cohort; flag patients with actionable interactions for their prescribed drugs."
"For sample with CYP2D6 4xN/10, compute activity score using Caudle 2020 values. Confirm *4xN is clinically silent (AS contribution = 0)."
"Run Cyrius on this WGS BAM; report CYP2D6 diplotype + activity + phenotype + copy number. Cross-check against PharmCAT prediction."
"Patient is 2xN/4. Is this an Ultra-rapid Metabolizer? Show activity score calculation."
"Apply CPIC DPYD activity-score framework to my fluoropyrimidine-treated cancer cohort. Identify AS 0 (avoid), AS 1.0-1.5 (50% start + TDM), AS 2.0 (full dose). Note: c.85T>C is NOT in the CPIC actionable set."
"For African-ancestry patients, supplement the 4-variant CPIC core panel with extended DPYD coverage."
"Apply Maillard 2026 update: compound TPMT IM + NUDT15 IM requires more aggressive dose reduction than single-gene IM. Report dose recommendation."
"Screen East-Asian thiopurine cohort for NUDT15 *3 (c.415C>T, rs116855232). Do NOT rely on TPMT-only testing."
"Pre-prescription HLA-B57:01 screen for abacavir; require 4-field. Distinguish 57:01 (risk) from 57:02 / 57:03 (no risk)."
"Screen this Han Chinese patient for B15:02 (carbamazepine SJS), B58:01 (allopurinol), B*13:01 (dapsone) before any prescribing."
"Impute HLA from SNP-array genotypes using HIBAG with the ancestry-matched reference panel."
"For this post-PCI ACS patient with CYP2C19 2/17, recommend P2Y12 selection per CPIC. Cite TAILOR-PCI sensitivity analyses + Pereira 2021 meta-analysis."
"Apply IWPC warfarin algorithm explicitly INCLUDING CYP2C9 5/6/8/11 for this African-ancestry patient. Document COAG paradigmatic ancestry-algorithm failure rationale."