Agent skill

tumor-clonal-evolution-agent

Stars 2,009
Forks 275

Install this agent skill to your Project

npx add-skill https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/tumor-clonal-evolution-agent

SKILL.md


name: 'tumor-clonal-evolution-agent' description: 'AI-powered analysis of tumor clonal architecture, subclonal dynamics, and evolutionary trajectories from multi-region sequencing and longitudinal liquid biopsy data.' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:

  • read_file
  • run_shell_command

Tumor Clonal Evolution Agent

The Tumor Clonal Evolution Agent analyzes intratumoral heterogeneity (ITH), reconstructs tumor phylogenies, and tracks clonal dynamics over time. It integrates multi-region sequencing data, longitudinal liquid biopsies, and mathematical modeling to predict treatment response and resistance emergence.

When to Use This Skill

  • When analyzing multi-region tumor sequencing to map spatial heterogeneity.
  • To reconstruct tumor phylogenetic trees and identify ancestral mutations.
  • For tracking clonal evolution through serial liquid biopsy samples.
  • To predict time to treatment failure using evolutionary modeling.
  • When identifying resistance-conferring subclones before clinical progression.

Core Capabilities

  1. Clonal Deconvolution: Identifies tumor subpopulations and estimates their cellular fractions using variant allele frequencies (VAF) from bulk sequencing.

  2. Phylogenetic Reconstruction: Builds tumor evolutionary trees showing relationships between subclones and their mutational acquisition order.

  3. Longitudinal Tracking: Monitors subclone dynamics over time using ctDNA variant frequencies from serial blood draws.

  4. Resistance Prediction: Applies Bayesian evolutionary frameworks to forecast emergence of resistant clones and time to progression.

  5. Spatial ITH Mapping: Integrates multi-region data to visualize spatial distribution of subclones across tumor sites.

  6. Fitness Estimation: Calculates subclone fitness parameters to identify aggressive populations driving tumor progression.

Workflow

  1. Input: Multi-region or longitudinal mutation data (VCF/MAF), tumor purity estimates, copy number profiles.

  2. Clustering: Cluster mutations into subclones using PyClone, SciClone, or MOBSTER.

  3. Phylogeny: Reconstruct evolutionary trees using CITUP, PhyloWGS, or CALDER.

  4. Modeling: Apply mathematical models (Lotka-Volterra, birth-death) to estimate dynamics.

  5. Prediction: Forecast treatment response and resistance timeline.

  6. Output: Phylogenetic trees, subclone trajectories, resistance predictions, actionable insights.

Example Usage

User: "Analyze the clonal evolution from these 6 longitudinal ctDNA samples and predict time to progression."

Agent Action:

bash
python3 Skills/Oncology/Tumor_Clonal_Evolution_Agent/clonal_evolution.py \
    --input longitudinal_ctdna_variants.maf \
    --timepoints 0,4,8,12,16,20 \
    --tumor_burden cea_values.csv \
    --method bayesian_evolution \
    --predict_ttp true \
    --output evolution_analysis/

Key Methods and Algorithms

Tool/Method Application Reference
PyClone-VI Bayesian clustering of mutations Nature Methods 2014
MOBSTER Subclonal deconvolution with selection Nature Genetics 2020
PhyloWGS Phylogenetic tree reconstruction Genome Biology 2015
CALDER Copy-number aware phylogeny Nature Methods 2019
CHESS Cancer heterogeneity from single samples Cell Systems 2019

Mathematical Framework

The agent applies evolutionary dynamics models:

Lotka-Volterra Competition:

dNi/dt = ri * Ni * (1 - sum(aij * Nj) / Ki)

Where:

  • Ni = population of subclone i
  • ri = growth rate (fitness)
  • aij = competition coefficient
  • Ki = carrying capacity

VAF Dynamics Modeling:

  • Serial ctDNA VAF measurements enable real-time fitness estimation
  • Bayesian inference updates subclone parameters with each sample
  • Monte Carlo simulations generate prediction intervals

Prerequisites

  • Python 3.10+
  • PyClone-VI, PhyloWGS, or MOBSTER
  • Copy number calling tools (ASCAT, Sequenza)
  • Statistical modeling (PyMC, Stan)

Related Skills

  • ctDNA_Analysis - For cfDNA variant calling
  • Liquid_Biopsy_Analysis - For blood-based biomarker detection
  • Variant_Interpretation - For mutation annotation

Clinical Applications

  1. Treatment Selection: Identify dominant subclones to target
  2. Resistance Monitoring: Detect emerging resistant populations early
  3. Prognosis: Predict time to treatment failure
  4. Combination Therapy: Design strategies targeting multiple subclones

Author

AI Group - Biomedical AI Platform

Expand your agent's capabilities with these related and highly-rated skills.

FreedomIntelligence/OpenClaw-Medical-Skills

vcf-annotator

Annotate VCF variants with VEP, ClinVar, gnomAD frequencies, and ancestry-aware context. Generates prioritised variant reports.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

chemist-analyst

Analyzes events through chemistry lens using molecular structure, reaction mechanisms, thermodynamics, kinetics, and analytical techniques (spectroscopy, chromatography, mass spectrometry). Provides insights on chemical processes, material properties, reaction pathways, synthesis, and analytical methods. Use when: Chemical reactions, material analysis, synthesis planning, process optimization, environmental chemistry. Evaluates: Molecular structure, reaction mechanisms, yield, selectivity, safety, environmental impact.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

bio-alignment-io

Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, and other alignment formats for phylogenetics and conservation analysis. Use when reading, writing, or converting alignment file formats.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

sleep-analyzer

分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

metabolomics-workbench-database

Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

bio-hi-c-analysis-matrix-operations

Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.

2,009 275
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results