/clawbio:pharmgx-reporterfrom clawbio
Generates a pharmacogenomic report from 23andMe or AncestryDNA raw data, covering 12 genes, 31 SNPs, and 51 drugs with CPIC-based drug-gene interaction guidance.
Ships in clawbio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are PharmGx Reporter, a specialised ClawBio agent for pharmacogenomic analysis. Your role is to generate a personalised drug–gene interaction report from consumer genetic data.
--drug flag for quick lookup of one medication (used by Drug Photo skill)| Format | Extension | Required Fields | Example |
|---|---|---|---|
| 23andMe raw data | .txt, .txt.gz | rsid, chromosome, position, genotype | demo_patient.txt |
| AncestryDNA raw data | .txt | rsid, chromosome, position, allele1, allele2 | — |
Both GRCh37 and GRCh38 inputs are supported. Diplotypes are called by matching rsIDs, never by coordinate, so the same sample calls identically on either build. The reporter identifies the build from a five-SNP coordinate panel (chromosome and position must both agree) and states it in the report:
| Detected | Behaviour |
|---|---|
GRCh38 | Called normally |
GRCh37 | Called normally; a note records that positions are GRCh37 |
unknown_build | All genes withheld as Indeterminate. Coordinates match neither build, so the file is corrupt, remapped or annotated against an unsupported assembly, and its rsIDs cannot be trusted either |
| (none) | No panel SNP carried a usable position; the build is not asserted |
demo_patient.txt is genuine GRCh37 23andMe data and stays on GRCh37
deliberately, so the shipped demo exercises the GRCh37 path.
report.md with gene profile table, drug summary, and clinical alerts# Full report from patient data
python skills/pharmgx-reporter/pharmgx_reporter.py \
--input <patient_file> --output <report_dir>
# Demo mode (synthetic 31-SNP patient)
python skills/pharmgx-reporter/pharmgx_reporter.py \
--input skills/pharmgx-reporter/demo_patient.txt --output /tmp/pharmgx_demo
# Single-drug lookup (used by Drug Photo skill)
python skills/pharmgx-reporter/pharmgx_reporter.py \
--input <patient_file> --drug Plavix
# Via ClawBio runner
python clawbio.py run pharmgx --demo
python clawbio.py run pharmgx --input <file> --output <dir>
python clawbio.py run pharmgx --demo
Expected output: A multi-section report covering 12 gene profiles with metaboliser phenotypes, a 51-drug recommendation table (bucketed into AVOID / CAUTION / STANDARD / INSUFFICIENT), and a warfarin special alert (multi-gene CYP2C9 + VKORC1 interaction).
CYP2C19, CYP2D6, CYP2C9, VKORC1, SLCO1B1, DPYD, TPMT, UGT1A1, CYP3A5, CYP2B6, NUDT15, CYP1A2
Antiplatelet, opioids, statins, anticoagulants, PPIs, antidepressants (TCAs, SSRIs, SNRIs), antipsychotics, NSAIDs, oncology, immunosuppressants, antivirals
output_directory/
├── report.md # Full pharmacogenomic report
├── report.html # HTML version of the report
├── result.json # Machine-readable gene profiles + drug recommendations
└── reproducibility/
├── commands.sh # Exact command to reproduce this run
├── environment.yml # Conda environment (standard library only)
└── checksums.sha256 # SHA-256 of every output; verify from output_directory
Required:
Trigger conditions — the orchestrator routes here when:
Chaining partners:
drug-photo: Single-drug mode powers the photo → dosage card pipelineprofile-report: PharmGx results feed into the unified genomic profileclinpgx: ClinPGx provides deeper gene-drug lookup when the user wants more detailDPYD_Diplotype_Phenotype_Table.xlsx (generated 2026-08-07) (CPIC_TABLES_CHECKED); CYP1A2 and MTHFR not covered (no CPIC guideline)INTENTS.json (opens in a new tab)api.py (opens in a new tab)demo_patient.txt (opens in a new tab)demo_report/report.md (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-0/criteria.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-0/inputs/patient_data.txt (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-0/scenario.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-0/task.md (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-2/criteria.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-2/inputs/ancestry_patient.txt (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-2/scenario.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-2/task.md (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-3/criteria.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-3/inputs/partial_patient.txt (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-3/scenario.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-3/task.md (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-4/criteria.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-4/inputs/patient_warfarin.txt (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-4/scenario.json (opens in a new tab)evals/019e82fd-c7f1-76ed-9b4b-63bbfd454ebd/scenario-4/task.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
112 skills in this plugin
/affinity-proteomicsUnified analysis pipeline for affinity-based proteomics platforms — Olink (PEA, NPX) and SomaLogic SomaScan (SOMAmer, RFU). Platform-aware QC, normalisation, differential abundance, volcano plots, heatmaps, and PCA./analyze-fastaAnalyze a single FASTA file (nucleotide or protein), compute sequence-level metrics (GC, ORFs, MW, pI, GRAVY, secondary-structure fractions) with Biopython, and write a Markdown report plus structured JSON for downstream chaining./ancestry-risk-profilerInfers genetic super-population ancestry from a 23andMe/AncestryDNA file and computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation Score (AES) showing where ancestry-specific GWAS effect sizes diverge from European reference estimates. The bundled demo panel requires user-supplied ancestry because high-Fst AIM coverage is below the automatic-inference floor.npx claudepluginhub clawbio/clawbio --plugin clawbioOther plugins' skills for the same job