Queries ClinPGx pharmacogenomics data for gene-drug interactions, CPIC/DPWG dosing guidelines, drug labels, and pharmacogene records. Supports precision medicine decisions for CYP2D6, CYP2C19, TPMT, DPYD, SLCO1B1 and other pharmacogenes.
ClinPGx (Clinical Pharmacogenomics Database) is a comprehensive resource for clinical pharmacogenomics, the successor to PharmGKB. It consolidates data from PharmGKB, CPIC, and PharmCAT, providing curated information on how genetic variation affects medication response. Access gene-drug pairs, clinical guidelines, allele functions, and drug labels for precision medicine.
Use this skill for:
| Scenario | Use Instead |
|---|---|
| Germline/somatic variant pathogenicity or ClinVar review status | alterlab-clinvar |
| Population allele frequencies for a variant (gnomAD v4) | alterlab-gnomad |
| Drug–drug interactions or general pharmacology with no genetic component | alterlab-drugbank |
| FDA adverse-event reports, recalls, or full-text label search | alterlab-fda |
| Literature search — guideline publications, review papers, full citations and abstracts | alterlab-pubmed |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-clinvar) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Only requests is needed. Run the helper script (or any snippet) with an
ephemeral dependency — no venv to manage:
uv run --with requests python scripts/query_clinpgx.py
# or, inside an existing project venv: uv pip install requests
Base URL: https://api.clinpgx.org/v1/data/ — the legacy api.pharmgkb.org host was
turned off on 2026-07-20, so older PharmGKB scripts must switch hostnames (paths are
unchanged).
PA128, CYP2C9 = PA126), not by gene
symbols or rsIDs. To resolve a symbol or rsID, query the collection endpoint
with parameters (e.g. GET /v1/data/gene?symbol=CYP2D6,
GET /v1/data/variant?symbol=rs4244285) and read the accession ID from the
response.{"status": "success"|"fail", "data": [...]} — the payload is never a bare
list. Read results from response.json()["data"]; on status == "fail",
data is {"errors": [...]} (e.g. "No results matching criteria").relatedGenes.symbol
(the .name form fails), while chemicals/drugs filter on
relatedChemicals.name — relatedChemicals.symbol silently returns
status: "fail" with zero results. The gene collection takes ?symbol=, the
chemical collection takes ?name=, and variant accepts ?symbol=/?name=.symbol= parameters.gene, chemical, guidelineAnnotation,
summaryAnnotation, variantAnnotation, variant, label, or pathway.
There is no /allele resource — use PharmVar (https://www.pharmvar.org/)
for star-allele definitions and population frequencies.relatedGenes.symbol for genes, relatedChemicals.name for drugs), or the
/report/pair/{firstObjId}/{secondObjId}/{resultType} endpoint.For ready-made functions with rate limiting and error handling, see
scripts/query_clinpgx.py.
references/endpoints-and-capabilities.md.references/query-workflows.md.references/rate-limiting-and-error-handling.md.references/api_reference.md.references/api_reference.md — Complete endpoint listing, request/response
formats, filter operators, data schemas, rate-limit details, and
troubleshooting.references/endpoints-and-capabilities.md — Worked code for all nine
capability areas (gene, drug/chemical, gene-drug pair, CPIC guidelines,
allele/PharmVar, variant, clinical annotations, drug labels, pathways),
including key pharmacogenes and evidence-level definitions.references/query-workflows.md — Five end-to-end workflows (decision support,
gene panel, drug safety, population pharmacogenomics, literature review) plus
common use cases (pre-emptive testing, medication therapy management, trial
eligibility).references/rate-limiting-and-error-handling.md — Reusable helpers for rate
limiting, retries with exponential backoff, and result caching.PharmDOG (formerly DDRx) is ClinPGx's clinical decision support tool for interpreting pharmacogenomic test results. Features: phenoconversion calculator (adjusts phenotype for drug-drug interactions affecting CYP2D6), custom genotype input, QR-code report sharing, selectable guidance sources (CPIC, DPWG, FDA), and multi-drug analysis. Access: https://www.clinpgx.org/pharmacogenomic-decision-support
Data sources — ClinPGx consolidates PharmGKB (now part of ClinPGx), CPIC, PharmCAT, DPWG, and FDA/EMA labels. As of July 2025, all PharmGKB URLs redirect to corresponding ClinPGx pages.
Clinical considerations — Always check evidence strength before clinical application; allele frequencies vary significantly across populations; account for phenoconversion (drug-drug interactions) and multi-gene effects; non-genetic factors (age, organ function) also affect response; not all clinically relevant alleles are detected by all assays.
Data updates / API stability — ClinPGx updates continuously; check publication dates and the ClinPGx Blog (https://blog.clinpgx.org/). API endpoints are relatively stable but may change during development — pin versions and test in development before production.
evals/evals.json (opens in a new tab)references/api_reference.md (opens in a new tab)references/endpoints-and-capabilities.md (opens in a new tab)references/query-workflows.md (opens in a new tab)references/rate-limiting-and-error-handling.md (opens in a new tab)scripts/query_clinpgx.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job