LongitudinalCtDnaTrendChecker

Longitudinal ctDNA Trend

Liquid Biopsy жидкостная биопсия cfDNA ctDNA CTC exosomes NGS qPCR
Open selection

Utility description: Longitudinal ctDNA Trend

Longitudinal ctDNA Trend Checker — Circulating Tumor DNA Dynamics Analysis

ℹ️  Utility performs statistical analysis of longitudinal ctDNA data according to ESMO, ASCO recommendations and TRACERx standards:

     MOLECULAR RESPONSE: Significant VAF decrease from baseline (FC ≤0.5), significant negative slope (p≤0.05), negative halving time, or current VAF below LOD.
     MOLECULAR PROGRESSION: Significant rise from nadir (FC ≥2.0), significant positive slope, positive doubling time, or new variant emergence.
     MRD POSITIVE: ctDNA detection above LOD in post-treatment surveillance. High recurrence risk.
     STABLE DISEASE: No significant fold change, non-significant slope, fluctuations within variability.
     INDETERMINATE: <3 timepoints, conflicting signals, or all points below LOQ.

⚠️  IMPORTANT:
     • VAF changes within LOQ are NOT significant — this is technical noise.
     • Rise from NADIR is more informative than rise from baseline (accounts for response depth).
     • Single timepoint ≠ trend. Minimum 3 points for statistical assessment.
     • New variants may appear BEFORE tracked variant growth — monitor entire profile.
     • Clinical decision must NEVER be based SOLELY on molecular trend without imaging and clinical correlation.

Usage:
  LongitudinalCtDnaTrendChecker.exe                            → demo mode (console output)
  LongitudinalCtDnaTrendChecker.exe input.csv output.json      → evaluate your data

📍 Scope: Therapy response monitoring, acquired resistance detection, post-treatment MRD surveillance, clinical trial molecular endpoints, tumor boards.

⚠️  CRITICAL:
• Min Timepoints ≥ 3 | Significant Fold Change ≥ 2.0
• Slope P-Value ≤ 0.05 | Rise From Nadir ≥ 2.0×
• Points Below LOQ reduce trend reliability
• New Variants always require attention
• Clinical Correlation mandatory — molecular trend ≠ clinical decision

Key features: Five-category molecular dynamics classification, integrated fold change/slope/doubling time analysis, context-dependent logic, automatic new variant detection, LOD/LOQ-aware interpretation, ESMO/ASCO/TRACERx compliance.

💡 Tips: Monitor every 4-8 weeks during active therapy; every 3-6 months for MRD. Use pre-treatment sample as baseline. Track ALL known variants, not just driver. Always present trend graphically alongside numerical classification.

⚠️ Note: Provides STATISTICAL CLASSIFICATION of molecular dynamics. Does NOT replace oncologist clinical judgment. Therapy decisions must integrate molecular trend + imaging + clinical status + toxicity + patient preferences.

input.csv

PatientID,VariantID,TherapyContext,NumTimepoints,BaselineVAF_Percent,CurrentVAF_Percent,NadirVAF_Percent,AssayLOD_Percent,AssayLOQ_Percent,Slope_VAF_per_Week,SlopePValue,FoldChange_FromBaseline,FoldChange_FromNadir,DoublingOrHalvingTime_Days,MinSignificantFoldChange,MaxSlopePValue,AllPointsAboveLOQ,CurrentBelowLOD,AnyNewVariantDetected,DaysSinceLastSample
PAT-2026-001,EGFR_L858R,Active_Treatment,5,12.5,0.8,0.6,0.01,0.05,-1.8,0.001,0.064,1.33,-14.5,2.0,0.05,false,false,false,21
PAT-2026-002,KRAS_G12D,Active_Treatment,4,5.0,8.2,0.3,0.01,0.05,1.2,0.008,1.64,27.3,18.0,2.0,0.05,true,false,true,28
PAT-2026-003,TP53_R175H,Post_Treatment_Surveillance,3,0.0,0.08,0.0,0.01,0.05,0.02,0.12,0,0,0,2.0,0.05,false,false,false,42
PAT-2026-004,PIK3CA_H1047R,Active_Treatment,3,0.12,0.09,0.07,0.01,0.05,-0.01,0.45,0.75,1.29,-60.0,2.0,0.05,false,false,false,30

