Q (sonnet): What treatment did most patients receive in the MSK-CHORD Study? ▶ read_guide { "uri": "cbioportal://treatment-guide" } ▶ list_studies { "search": "MSK-CHORD" } ◀ result # Treatment Data Query Guide ## Overview Treatment data in cBioPortal is stored in **clinical event tables**, separate from clinical attributes. This allows for timeline-based treatment records with start/stop dates. ## Start Here: Treatment Views For "most common treatments / agents / regimens in study X", use the parameterized views (documented in `cbioportal://clinical-data-guide`, Study-View Chart Counts): ```sql -- Patients per agent (the portal's Treatment chart), with type/subtype arrays SELECT * FROM treatment_counts_in_study(study='msk_chord_2024') ORDER BY patients DESC LIMIT 20; -- Same-day agent combinations (investigational, prior-medication and radiation events excluded) SELECT * FROM treatment_regimens_in_study(study='msk_chord_2024') ORDER BY patients DESC LIMIT 20; ``` Write raw event queries (below) only for subgroups, timelines or keys the views do not expose. ## Key Tables | Table | Description | |-------|-------------| | `clinical_event` | Event records with patient_id, event_type, start_date, stop_date | | `clinical_event_data` | Key-value pairs linked to each clinical_event_id | ## Schema ``` clinical_event ├── clinical_event_id (PK) ├── patient_id (FK → patient.internal_id) ├── event_type (Treatment, TREATMENT, Diagnosis, SURGERY, etc.) ├── start_date (days from diagnosis) └── stop_date (days from diagnosis) clinical_event_data ├── clinical_event_id (FK) ├── key (AGENT, SUBTYPE, etc.) └── value ``` ## Event Types Not all studies have all event types. Common ones include: | Event Type | Description | |------------|-------------| | `Treatment` / `TREATMENT` | Drug/therapy administration | | `SURGERY` | Surgical procedures | | `Diagnosis` | Diagnosis events | | `LAB_TEST` | Laboratory results | | `Sequencing` | Sequencing events | | `Sample acquisition` | Sample collection | | `PATHOLOGY` / `Pathology` | Pathology reports | ## Basic Treatment Queries ### List Available Event Types in a Study ```sql SELECT DISTINCT ce.event_type, COUNT(*) as event_count FROM clinical_event ce JOIN patient p ON ce.patient_id = p.internal_id JOIN cancer_study cs ON p.cancer_study_id = cs.cancer_study_id WHERE cs.cancer_study_identifier = 'your_study_id' GROUP BY ce.event_type ORDER BY event_count DESC; ``` ### List Treatment Data Keys in a Study ```sql SELECT DISTINCT ced.key, COUNT(*) as cnt FROM clinical_event ce JOIN clinical_event_data ced ON ce.clinical_event_id = ced.clinical_event_id JOIN patient p ON ce.patient_id = p.internal_id JOIN cancer_study cs ON p.cancer_study_id = cs.cancer_study_id WHERE cs.cancer_study_identifier = 'your_study_id' AND ce.event_type IN ('Treatment', 'TREATMENT') GROUP BY ced.key ORDER BY cnt DESC; ``` ### Get Most Common Treatment Agents ```sql SELECT ced.value as agent, COUNT(DISTINCT ce.patient_id) as patient_count FROM clinical_event ce JOIN clinical_event_data ced ON ce.clinical_event_id = ced.clinical_event_id JOIN patient p ON ce.patient_id = p.internal_id JOIN cancer_stud … (6220 more chars) ◀ result {"result":[{"cancer_study_identifier":"msk_chord_2024","name":"MSK-CHORD (MSK, Nature 2024)","type_of_cancer_id":"mixed","sample_count":25040,"has_guide":true,"url":"https://www.cbioportal.org/study/summary?id=msk_chord_2024"}]} ▶ get_study_guide { "study_id": "msk_chord_2024" } ▶ clickhouse_run_select_query { "query": "SELECT * FROM treatment_counts_in_study(study='msk_chord_2024') ORDER BY patients DESC LIMIT 20" } ◀ result # MSK-CHORD (MSK, Nature 2024) **Study ID:** `msk_chord_2024` ## Overview Targeted sequencing via MSK-IMPACT panels. Clinical annotations include some derived from natural language processing (denoted NLP). **Exactly five cancer types** (`CANCER_TYPE`, patients): Non-Small Cell Lung Cancer 7,809, Colorectal Cancer 5,543, Breast Cancer 5,368, Prostate Cancer 3,211, Pancreatic Cancer 3,109. There is **no melanoma** or any other cancer type; say so up front if asked, instead of substituting another type. **No therapy-response variable.** There is no RECIST, objective response, or best-response attribute or event. For treatment-outcome questions (e.g. immunotherapy response), say this first; the only proxies are `OS_MONTHS`/`OS_STATUS`, or NLP radiology progression events (`Diagnosis` events with `SUBTYPE = 'Progression'`, key `PROGRESSION` = Y/N/Indeterminate), in patients with `Treatment` events of the relevant `SUBTYPE` (e.g. `Immuno`: 3,341 patients). Hand off the comparison to cBioPortal group comparison / survival. **Nearly one sample per patient: 24,950 patients / 25,040 samples.** Only 90 patients have more than one sample, and all 90 have samples from two different cancer types (second primaries); only 26 have both a `Primary` and a `Metastasis` sample. There is no meaningful same-patient (paired) primary-vs-metastasis cohort. For "same patient" / paired questions, say this up front, then offer the **unpaired** comparison of all `Primary` vs `Metastasis` samples (`SAMPLE_TYPE`), labelled as unpaired. ```sql SELECT countIf(n > 1) AS multi_sample_patients, -- 90 countIf(has_p AND has_m) AS primary_and_met -- 26 FROM (SELECT patient_unique_id, count() AS n, has(groupArray(attribute_value), 'Primary') AS has_p, has(groupArray(attribute_value), 'Metastasis') AS has_m FROM clinical_data_derived WHERE cancer_study_identifier = 'msk_chord_2024' AND attribute_name = 'SAMPLE_TYPE' GROUP BY patient_unique_id); ``` ## Gene Panels This study uses multiple MSK-IMPACT panel versions: - **IMPACT341**: Earlier version, 341 genes - **IMPACT410**: 410 genes - **IMPACT468**: 468 genes - **IMPACT505**: Latest version, 505 genes **Important:** Different samples may have different gene coverage. Always use gene-specific denominators when calculating mutation frequencies. ## Clinical Attributes - Semantic Guide ### Cancer Classification | Attribute | Description | Values | |-----------|-------------|--------| | `CANCER_TYPE` | Broad cancer category | e.g., "Non-Small Cell Lung Cancer", "Breast Cancer" | | `CANCER_TYPE_DETAILED` | Specific subtype | e.g., "Lung Adenocarcinoma", "Invasive Ductal Carcinoma" | | `ONCOTREE_CODE` | OncoTree classification code | Standardized cancer type codes | ### Sample Information | Attribute | Description | Values | |-----------|-------------|--------| | `SAMPLE_TYPE` | Sample origin | Primary, Metastasis, Local Recurrence, Unknown | | `SAMPLE_CLASS` | Sample … (5439 more chars) ◀ result {"rows":[{"agent":"FLUOROURACIL","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":6319,"treated_patients":21473,"pct_of_treated_patients":29.4},{"agent":"LEUCOVORIN","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":5573,"treated_patients":21473,"pct_of_treated_patients":26},{"agent":"OXALIPLATIN","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":5489,"treated_patients":21473,"pct_of_treated_patients":25.6},{"agent":"CAPECITABINE","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":4808,"treated_patients":21473,"pct_of_treated_patients":22.4},{"agent":"CARBOPLATIN","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":4604,"treated_patients":21473,"pct_of_treated_patients":21.4},{"agent":"IRINOTECAN","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":4329,"treated_patients":21473,"pct_of_treated_patients":20.2},{"agent":"INVESTIGATIONAL","treatment_types":[],"treatment_subtypes":["Investigational"],"patients":4114,"treated_patients":21473,"pct_of_treated_patients":19.2},{"agent":"GEMCITABINE","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":4038,"treated_patients":21473,"pct_of_treated_patients":18.8},{"agent":"LEUPROLIDE","treatment_types":[],"treatment_subtypes":["Hormone"],"patients":3708,"treated_patients":21473,"pct_of_treated_patients":17.3},{"agent":"PACLITAXEL","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":3679,"treated_patients":21473,"pct_of_treated_patients":17.1},{"agent":"PEMETREXED","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":3357,"treated_patients":21473,"pct_of_treated_patients":15.6},{"agent":"BEVACIZUMAB","treatment_types":[],"treatment_subtypes":["Biologic"],"patients":2629,"treated_patients":21473,"pct_of_treated_patients":12.2},{"agent":"CYCLOPHOSPHAMIDE","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":2494,"treated_patients":21473,"pct_of_treated_patients":11.6},{"agent":"PACLITAXEL PROTEIN-BOUND","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":2357,"treated_patients":21473,"pct_of_treated_patients":11},{"agent":"LETROZOLE","treatment_types":[],"treatment_subtypes":["Hormone"],"patients":2260,"treated_patients":21473,"pct_of_treated_patients":10.5},{"agent":"DOXORUBICIN","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":2107,"treated_patients":21473,"pct_of_treated_patients":9.8},{"agent":"ZOLEDRONIC ACID","treatment_types":[],"treatment_subtypes":["Bone Treatment"],"patients":2101,"treated_patients":21473,"pct_of_treated_patients":9.8},{"agent":"PEMBROLIZUMAB","treatment_types":[],"treatment_subtypes":["Immuno"],"patients":2061,"treated_patients":21473,"pct_of_treated_patients":9.6},{"agent":"DOCETAXEL","treatment_types":[],"treatment_subtypes":["Chemo"],"patients":1917,"treated_patients":21473,"pct_of_treated_patients":8.9},{"agent":"ANASTROZOLE","treatment_types":[],"treatment_subtypes":["Hormone"],"patients":1676,"treated_patients":21473,"pct_of_treated_patie … (11 more chars) ═ answer (success) In the [MSK-CHORD study](https://www.cbioportal.org/study/summary?id=msk_chord_2024) (MSK, *Nature* 2024; 24,950 patients / 25,040 samples across NSCLC, colorectal, breast, prostate, and pancreatic cancer), the single most common treatment agent was: **Fluorouracil (5-FU)** — **6,319 patients** received it, out of 21,473 patients with any recorded treatment (~29.4% of treated patients). This is largely driven by its use as a backbone chemotherapy in colorectal cancer regimens (e.g., FOLFOX/FOLFIRI), which is reflected in the next several agents on the list (Leucovorin 5,573; Oxaliplatin 5,489; Capecitabine 4,808 — all classified as Chemo). Top 5 agents overall: | Agent | Subtype | Patients | |---|---|---| | Fluorouracil | Chemo | 6,319 | | Leucovorin | Chemo | 5,573 | | Oxaliplatin | Chemo | 5,489 | | Capecitabine | Chemo | 4,808 | | Carboplatin | Chemo | 4,604 | **Caveats:** Percentages use *treated* patients (21,473) as the denominator, not the full cohort — treatment data in cBioPortal cannot distinguish "not collected" from "not received," so we cannot state what fraction of *all* 24,950 patients received a given agent. Some records are NLP-extracted from clinical notes and may contain extraction errors. You can explore the full treatment breakdown (by agent or by category — Chemo, Immuno, Targeted, Hormone, etc.) directly in the cohort view: [View MSK-CHORD Study — Treatment Charts](https://www.cbioportal.org/study/summary?id=msk_chord_2024)