Install any skill in seconds. Free to start, no credit card required.
Get Started Free →AI-powered intratumor heterogeneity analysis for clonal architecture reconstruction, subclonal evolution tracking, and therapy resistance prediction using multi-region and longitudinal sequencing.
.claude/skills/tumor-heterogeneity-agent/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 86% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 23% | 0% |
<!--
#
#
-->
The Tumor Heterogeneity Agent provides comprehensive analysis of intratumor heterogeneity (ITH) for understanding clonal architecture, tracking subclonal evolution, and predicting therapy resistance. It integrates multi-region sequencing, single-cell data, and longitudinal samples to reconstruct tumor phylogenies and identify actionable subclones.
| Metric | Definition | Clinical Relevance | |--------|------------|-------------------| | MATH Score | Mutant-allele tumor heterogeneity | ITH quantification | | Shannon Index | Clonal diversity | Evolutionary potential | | Clone Count | Number of distinct clones | Complexity | | Truncal Fraction | % truncal mutations | Targetability | | ITH Score | Composite heterogeneity | Prognosis |
User: "Analyze the clonal architecture of this multi-region lung tumor sequencing to understand heterogeneity and identify resistant subclones."
Agent Action:
bashpython3 Skills/Oncology/Tumor_Heterogeneity_Agent/ith_analysis.py \ --multi_region_vcfs region1.vcf,region2.vcf,region3.vcf \ --cnv_segments cnv_calls.seg \ --purity 0.7,0.65,0.72 \ --sample_names Primary,Met1,Met2 \ --method pyclone-vi \ --phylogeny_method citup \ --output ith_analysis/
| Method | Approach | Best For | |--------|----------|----------| | PyClone-VI | Variational inference | Large datasets | | SciClone | Kernel density | High purity | | EXPANDS | Probabilistic | Multi-region | | Canopy | EM algorithm | CNV integration | | Clonevol | Phylogeny-aware | Longitudinal | | CITUP | Integer programming | Tree optimization |
| Input | Format | Required | |-------|--------|----------| | Somatic Variants | VCF with depth | Yes | | Copy Number | SEG file | Yes | | Tumor Purity | Float (0-1) | Yes | | Sample Metadata | TSV | Yes | | Normal BAM | BAM | Recommended |
| Output | Description | Format | |--------|-------------|--------| | Clone Assignments | Mutation-to-clone mapping | .csv | | Clone Frequencies | Per-sample clone fractions | .csv | | Phylogenetic Tree | Newick and visualization | .nwk, .pdf | | ITH Metrics | Heterogeneity scores | .json | | Subclone Variants | Clone-specific mutations | .vcf | | Evolution Plot | Clone dynamics over time | .png | | Actionable Subclones | Druggable clone mutations | .csv |
| Clone Type | Definition | Implications | |------------|------------|--------------| | Truncal | Present in all samples | Ideal targets | | Branch | Present in subset | Regional targets | | Private | Single sample only | Local significance | | Resistant | Expand under therapy | Resistance mechanism |
Clone Inference:
Resistance Prediction:
Multi-Region Integration:
| Application | ITH Insight | Clinical Action | |-------------|-------------|-----------------| | Treatment Selection | Truncal vs branch targets | Prioritize truncal targets | | Resistance Monitoring | Pre-existing resistant clones | Early combination therapy | | Prognosis | ITH score | Risk stratification | | Biomarker Development | Clonal biomarkers | Robust biomarker selection |
| Cancer Type | Typical ITH | Key Drivers | |-------------|-------------|-------------| | Lung (NSCLC) | High | EGFR, KRAS subclonal | | Breast | Moderate-High | PIK3CA, ESR1 evolution | | Colorectal | Moderate | KRAS, BRAF clonal | | Renal | Very High | VHL truncal, diverse branches | | Melanoma | High | BRAF/NRAS truncal |
| View Type | Shows | Best For | |-----------|-------|----------| | Fish Plot | Clone dynamics over time | Longitudinal | | Tree Diagram | Branching evolution | Multi-region | | Muller Plot | Population dynamics | Treatment response | | Clone Map | Spatial distribution | Multi-region spatial |
| Mechanism | Detection | Intervention | |-----------|-----------|--------------| | Pre-existing resistant clone | Subclonal at baseline | Combination therapy | | Acquired resistance | New clone emerges | Switch therapy | | Phenotypic plasticity | Expression change | Monitor phenotype | | Microenvironment | TME evolution | Immunotherapy |
AI Group - Biomedical AI Platform
<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | fail→fail | 20,724 | 6,715 | -68% | 1 | 1 | 0% | 3,430 | 2,876 | -16% | 0 | 0 | — |
case-07 | fail→pass | 14,861 | 7,259 | -51% | 1 | 1 | 0% | 2,491 | 2,918 | +17% | 0 | 0 | — |
case-08 | pass→pass | 12,840 | 4,421 | -66% | 1 | 1 | 0% | 2,010 | 2,464 | +23% | 0 | 0 | — |
case-09 | pass→pass | 11,809 | 10,825 | -8% | 1 | 1 | 0% | 2,160 | 3,504 | +62% | 0 | 0 | — |
case-05 | pass→pass | 18,193 | 8,747 | -52% | 1 | 1 | 0% | 3,023 | 3,254 | +8% | 0 | 0 | — |
case-14 | pass→pass | 11,309 | 9,290 | -18% | 1 | 1 | 0% | 1,771 | 3,350 | +89% | 0 | 0 | — |
case-15 | fail→pass | 8,615 | 6,178 | -28% | 1 | 1 | 0% | 1,439 | 2,677 | +86% | 0 | 0 | — |
case-01 | fail→fail | 21,482 | 40,081 | +87% | 1 | 1 | 0% | 4,116 | 6,947 | +69% | 0 | 0 | — |
case-02 | fail→fail | 27,297 | 27,659 | +1% | 1 | 1 | 0% | 5,615 | 7,957 | +42% | 0 | 0 | — |
case-03 | fail→fail | 28,136 | 17,085 | -39% | 1 | 1 | 0% | 6,221 | 4,836 | -22% | 0 | 0 | — |
case-04 | pass→pass | 15,790 | 11,510 | -27% | 1 | 1 | 0% | 2,556 | 3,567 | +40% | 0 | 0 | — |
case-10 | pass→pass | 10,271 | 3,759 | -63% | 1 | 1 | 0% | 1,757 | 2,250 | +28% | 0 | 0 | — |
case-11 | pass→pass | 10,348 | 11,005 | +6% | 1 | 1 | 0% | 1,894 | 3,767 | +99% | 0 | 0 | — |
case-12 | pass→pass | 8,727 | 8,092 | -7% | 1 | 1 | 0% | 1,602 | 3,059 | +91% | 0 | 0 | — |
case-13 | fail→fail | 10,973 | 11,097 | +1% | 1 | 1 | 0% | 1,745 | 3,586 | +106% | 0 | 0 | — |
case-16 | fail→pass | 11,000 | 11,162 | +1% | 1 | 1 | 0% | 1,887 | 3,540 | +88% | 0 | 0 | — |
case-17 | pass→pass | 13,138 | 5,694 | -57% | 1 | 1 | 0% | 2,383 | 2,713 | +14% | 0 | 0 | — |
case-18 | pass→pass | 6,609 | 6,473 | -2% | 1 | 1 | 0% | 1,081 | 2,761 | +155% | 0 | 0 | — |
case-19 | fail→fail | 12,591 | 29,495 | +134% | 1 | 1 | 0% | 2,206 | 7,609 | +245% | 0 | 0 | — |
case-20 | pass→pass | 10,955 | 9,565 | -13% | 1 | 1 | 0% | 1,877 | 3,431 | +83% | 0 | 0 | — |
case-21 | pass→pass | 12,365 | 8,709 | -30% | 1 | 1 | 0% | 2,284 | 3,286 | +44% | 0 | 0 | — |
case-22 | fail→pass | 13,266 | 8,377 | -37% | 1 | 1 | 0% | 2,274 | 3,129 | +38% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +18 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/26/2026 | +23% |
Other measured skills in the registry, with their headline benchmark lift.