URS & FS — User Requirements and Functional Specification

This document describes the controlled interface and behaviour of LongitudinalCtDnaTrendChecker for Longitudinal ctDNA Trend Checker.

Domain limits and critical parameters

Key fragments from the source description are shown below. Before production use, limits must be verified against the approved specification, registration dossier and local SOPs.
  • MOLECULAR RESPONSE: Significant VAF decrease from baseline (FC ≤0.5), significant negative slope (p≤0.05), negative halving time, or current VAF below LOD.
  • MOLECULAR PROGRESSION: Significant rise from nadir (FC ≥2.0), significant positive slope, positive doubling time, or new variant emergence.
  • INDETERMINATE: <3 timepoints, conflicting signals, or all points below LOQ.
  • • Clinical decision must NEVER be based SOLELY on molecular trend without imaging and clinical correlation.
  • ⚠️ CRITICAL:
  • • Min Timepoints ≥ 3 | Significant Fold Change ≥ 2.0
  • • Slope P-Value ≤ 0.05 | Rise From Nadir ≥ 2.0×
  • ⚠️ Note: Provides STATISTICAL CLASSIFICATION of molecular dynamics. Does NOT replace oncologist clinical judgment. Therapy decisions must integrate molecular trend + imaging + clinical status + toxicity + patient preferences.

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept an input.csv file for Longitudinal ctDNA Trend Checker with headers defined in the data contract.HighThe file is processed without manual header editing.
URS-002The utility shall perform deterministic QC evaluation without machine learning and without probabilistic conformance decisions.HighIdentical input data, rule version and configuration produce reproducible results.
URS-003The utility shall validate mandatory fields, data types, ranges, units and domain plausibility.HighSchema, conversion and range errors are explicitly reported.
URS-004The utility shall apply domain limits and rules from the description, approved specification, registration dossier and local SOPs.HighEach check has PASS/WARNING/FAIL and a clear message.
URS-005The utility shall generate output.json with machine-readable results, source values, warnings, failures and critical findings.HighJSON is suitable for LIMS/ELN/MES integration and QA/QC review.
URS-006The utility shall preserve traceability between batch/sample, input file, applied rules and final status.HighOutput contains identifiers, checked parameters and audit metadata.
URS-007The documentation shall support IQ/OQ/PQ, CSV/CSA and review by internal QA or inspectors.MediumURS, FS, input/output contract and test scenarios are supplied with the utility.
URS-008The utility shall be used as a QC decision-support tool and not as a substitute for approved specifications and QA/QP release decision.MediumDocumentation states change control and limit-verification expectations.

input.csv contract

