OpenClaw-Medical-Skills ctdna-dynamics-mrd-agent

<!--

install
source · Clone the upstream repo
git clone https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ctdna-dynamics-mrd-agent" ~/.claude/skills/freedomintelligence-openclaw-medical-skills-ctdna-dynamics-mrd-agent && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/ctdna-dynamics-mrd-agent" ~/.openclaw/skills/freedomintelligence-openclaw-medical-skills-ctdna-dynamics-mrd-agent && rm -rf "$T"
manifest: skills/ctdna-dynamics-mrd-agent/SKILL.md
source content
<!-- # COPYRIGHT NOTICE # This file is part of the "Universal Biomedical Skills" project. # Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu> # All Rights Reserved. # # This code is proprietary and confidential. # Unauthorized copying of this file, via any medium is strictly prohibited. # # Provenance: Authenticated by MD BABU MIA -->

name: 'ctdna-dynamics-mrd-agent' description: 'AI-powered circulating tumor DNA dynamics analysis for molecular residual disease detection, treatment response monitoring, and early relapse prediction using liquid biopsy.' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:

  • read_file
  • run_shell_command

ctDNA Dynamics MRD Agent

The ctDNA Dynamics MRD Agent provides comprehensive analysis of circulating tumor DNA dynamics for molecular residual disease (MRD) detection, treatment response monitoring, and early relapse prediction. It integrates tumor-informed and tumor-naive approaches with temporal modeling for longitudinal ctDNA analysis.

When to Use This Skill

  • When monitoring minimal/molecular residual disease post-treatment.
  • For tracking treatment response through ctDNA kinetics.
  • To predict relapse before clinical/radiological detection.
  • When assessing tumor burden dynamics during therapy.
  • For early detection of acquired resistance mutations.

Core Capabilities

  1. MRD Detection: Ultra-sensitive detection of residual disease (LOD 0.001% VAF).

  2. Kinetic Modeling: Model ctDNA clearance and doubling time.

  3. Response Prediction: Predict treatment response from early ctDNA dynamics.

  4. Relapse Prediction: Identify molecular relapse months before imaging.

  5. Resistance Monitoring: Track emergence of resistance mutations.

  6. Multi-Timepoint Integration: Analyze longitudinal ctDNA trajectories.

Detection Approaches

ApproachMethodLODBest Use Case
Tumor-InformedTrack known mutations0.001%Post-surgical MRD
Tumor-NaivePanel-based detection0.1%Screening, unknown primary
WGS-BasedFragmentomics + mutations0.01%Comprehensive profiling
MethylationcfDNA methylation0.1%Tissue of origin, early detection

Kinetic Parameters

ParameterDefinitionClinical Meaning
ctDNA Half-LifeTime to 50% reductionTreatment sensitivity
Doubling TimeTime to 2x increaseTumor growth rate
NadirLowest ctDNA levelDepth of response
Time to NadirDays to reach nadirResponse kinetics
Clearance RateExponential decay constantTreatment efficacy
Lead TimeMRD+ to clinical relapseEarly detection window

Workflow

  1. Input: Serial ctDNA measurements (VAF or copies/mL), timepoints, treatment dates.

  2. QC: Assess sequencing quality, coverage, tumor fraction.

  3. Mutation Tracking: Quantify tracked variants across timepoints.

  4. Kinetic Modeling: Fit exponential/sigmoidal models to dynamics.

  5. MRD Calling: Determine MRD status with confidence intervals.

  6. Resistance Detection: Identify emerging resistant clones.

  7. Output: MRD status, kinetic parameters, predictions, visualizations.

Example Usage

User: "Analyze this patient's serial ctDNA data to assess MRD status and predict relapse risk."

Agent Action:

python3 Skills/Oncology/ctDNA_Dynamics_MRD_Agent/ctdna_mrd_analysis.py \
    --ctdna_data serial_ctdna.tsv \
    --tracked_mutations tumor_mutations.vcf \
    --sample_times 0,14,42,90,180 \
    --treatment_start 0 \
    --surgery_date 7 \
    --cancer_type colorectal \
    --output mrd_analysis/

Input Data Format

Sample_ID  Timepoint_Days  Mutation  VAF  Copies_per_mL  Coverage
PT001_T0   0               TP53_R248Q  5.2  1500          15000
PT001_T1   14              TP53_R248Q  2.1  620           18000
PT001_T2   42              TP53_R248Q  0.05 15            20000
PT001_T3   90              TP53_R248Q  0.002 0.6          22000

Output Components

OutputDescriptionFormat
MRD StatusPositive/Negative at each timepoint.csv
Kinetic ParametersHalf-life, doubling time, nadir.json
Response ClassificationMajor/Minor/No response.csv
Relapse RiskProbability and predicted time.json
Dynamics PlotctDNA trajectory visualization.png, .pdf
Resistance VariantsEmerging mutations.vcf
Clonal EvolutionClone frequency over time.csv

Response Definitions

Response CategoryctDNA ChangeClinical Correlation
Major Molecular Response>2 log reductionExcellent prognosis
Molecular Response1-2 log reductionGood prognosis
Stable Molecular Disease<1 log changeIntermediate
Molecular Progression>0.5 log increasePoor prognosis

Cancer-Specific Parameters

Cancer TypeTypical Half-LifeMRD Lead TimectDNA Shedding
Colorectal1-2 days6-12 monthsHigh
Lung (NSCLC)1-3 days3-6 monthsHigh
Breast2-5 days6-18 monthsModerate
Pancreatic1-2 days3-6 monthsHigh
Melanoma2-4 days3-9 monthsVariable

AI/ML Components

Kinetic Modeling:

  • Non-linear mixed effects models
  • Bayesian hierarchical models
  • Gaussian process regression

MRD Detection:

  • Error-suppressed variant calling
  • Machine learning noise filtering
  • Duplex UMI deduplication

Relapse Prediction:

  • Time-series forecasting (LSTM, Transformers)
  • Survival analysis (Cox, Random Survival Forests)
  • Multi-mutation integration

Clinical Trial Support

ApplicationEndpointctDNA Metric
NeoadjuvantpathCR surrogatePre-surgery clearance
AdjuvantDFS surrogatePost-surgery MRD
MetastaticPFS/OS surrogatectDNA dynamics
MaintenanceDuration decisionMRD negativity

Prerequisites

  • Python 3.10+
  • Variant callers (Mutect2, Strelka)
  • UMI-aware pipelines
  • scipy, lifelines, survival analysis tools
  • PyTorch for deep learning models

Related Skills

  • MRD_EDGE_Detection_Agent - Ultra-sensitive MRD detection
  • Liquid_Biopsy_Analytics_Agent - Comprehensive liquid biopsy
  • Tumor_Heterogeneity_Agent - Clonal evolution tracking
  • HRD_Analysis_Agent - Genomic biomarkers

Special Considerations

  1. Tumor Fraction: Low tumor fraction limits sensitivity
  2. Pre-Analytical: Plasma processing affects cfDNA quality
  3. Clonal Hematopoiesis: CHIP variants can confound results
  4. Panel Design: Ensure sufficient mutation coverage
  5. Timing: Sample timing relative to treatment critical

FDA-Cleared ctDNA Tests

TestCancer TypesApplication
Guardant360 CDxPan-cancerTreatment selection
FoundationOne Liquid CDxPan-cancerTreatment selection
SignateraSolid tumorsMRD monitoring
Guardant RevealCRCMRD detection

Author

AI Group - Biomedical AI Platform

<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->