foryourhealth111-pixel/vibe-skills/clinpgx-database
Claude Code and agent skill by foryourhealth111-pixel/vibe-skills
- community
Checking that the SKILL.md file is still in the repository.
Access ClinPGx pharmacogenomics data (successor to PharmGKB). Query gene-drug interactions, CPIC guidelines, allele functions, for precision medicine and genotype-guided dosing decisions.
Install
npx vskill@latest install foryourhealth111-pixel/vibe-skills/clinpgx-databaseSKILL.md
The same SKILL.md was published earlier as foryourhealth111-pixel/vibe-skills/clinpgx-database.
ClinPGx Database
Overview
ClinPGx (Clinical Pharmacogenomics Database) is a comprehensive resource for clinical pharmacogenomics information, 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 applications.
When to Use This Skill
This skill should be used when:
- Gene-drug interactions: Querying how genetic variants affect drug metabolism, efficacy, or toxicity
- CPIC guidelines: Accessing evidence-based clinical practice guidelines for pharmacogenetics
- Allele information: Retrieving allele function, frequency, and phenotype data
- Drug labels: Exploring FDA and other regulatory pharmacogenomic drug labeling
- Pharmacogenomic annotations: Accessing curated literature on gene-drug-disease relationships
- Clinical decision support: Using PharmDOG tool for phenoconversion and custom genotype interpretation
- Precision medicine: Implementing pharmacogenomic testing in clinical practice
- Drug metabolism: Understanding CYP450 and other pharmacogene functions
- Personalized dosing: Finding genotype-guided dosing recommendations
- Adverse drug reactions: Identifying genetic risk factors for drug toxicity
Installation and Setup
Python API Access
The ClinPGx REST API provides programmatic access to all database resources. Basic setup:
API Endpoint
Rate Limits:
- 2 requests per second maximum
- Excessive requests will result in HTTP 429 (Too Many Requests) response
Authentication: Not required for basic access
Data License: Creative Commons Attribution-ShareAlike 4.0 International License
For substantial API use, notify the ClinPGx team at api@clinpgx.org
Core Capabilities
1. Gene Queries
Retrieve gene information including function, clinical annotations, and pharmacogenomic significance:
Key pharmacogenes:
- CYP450 enzymes: CYP2D6, CYP2C19, CYP2C9, CYP3A4, CYP3A5
- Transporters: SLCO1B1, ABCB1, ABCG2
- Other metabolizers: TPMT, DPYD, NUDT15, UGT1A1
- Receptors: OPRM1, HTR2A, ADRB1
- HLA genes: HLA-B, HLA-A
2. Drug and Chemical Queries
Retrieve drug information including pharmacogenomic annotations and mechanisms:
Drug categories with pharmacogenomic significance:
- Anticoagulants (warfarin, clopidogrel)
- Antidepressants (SSRIs, TCAs)
- Immunosuppressants (tacrolimus, azathioprine)
- Oncology drugs (5-fluorouracil, irinotecan, tamoxifen)
- Cardiovascular drugs (statins, beta-blockers)
- Pain medications (codeine, tramadol)
- Antivirals (abacavir)
3. Gene-Drug Pair Queries
Access curated gene-drug relationships with clinical annotations:
Clinical annotation sources:
- CPIC (Clinical Pharmacogenetics Implementation Consortium)
- DPWG (Dutch Pharmacogenetics Working Group)
- FDA (Food and Drug Administration) labels
- Peer-reviewed literature summary annotations
4. CPIC Guidelines
Access evidence-based clinical practice guidelines:
CPIC guideline components:
- Gene-drug pairs covered
- Clinical recommendations by phenotype
- Evidence levels and strength ratings
- Supporting literature
- Downloadable PDFs and supplementary materials
- Implementation considerations
Example guidelines:
- CYP2D6-codeine (avoid in ultra-rapid metabolizers)
- CYP2C19-clopidogrel (alternative therapy for poor metabolizers)
- TPMT-azathioprine (dose reduction for intermediate/poor metabolizers)
- DPYD-fluoropyrimidines (dose adjustment based on activity)
- HLA-B*57:01-abacavir (avoid if positive)
5. Allele and Variant Information
Query allele function and frequency data:
Allele information includes:
- Functional status (normal, decreased, no function, increased, uncertain)
- Population frequencies across ethnic groups
- Defining variants (SNPs, indels, CNVs)
- Phenotype assignment
- References to PharmVar and other nomenclature systems
Phenotype categories:
- Ultra-rapid metabolizer (UM): Increased enzyme activity
- Normal metabolizer (NM): Normal enzyme activity
- Intermediate metabolizer (IM): Reduced enzyme activity
- Poor metabolizer (PM): Little to no enzyme activity
6. Variant Annotations
Access clinical annotations for specific genetic variants:
Variant data includes:
- rsID and genomic coordinates
- Gene and functional consequence
- Allele associations
- Clinical significance
- Population frequencies
- Literature references
7. Clinical Annotations
Retrieve curated literature annotations (formerly PharmGKB clinical annotations):
Evidence levels (from highest to lowest):
- Level 1A: High-quality evidence, CPIC/FDA/DPWG guidelines
- Level 1B: High-quality evidence, not yet guideline
- Level 2A: Moderate evidence from well-designed studies
- Level 2B: Moderate evidence with some limitations
- Level 3: Limited or conflicting evidence
- Level 4: Case reports or weak evidence
8. Drug Labels
Access pharmacogenomic information from drug labels:
Label information includes:
- Testing recommendations
- Dosing guidance by genotype
- Warnings and precautions
- Biomarker information
- Regulatory source (FDA, EMA, PMDA, etc.)
9. Pathways
Explore pharmacokinetic and pharmacodynamic pathways:
Pathway diagrams show:
- Drug metabolism steps
- Enzymes and transporters involved
- Gene variants affecting each step
- Downstream effects on efficacy/toxicity
- Interactions with other pathways
Query Workflow
Workflow 1: Clinical Decision Support for Drug Prescription
- Identify patient genotype for relevant pharmacogenes:
``python # Example: Patient is CYP2C19 *1/*2 (intermediate metabolizer) response = requests.get("https://api.clinpgx.org/v1/allele/CYP2C19*2") allele_function = response.json() ``
- Query gene-drug pairs for medication of interest:
``python response = requests.get("https://api.clinpgx.org/v1/geneDrugPair", params={"gene": "CYP2C19", "drug": "clopidogrel"}) pair_info = response.json() ``
- Retrieve CPIC guideline for dosing recommendations:
``python response = requests.get("https://api.clinpgx.org/v1/guideline", params={"gene": "CYP2C19", "drug": "clopidogrel"}) guideline = response.json() # Recommendation: Alternative antiplatelet therapy for IM/PM ``
- Check drug label for regulatory guidance:
``python response = requests.get("https://api.clinpgx.org/v1/drugLabel", params={"drug": "clopidogrel"}) label = response.json() ``
Workflow 2: Gene Panel Analysis
- Get list of pharmacogenes in clinical panel:
``python pgx_panel = ["CYP2C19", "CYP2D6", "CYP2C9", "TPMT", "DPYD", "SLCO1B1"] ``
- For each gene, retrieve all drug interactions:
``python all_interactions = {} for gene in pgx_panel: response = requests.get("https://api.clinpgx.org/v1/geneDrugPair", params={"gene": gene}) all_interactions[gene] = response.json() ``
- Filter for CPIC guideline-level evidence:
``python for gene, pairs in all_interactions.items(): for pair in pairs: if pair.get('cpicLevel'): # Has CPIC guideline print(f"{gene} - {pair['drug']}: {pair['cpicLevel']}") ``
- Generate patient report with actionable pharmacogenomic findings.
Workflow 3: Drug Safety Assessment
- Query drug for PGx associations:
``python response = requests.get("https://api.clinpgx.org/v1/chemical", params={"name": "abacavir"}) drug_id = response.json()[0]['id'] ``
- Get clinical annotations:
``python response = requests.get("https://api.clinpgx.org/v1/clinicalAnnotation", params={"drug": drug_id}) annotations = response.json() ``
- Check for HLA associations and toxicity risk:
``python for annotation in annotations: if 'HLA' in annotation.get('genes', []): print(f"Toxicity risk: {annotation['phenotype']}") print(f"Evidence level: {annotation['evidenceLevel']}") ``
- Retrieve screening recommendations from guidelines and labels.
Workflow 4: Research Analysis - Population Pharmacogenomics
- Get allele frequencies for population comparison:
``python response = requests.get("https://api.clinpgx.org/v1/allele", params={"gene": "CYP2D6"}) alleles = response.json() ``
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbundled/skills/clinpgx-database/SKILL.md
Popularity
- Repository stars
- 2,940
- Repository forks
- 236
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/foryourhealth111-pixel/vibe-skills/clinpgx-database)