#FieldTypeSamplePurpose
1PatientIDstring / controlled vocabularyPAT-2026-001Controlled input parameter for deterministic QC rules.
2VariantIDstring / controlled vocabularyEGFR_L858RControlled input parameter for deterministic QC rules.
3TherapyContextstring / controlled vocabularyActive_TreatmentControlled input parameter for deterministic QC rules.
4NumTimepointsdecimal5Time parameter for process, incubation, storage or analytical workflow.
5BaselineVAF_Percentdecimal12.5Controlled input parameter for deterministic QC rules.
6CurrentVAF_Percentdecimal0.8Controlled input parameter for deterministic QC rules.
7NadirVAF_Percentdecimal0.6Controlled input parameter for deterministic QC rules.
8AssayLOD_Percentdecimal0.01Controlled input parameter for deterministic QC rules.
9AssayLOQ_Percentdecimal0.05Controlled input parameter for deterministic QC rules.
10Slope_VAF_per_Weekdecimal-1.8Controlled input parameter for deterministic QC rules.
11SlopePValuedecimal0.001Controlled input parameter for deterministic QC rules.
12FoldChange_FromBaselinedecimal0.064Controlled input parameter for deterministic QC rules.
13FoldChange_FromNadirdecimal1.33Controlled input parameter for deterministic QC rules.
14DoublingOrHalvingTime_Daysinteger / decimal-14.5Time parameter for process, incubation, storage or analytical workflow.
15MinSignificantFoldChangedecimal2.0Controlled input parameter for deterministic QC rules.
16MaxSlopePValuedecimal0.05Controlled input parameter for deterministic QC rules.
17AllPointsAboveLOQstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
18CurrentBelowLODstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
19AnyNewVariantDetectedstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
20DaysSinceLastSampleinteger / decimal21Sample or laboratory specimen identifier.
PatientID,VariantID,TherapyContext,NumTimepoints,BaselineVAF_Percent,CurrentVAF_Percent,NadirVAF_Percent,AssayLOD_Percent,AssayLOQ_Percent,Slope_VAF_per_Week,SlopePValue,FoldChange_FromBaseline,FoldChange_FromNadir,DoublingOrHalvingTime_Days,MinSignificantFoldChange,MaxSlopePValue,AllPointsAboveLOQ,CurrentBelowLOD,AnyNewVariantDetected,DaysSinceLastSample
PAT-2026-001,EGFR_L858R,Active_Treatment,5,12.5,0.8,0.6,0.01,0.05,-1.8,0.001,0.064,1.33,-14.5,2.0,0.05,false,false,false,21
PAT-2026-002,KRAS_G12D,Active_Treatment,4,5.0,8.2,0.3,0.01,0.05,1.2,0.008,1.64,27.3,18.0,2.0,0.05,true,false,true,28
PAT-2026-003,TP53_R175H,Post_Treatment_Surveillance,3,0.0,0.08,0.0,0.01,0.05,0.02,0.12,0,0,0,2.0,0.05,false,false,false,42

Input validation rules

IDFieldRuleCriticality
VR-001PatientIDThe field shall match an approved dictionary or accepted string representation.High
VR-002VariantIDThe field shall match an approved dictionary or accepted string representation.High
VR-003TherapyContextThe field shall match an approved dictionary or accepted string representation.High
VR-004NumTimepointsThe field shall match an approved dictionary or accepted string representation.Medium
VR-005BaselineVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-006CurrentVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-007NadirVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-008AssayLOD_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-009AssayLOQ_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-010Slope_VAF_per_WeekThe field shall match an approved dictionary or accepted string representation.Medium
VR-011SlopePValueThe field shall match an approved dictionary or accepted string representation.Medium
VR-012FoldChange_FromBaselineThe field shall match an approved dictionary or accepted string representation.Medium
VR-013FoldChange_FromNadirThe field shall match an approved dictionary or accepted string representation.Medium
VR-014DoublingOrHalvingTime_DaysThe field shall match an approved dictionary or accepted string representation.Medium
VR-015MinSignificantFoldChangeThe field shall match an approved dictionary or accepted string representation.Medium
VR-016MaxSlopePValueThe field shall match an approved dictionary or accepted string representation.Medium
VR-017AllPointsAboveLOQThe field shall match an approved dictionary or accepted string representation.Medium
VR-018CurrentBelowLODThe field shall match an approved dictionary or accepted string representation.Medium
VR-019AnyNewVariantDetectedThe field shall match an approved dictionary or accepted string representation.Medium
VR-020DaysSinceLastSampleThe field shall match an approved dictionary or accepted string representation.Medium

FS — Functional Specification

IDFunctionImplementation
FS-001CLI executionSupport execution modes: demo mode without arguments and production mode input.csv output.json.
FS-002CSV importRead input.csv in UTF-8/CSV-compatible format and validate header and expected columns.
FS-003Schema validationCheck mandatory fields, column count, unknown key fields and empty mandatory values.
FS-004Type conversionConvert numeric, flag and text values; invalid format is recorded as a row-level error.
FS-005Domain rule engineApply rules for Longitudinal ctDNA Trend Checker, including critical limits from the description and approved specification.
FS-006Status aggregationProduce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.
FS-007JSON exportWrite output.json with detailed checks, source values, warnings, failures and critical findings.
FS-008Audit supportKeep result structure suitable for review, deviation investigation and calculation reproduction.
FS-009Integration contractSupport the scenario LIMS/ELN/MES → input.csv → utility → output.json → portal/admin review.
FS-010Error handlingReturn explicit messages for missing file, empty CSV, invalid schema, output write failure and invalid format.

