Precision Medicine Patient Stratification
Transform patient genomic and clinical profiles into actionable risk stratification, treatment recommendations, and personalized therapeutic strategies.
Reasoning Before Searching
Stratification means splitting patients into groups that respond differently to a treatment or have different prognoses. Ask these questions before running any tools:
- What molecular feature predicts response? Candidates: somatic mutation (e.g., EGFR L858R), germline variant (e.g., BRCA1 LoF), expression level (e.g., HER2 overexpression), germline pharmacogenomic variant (e.g., CYP2C19 PM), or composite biomarker (e.g., TMB-H + MSI-H).
- Is the predictive feature actionable? Knowing it must change treatment — either the drug choice, dose, or monitoring plan. A variant with prognostic value but no therapeutic consequence is not a stratification biomarker.
- What is the evidence level for the stratifier? FDA-approved companion diagnostic (T1) vs. exploratory (T4) changes how much weight to place on the finding.
Route to the correct Phase 3 path BEFORE running Phase 2 tools — cancer, metabolic, CVD, rare disease, and autoimmune pipelines require different stratifiers.
LOOK UP DON'T GUESS: Never assume a variant is pathogenic, never assume a gene is relevant to a disease, never assign metabolizer status without PharmGKB or CPIC evidence.
KEY PRINCIPLES:
- Report-first - Create report file FIRST, then populate progressively
- Disease-specific logic - Cancer vs metabolic vs rare disease pipelines diverge at Phase 3
- Multi-level integration - Germline + somatic + expression + clinical data layers
- Evidence-graded - Every finding has an evidence tier (T1-T4)
- Quantitative output - Precision Medicine Risk Score (0-100)
- Source-referenced - Every statement cites the tool/database source
- English-first queries - Always use English terms in tool calls
Reference files (same directory):
TOOLS_REFERENCE.md - Tool parameters, response formats, phase-by-phase tool lists
SCORING_REFERENCE.md - Scoring matrices, risk tiers, pathogenicity tables, PGx tables
REPORT_TEMPLATE.md - Output report template, treatment algorithms, completeness requirements
EXAMPLES.md - Six worked examples (cancer, metabolic, NSCLC, CVD, rare, neuro)
QUICK_START.md - Sample prompts and output summary
COMPUTE, DON'T DESCRIBE
When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.
When to Use
Apply when user asks about patient risk stratification, treatment selection, prognosis prediction, or personalized therapeutic strategy for any disease with genomic/clinical data.
NOT for (use other skills instead):
- Single variant interpretation ->
tooluniverse-variant-interpretation
- Immunotherapy-specific prediction ->
tooluniverse-immunotherapy-response-prediction
- Drug safety profiling only ->
tooluniverse-adverse-event-detection
- Target validation ->
tooluniverse-drug-target-validation
- Clinical trial search only ->
tooluniverse-clinical-trial-matching
- Drug-drug interaction only ->
tooluniverse-drug-drug-interaction
- PRS calculation only ->
tooluniverse-polygenic-risk-score
Input Parsing
Required
- Disease/condition: Free-text disease name
- At least one of: Germline variants, somatic mutations, gene list, or clinical biomarkers
Optional (improves stratification)
- Age, sex, ethnicity, disease stage, comorbidities, prior treatments, family history
- Current medications (for DDI and PGx), stratification goal
Disease Type Classification
Classify into one category (determines Phase 3 routing):
| Category |
Examples |
| CANCER |
Breast, lung, colorectal, melanoma |
| METABOLIC |
Type 2 diabetes, obesity, NAFLD |
| CARDIOVASCULAR |
CAD, heart failure, AF |
| NEUROLOGICAL |
Alzheimer, Parkinson, epilepsy |
| RARE/MONOGENIC |
Marfan, CF, sickle cell, Huntington |
| AUTOIMMUNE |
RA, lupus, MS, Crohn's |
Critical Tool Parameter Notes
See TOOLS_REFERENCE.md for full details. Key gotchas:
- MyGene_query_genes: param is
query (NOT q)
- EnsemblVEP_annotate_rsid: param is
variant_id (NOT rsid)
- ensembl_lookup_gene: REQUIRES
species='homo_sapiens'
- DrugBank tools: ALL require 4 params:
query, case_sensitive, exact_match, limit
- cBioPortal_get_mutations:
gene_list is a STRING (space-separated), not array
- PubMed_search_articles: Returns a plain list of dicts, NOT
{articles: [...]}
- fda_pharmacogenomic_biomarkers: Use
limit=1000 for all results
- gnomAD: May return "Service overloaded" - skip gracefully
- OpenTargets: Always nested
{data: {entity: {field: ...}}} structure
Workflow Overview
Phase 1: Disease Disambiguation & Profile Standardization
Phase 2: Genetic Risk Assessment
Phase 3: Disease-Specific Molecular Stratification (routes by disease type)
Phase 4: Pharmacogenomic Profiling
Phase 5: Comorbidity & Drug Interaction Risk
Phase 6: Molecular Pathway Analysis
Phase 7: Clinical Evidence & Guidelines
Phase 8: Clinical Trial Matching
Phase 9: Integrated Scoring & Recommendations
Phase 1: Disease Disambiguation & Profile Standardization
- Resolve disease to EFO ID using
OpenTargets_get_disease_id_description_by_name
- Classify disease type (CANCER/METABOLIC/CVD/NEUROLOGICAL/RARE/AUTOIMMUNE)
- Parse genomic data into structured format (gene, variant, type)
- Resolve gene IDs using
MyGene_query_genes to get Ensembl/Entrez IDs
Phase 2: Genetic Risk Assessment
- Germline variant pathogenicity:
ClinVar_search_variants, EnsemblVEP_annotate_rsid/_hgvs
- Gene-disease association:
OpenTargets_target_disease_evidence
- GWAS polygenic risk:
gwas_get_associations_for_trait, OpenTargets_search_gwas_studies_by_disease
- Population frequency:
gnomad_get_variant
- Gene constraint:
gnomad_get_gene_constraints (pLI, LOEUF scores)
Scoring: See SCORING_REFERENCE.md for genetic risk score component (0-35 points).
Phase 3: Disease-Specific Molecular Stratification
CANCER PATH
- Molecular subtyping:
cBioPortal_get_mutations, HPA_get_cancer_prognostics_by_gene
- TMB/MSI/HRD:
fda_pharmacogenomic_biomarkers for FDA cutoffs
- Prognostic stratification: Combine stage + molecular features
METABOLIC PATH
- Genetic risk integration:
GWAS_search_associations_by_gene, OpenTargets_target_disease_evidence
- Complication risk: Based on HbA1c, duration, existing complications
CVD PATH
- FH gene check:
ClinVar_search_variants for LDLR, APOB, PCSK9
- Statin PGx:
PharmGKB_get_clinical_annotations for SLCO1B1
RARE DISEASE PATH
- Causal variant identification:
ClinVar_search_variants
- Genotype-phenotype:
UniProt_get_disease_variants_by_accession
Scoring: See SCORING_REFERENCE.md for disease-specific tables.
Phase 4: Pharmacogenomic Profiling
- Drug-metabolizing enzymes:
PharmGKB_get_clinical_annotations, PharmGKB_get_dosing_guidelines
- FDA PGx biomarkers:
fda_pharmacogenomic_biomarkers (use limit=1000)
- Treatment-specific PGx:
PharmGKB_get_drug_details
Scoring: See SCORING_REFERENCE.md for PGx risk score (0-10 points).
Phase 5: Comorbidity & Drug Interaction Risk
- Disease overlap:
OpenTargets_get_associated_targets_by_disease_efoId
- DDI check:
drugbank_get_drug_interactions_by_drug_name_or_id, FDA_get_drug_interactions_by_drug_name
- PGx-amplified DDI: If PM genotype + CYP inhibitor, flag compounded risk
Phase 6: Molecular Pathway Analysis
- Pathway enrichment:
enrichr_gene_enrichment_analysis (libs: KEGG_2021_Human, Reactome_2022, GO_Biological_Process_2023)
- Reactome mapping:
ReactomeAnalysis_pathway_enrichment, Reactome_map_uniprot_to_pathways
- Network analysis:
STRING_get_interaction_partners, STRING_functional_enrichment
- Druggable targets:
OpenTargets_get_target_tractability_by_ensemblID
Phase 7: Clinical Evidence & Guidelines
- Guidelines search:
PubMed_Guidelines_Search (fallback: PubMed_search_articles)
- FDA-approved therapies:
OpenTargets_get_associated_drugs_by_disease_efoId, FDA_get_indications_by_drug_name
- Biomarker-drug evidence:
civic_search_evidence_items, civic_search_assertions
Phase 8: Clinical Trial Matching
- Biomarker-driven trials:
search_clinical_trials with condition + intervention
- Precision medicine trials:
search_clinical_trials for basket/umbrella trials
Phase 9: Integrated Scoring & Recommendations
Score Components (total 0-100)
- Genetic Risk (0-35): Pathogenicity + gene-disease association + PRS
- Clinical Risk (0-30): Stage/biomarkers/comorbidities
- Molecular Features (0-25): Driver mutations, subtypes, actionable targets
- Pharmacogenomic Risk (0-10): Metabolizer status, HLA alleles
Risk Tiers
| Score |
Tier |
Management |
| 75-100 |
VERY HIGH |
Intensive treatment, subspecialty referral, clinical trial |
| 50-74 |
HIGH |
Aggressive treatment, close monitoring |
| 25-49 |
INTERMEDIATE |
Standard guideline-based care, PGx-guided dosing |
| 0-24 |
LOW |
Surveillance, prevention, risk factor modification |
Output
Generate report per REPORT_TEMPLATE.md. See SCORING_REFERENCE.md for detailed scoring matrices.
Common Use Patterns
See EXAMPLES.md for six detailed worked examples:
- Cancer + actionable mutation: Breast cancer, BRCA1, ER+/HER2- -> Score ~55-65 (HIGH)
- Metabolic + PGx concern: T2D, CYP2C19 PM on clopidogrel -> Score ~55-65 (HIGH)
- NSCLC comprehensive: EGFR L858R, TMB 25, PD-L1 80% -> Score ~75-85 (VERY HIGH)
- CVD risk: LDL 190, SLCO1B1*5, family hx MI -> Score ~50-60 (HIGH)
- Rare disease: Marfan, FBN1 variant -> Score ~55-65 (HIGH)
- Neurological risk: APOE e4/e4, family hx Alzheimer's -> Score ~60-72 (HIGH)
1---
2name: tooluniverse-precision-medicine-stratification
3description: Patient stratification for precision medicine — integrate genomic, clinical, and therapeutic data to split patients into responder/non-responder groups, risk tiers, or treatment-decision groups. Use for stratification-by-biomarker, treatment-selection logic, and personalized therapeutic strategy reports per patient subgroup.
4disable-model-invocation: true
5---
6
7# Precision Medicine Patient Stratification
8
9Transform patient genomic and clinical profiles into actionable risk stratification, treatment recommendations, and personalized therapeutic strategies.
10
11## Reasoning Before Searching
12
13Stratification means splitting patients into groups that respond differently to a treatment or have different prognoses. Ask these questions before running any tools:
14
151. **What molecular feature predicts response?** Candidates: somatic mutation (e.g., EGFR L858R), germline variant (e.g., BRCA1 LoF), expression level (e.g., HER2 overexpression), germline pharmacogenomic variant (e.g., CYP2C19 PM), or composite biomarker (e.g., TMB-H + MSI-H).
162. **Is the predictive feature actionable?** Knowing it must change treatment — either the drug choice, dose, or monitoring plan. A variant with prognostic value but no therapeutic consequence is not a stratification biomarker.
173. **What is the evidence level for the stratifier?** FDA-approved companion diagnostic (T1) vs. exploratory (T4) changes how much weight to place on the finding.
18
19Route to the correct Phase 3 path BEFORE running Phase 2 tools — cancer, metabolic, CVD, rare disease, and autoimmune pipelines require different stratifiers.
20
21**LOOK UP DON'T GUESS**: Never assume a variant is pathogenic, never assume a gene is relevant to a disease, never assign metabolizer status without PharmGKB or CPIC evidence.
22
23**KEY PRINCIPLES**:
241. **Report-first** - Create report file FIRST, then populate progressively
252. **Disease-specific logic** - Cancer vs metabolic vs rare disease pipelines diverge at Phase 3
263. **Multi-level integration** - Germline + somatic + expression + clinical data layers
274. **Evidence-graded** - Every finding has an evidence tier (T1-T4)
285. **Quantitative output** - Precision Medicine Risk Score (0-100)
296. **Source-referenced** - Every statement cites the tool/database source
307. **English-first queries** - Always use English terms in tool calls
31
32**Reference files** (same directory):
33- `TOOLS_REFERENCE.md` - Tool parameters, response formats, phase-by-phase tool lists
34- `SCORING_REFERENCE.md` - Scoring matrices, risk tiers, pathogenicity tables, PGx tables
35- `REPORT_TEMPLATE.md` - Output report template, treatment algorithms, completeness requirements
36- `EXAMPLES.md` - Six worked examples (cancer, metabolic, NSCLC, CVD, rare, neuro)
37- `QUICK_START.md` - Sample prompts and output summary
38
39---
40
41## COMPUTE, DON'T DESCRIBE
42When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.
43
44## When to Use
45
46Apply when user asks about patient risk stratification, treatment selection, prognosis prediction, or personalized therapeutic strategy for any disease with genomic/clinical data.
47
48**NOT for** (use other skills instead):
49- Single variant interpretation -> `tooluniverse-variant-interpretation`
50- Immunotherapy-specific prediction -> `tooluniverse-immunotherapy-response-prediction`
51- Drug safety profiling only -> `tooluniverse-adverse-event-detection`
52- Target validation -> `tooluniverse-drug-target-validation`
53- Clinical trial search only -> `tooluniverse-clinical-trial-matching`
54- Drug-drug interaction only -> `tooluniverse-drug-drug-interaction`
55- PRS calculation only -> `tooluniverse-polygenic-risk-score`
56
57---
58
59## Input Parsing
60
61### Required
62- **Disease/condition**: Free-text disease name
63- **At least one of**: Germline variants, somatic mutations, gene list, or clinical biomarkers
64
65### Optional (improves stratification)
66- Age, sex, ethnicity, disease stage, comorbidities, prior treatments, family history
67- Current medications (for DDI and PGx), stratification goal
68
69### Disease Type Classification
70
71Classify into one category (determines Phase 3 routing):
72
73| Category | Examples |
74|----------|----------|
75| **CANCER** | Breast, lung, colorectal, melanoma |
76| **METABOLIC** | Type 2 diabetes, obesity, NAFLD |
77| **CARDIOVASCULAR** | CAD, heart failure, AF |
78| **NEUROLOGICAL** | Alzheimer, Parkinson, epilepsy |
79| **RARE/MONOGENIC** | Marfan, CF, sickle cell, Huntington |
80| **AUTOIMMUNE** | RA, lupus, MS, Crohn's |
81
82---
83
84## Critical Tool Parameter Notes
85
86See `TOOLS_REFERENCE.md` for full details. Key gotchas:
87
88- **MyGene_query_genes**: param is `query` (NOT `q`)
89- **EnsemblVEP_annotate_rsid**: param is `variant_id` (NOT `rsid`)
90- **ensembl_lookup_gene**: REQUIRES `species='homo_sapiens'`
91- **DrugBank tools**: ALL require 4 params: `query`, `case_sensitive`, `exact_match`, `limit`
92- **cBioPortal_get_mutations**: `gene_list` is a STRING (space-separated), not array
93- **PubMed_search_articles**: Returns a plain list of dicts, NOT `{articles: [...]}`
94- **fda_pharmacogenomic_biomarkers**: Use `limit=1000` for all results
95- **gnomAD**: May return "Service overloaded" - skip gracefully
96- **OpenTargets**: Always nested `{data: {entity: {field: ...}}}` structure
97
98---
99
100## Workflow Overview
101
102```
103Phase 1: Disease Disambiguation & Profile Standardization
104Phase 2: Genetic Risk Assessment
105Phase 3: Disease-Specific Molecular Stratification (routes by disease type)
106Phase 4: Pharmacogenomic Profiling
107Phase 5: Comorbidity & Drug Interaction Risk
108Phase 6: Molecular Pathway Analysis
109Phase 7: Clinical Evidence & Guidelines
110Phase 8: Clinical Trial Matching
111Phase 9: Integrated Scoring & Recommendations
112```
113
114---
115
116## Phase 1: Disease Disambiguation & Profile Standardization
117
1181. **Resolve disease to EFO ID** using `OpenTargets_get_disease_id_description_by_name`
1192. **Classify disease type** (CANCER/METABOLIC/CVD/NEUROLOGICAL/RARE/AUTOIMMUNE)
1203. **Parse genomic data** into structured format (gene, variant, type)
1214. **Resolve gene IDs** using `MyGene_query_genes` to get Ensembl/Entrez IDs
122
123## Phase 2: Genetic Risk Assessment
124
1251. **Germline variant pathogenicity**: `ClinVar_search_variants`, `EnsemblVEP_annotate_rsid`/`_hgvs`
1262. **Gene-disease association**: `OpenTargets_target_disease_evidence`
1273. **GWAS polygenic risk**: `gwas_get_associations_for_trait`, `OpenTargets_search_gwas_studies_by_disease`
1284. **Population frequency**: `gnomad_get_variant`
1295. **Gene constraint**: `gnomad_get_gene_constraints` (pLI, LOEUF scores)
130
131Scoring: See `SCORING_REFERENCE.md` for genetic risk score component (0-35 points).
132
133## Phase 3: Disease-Specific Molecular Stratification
134
135### CANCER PATH
1361. **Molecular subtyping**: `cBioPortal_get_mutations`, `HPA_get_cancer_prognostics_by_gene`
1372. **TMB/MSI/HRD**: `fda_pharmacogenomic_biomarkers` for FDA cutoffs
1383. **Prognostic stratification**: Combine stage + molecular features
139
140### METABOLIC PATH
1411. **Genetic risk integration**: `GWAS_search_associations_by_gene`, `OpenTargets_target_disease_evidence`
1422. **Complication risk**: Based on HbA1c, duration, existing complications
143
144### CVD PATH
1451. **FH gene check**: `ClinVar_search_variants` for LDLR, APOB, PCSK9
1462. **Statin PGx**: `PharmGKB_get_clinical_annotations` for SLCO1B1
147
148### RARE DISEASE PATH
1491. **Causal variant identification**: `ClinVar_search_variants`
1502. **Genotype-phenotype**: `UniProt_get_disease_variants_by_accession`
151
152Scoring: See `SCORING_REFERENCE.md` for disease-specific tables.
153
154## Phase 4: Pharmacogenomic Profiling
155
1561. **Drug-metabolizing enzymes**: `PharmGKB_get_clinical_annotations`, `PharmGKB_get_dosing_guidelines`
1572. **FDA PGx biomarkers**: `fda_pharmacogenomic_biomarkers` (use `limit=1000`)
1583. **Treatment-specific PGx**: `PharmGKB_get_drug_details`
159
160Scoring: See `SCORING_REFERENCE.md` for PGx risk score (0-10 points).
161
162## Phase 5: Comorbidity & Drug Interaction Risk
163
1641. **Disease overlap**: `OpenTargets_get_associated_targets_by_disease_efoId`
1652. **DDI check**: `drugbank_get_drug_interactions_by_drug_name_or_id`, `FDA_get_drug_interactions_by_drug_name`
1663. **PGx-amplified DDI**: If PM genotype + CYP inhibitor, flag compounded risk
167
168## Phase 6: Molecular Pathway Analysis
169
1701. **Pathway enrichment**: `enrichr_gene_enrichment_analysis` (libs: `KEGG_2021_Human`, `Reactome_2022`, `GO_Biological_Process_2023`)
1712. **Reactome mapping**: `ReactomeAnalysis_pathway_enrichment`, `Reactome_map_uniprot_to_pathways`
1723. **Network analysis**: `STRING_get_interaction_partners`, `STRING_functional_enrichment`
1734. **Druggable targets**: `OpenTargets_get_target_tractability_by_ensemblID`
174
175## Phase 7: Clinical Evidence & Guidelines
176
1771. **Guidelines search**: `PubMed_Guidelines_Search` (fallback: `PubMed_search_articles`)
1782. **FDA-approved therapies**: `OpenTargets_get_associated_drugs_by_disease_efoId`, `FDA_get_indications_by_drug_name`
1793. **Biomarker-drug evidence**: `civic_search_evidence_items`, `civic_search_assertions`
180
181## Phase 8: Clinical Trial Matching
182
1831. **Biomarker-driven trials**: `search_clinical_trials` with condition + intervention
1842. **Precision medicine trials**: `search_clinical_trials` for basket/umbrella trials
185
186## Phase 9: Integrated Scoring & Recommendations
187
188### Score Components (total 0-100)
189- **Genetic Risk** (0-35): Pathogenicity + gene-disease association + PRS
190- **Clinical Risk** (0-30): Stage/biomarkers/comorbidities
191- **Molecular Features** (0-25): Driver mutations, subtypes, actionable targets
192- **Pharmacogenomic Risk** (0-10): Metabolizer status, HLA alleles
193
194### Risk Tiers
195| Score | Tier | Management |
196|-------|------|------------|
197| 75-100 | VERY HIGH | Intensive treatment, subspecialty referral, clinical trial |
198| 50-74 | HIGH | Aggressive treatment, close monitoring |
199| 25-49 | INTERMEDIATE | Standard guideline-based care, PGx-guided dosing |
200| 0-24 | LOW | Surveillance, prevention, risk factor modification |
201
202### Output
203Generate report per `REPORT_TEMPLATE.md`. See `SCORING_REFERENCE.md` for detailed scoring matrices.
204
205---
206
207## Common Use Patterns
208
209See `EXAMPLES.md` for six detailed worked examples:
2101. **Cancer + actionable mutation**: Breast cancer, BRCA1, ER+/HER2- -> Score ~55-65 (HIGH)
2112. **Metabolic + PGx concern**: T2D, CYP2C19 PM on clopidogrel -> Score ~55-65 (HIGH)
2123. **NSCLC comprehensive**: EGFR L858R, TMB 25, PD-L1 80% -> Score ~75-85 (VERY HIGH)
2134. **CVD risk**: LDL 190, SLCO1B1*5, family hx MI -> Score ~50-60 (HIGH)
2145. **Rare disease**: Marfan, FBN1 variant -> Score ~55-65 (HIGH)
2156. **Neurological risk**: APOE e4/e4, family hx Alzheimer's -> Score ~60-72 (HIGH)