Example output.json

{
  "utilityId": "longitudinalctdnatrendchecker",
  "utilityFolder": "LongitudinalCtDnaTrendChecker",
  "package": "LiquidBiopsy",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "processedAtUtc": "2026-06-10T00:00:00Z",
  "checks": [
    {
      "parameter": "PatientID",
      "value": "PAT-2026-001",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-001"
    },
    {
      "parameter": "VariantID",
      "value": "EGFR_L858R",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-002"
    },
    {
      "parameter": "TherapyContext",
      "value": "Active_Treatment",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-003"
    },
    {
      "parameter": "NumTimepoints",
      "value": "5",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-004"
    },
    {
      "parameter": "BaselineVAF_Percent",
      "value": "12.5",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-005"
    },
    {
      "parameter": "CurrentVAF_Percent",
      "value": "0.8",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-006"
    },
    {
      "parameter": "NadirVAF_Percent",
      "value": "0.6",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-007"
    },
    {
      "parameter": "AssayLOD_Percent",
      "value": "0.01",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-008"
    },
    {
      "parameter": "AssayLOQ_Percent",
      "value": "0.05",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-009"
    },
    {
      "parameter": "Slope_VAF_per_Week",
      "value": "-1.8",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-010"
    },
    {
      "parameter": "SlopePValue",
      "value": "0.001",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-011"
    },
    {
      "parameter": "FoldChange_FromBaseline",
      "value": "0.064",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-012"
    }
  ],
  "criticalFindings": [],
  "warnings": [],
  "audit": {
    "inputHash": "sha256:<calculated at runtime>",
    "rulesVersion": "<utility executable version>",
    "documentation": "LongitudinalCtDnaTrendChecker.documentation.html"
  }
}

Traceability matrix

URSFSTestEvidence
URS-001FS-001, FS-002OQ-001Verify execution and import of valid input.csv.
URS-002FS-005, FS-006OQ-004Repeat the same dataset and compare output.json.
URS-003FS-003, FS-004, FS-010OQ-002, OQ-003Verify missing columns and invalid types.
URS-004FS-005, FS-006OQ-004, PQ-001Verify critical deviations on real/boundary data.
URS-005FS-007, FS-009OQ-005Verify JSON schema and downstream-system suitability.
URS-006FS-008OQ-006Verify identifiers and audit metadata.
URS-007FS-008, FS-010IQ-001, OQ-007Verify documentation completeness and control evidence.
URS-008FS-005, FS-008PQ-002Verify review workflow and no replacement of QA decision.

IQ/OQ/PQ test scenarios

IDScenarioExpected result
IQ-001Verify executable, input.csv, documentation and checksum availability.Delivery set is complete; version is recorded.
OQ-001Valid sample row from input.csv.PASS or acceptable WARNING according to rules.
OQ-002Remove a mandatory CSV column.Schema error or FAIL with missing-column reference.
OQ-003Place a non-numeric value into a numeric field.Type-conversion error with row/field reference.
OQ-004Set a critical parameter outside the limit.FAIL and critical finding.
OQ-005Verify output.json structure.All mandatory sections are present and JSON is valid.
OQ-006Verify batch/sample traceability.Input and result identifiers match.
PQ-001Verify 3–5 real user batches/samples.Result is confirmed by QC/QA review.
PQ-002Verify deviation workflow and manual QA decision.Utility supports review but does not replace approved decision.

QA/QC and change control

  • Do not rename columns without updating validator, documentation and test set.
  • Retain input.csv, output.json, executable version and checksum.
  • Before production use, perform IQ/OQ/PQ or equivalent CSV/CSA verification.
  • Critical limits shall be verified against the approved specification, registration dossier and local SOPs.
  • The utility provides structured QC decision support; final release decision remains with QA/QP and approved procedures.

Included in packages

Liquid Biopsy QC Suite

QC and pre-analytical control package for liquid biopsy workflows: cfDNA/ctDNA, CTC, EV/exosomes, methylation, NGS/qPCR/ddPCR, sample quality, contamination, sensitivity and reporting checks.

Open