Q (sonnet): In colorectal cancer do patients with microsatellite instability in the TCGA dataset have a similar prognosis as those in the MSK Gastroenterology 2020 study? ▶ list_guides {} ▶ search_oncotree { "search_term": "colorectal" } ◀ result {"result":[{"uri":"cbioportal://mutation-frequency-guide","description":"Comprehensive guide for calculating gene mutation frequencies with gene-specific profiling denominators"},{"uri":"cbioportal://clinical-data-guide","description":"Guide for querying clinical data including patient vs sample level considerations"},{"uri":"cbioportal://sample-filtering-guide","description":"Guide for filtering samples and studies in cBioPortal queries"},{"uri":"cbioportal://common-pitfalls","description":"Guide to avoid common mistakes when querying cBioPortal data. If you already know which numbered pitfall applies, fetch just that section via read_guide(\"cbioportal://common-pitfalls#\") (e.g. #16) instead of the full guide"},{"uri":"cbioportal://treatment-guide","description":"Guide for querying treatment/clinical event data including drug agents, timelines, and linking to genomic data"},{"uri":"cbioportal://faq-guide","description":"General cBioPortal FAQ: history, how to cite, data types, reference genome, abbreviations, GISTIC thresholds, API access"},{"uri":"cbioportal://statistical-tests-guide","description":"Statistical test selection guide — decision matrix for choosing Fisher's exact, Wilcoxon, chi-squared, t-test, ANOVA, etc. based on data type and group count"},{"uri":"cbioportal://gene-expression-guide","description":"Gene expression / copy-number / methylation analysis. Covers genetic_alteration_derived, profile_type discovery, and the gene_pair_coexpression view for Spearman correlation between two genes"},{"uri":"cbioportal://external-resources-guide","description":"Guide for finding external linked resources such as imaging, pathology, Minerva, HTAN, or other resource_* table links before declaring data unavailable"},{"uri":"cbioportal://gene-resolution-guide","description":"Guide for resolving ambiguous gene symbols, aliases, gene families, and shorthand such as CD3 before querying expression or alteration data"},{"uri":"cbioportal://study-resolution-guide","description":"Guide for resolving requested studies, avoiding silent substitute cohorts, and redirecting to known external cBioPortal instances when data is not in this deployment"},{"uri":"cbioportal://germline-guide","description":"Guide for querying germline variant data — storage columns, study discovery, query patterns, and somatic vs germline considerations"},{"uri":"cbioportal://study-guide/{study_id}","description":"Dynamic study-specific guide - use get_study_guide(study_id) tool to generate"}]} ◀ result {"result":[{"code":"COADREAD","name":"Colorectal Adenocarcinoma","score":60,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD"},{"code":"CAIS","name":"Colon Adenocarcinoma In Situ","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD > CAIS"},{"code":"CMC","name":"Medullary Carcinoma of the Colon","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > CMC"},{"code":"COAD","name":"Colon Adenocarcinoma","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD > COAD"},{"code":"MACR","name":"Mucinous Adenocarcinoma of the Colon and Rectum","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD > MACR"},{"code":"READ","name":"Rectal Adenocarcinoma","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD > READ"},{"code":"SRCCR","name":"Signet Ring Cell Adenocarcinoma of the Colon and Rectum","score":45,"mainType":"Colorectal Cancer","tissue":"Bowel","hierarchy":"BOWEL > COADREAD > SRCCR"}]} ▶ read_guide { "uri": "cbioportal://statistical-tests-guide" } ◀ result Statistical Test Selection Guide ================================ Purpose ------- This guide ensures the correct statistical test is selected before performing any group comparison, matching cBioPortal's own Group Comparison defaults. HARD RULES — NEVER FABRICATE A STATISTIC ---------------------------------------- ClickHouse cannot run statistical tests. The agent therefore must NEVER produce a derived statistic that is not a literal column value from a SQL result. Specifically: 1. **Never invent a p-value.** Not "p < 0.001", not "p ≈ 0.05", not any p-value. If the user asks "what is the p-value?", the answer is *"I can't compute that — here is the 2x2 contingency table (or group statistics). Run it in cBioPortal's Group Comparison tab, in R with `fisher.test(...)` / `wilcox.test(...)`, or in Python with `scipy.stats.fisher_exact(...)` / `mannwhitneyu(...)`."* 2. **Never claim mutual exclusivity (or co-occurrence) from a contingency table alone.** A 2x2 table is not a test. The shape "altered/not altered × group A/group B" needs Fisher's exact + a defined direction (odds ratio < 1 with significant p). Without that test, the agent presents the table and stops. Descriptive phrasing is also a claim: "largely/mostly mutually exclusive", "rarely co-occur", "tend to co-occur" are forbidden without the test — point to cBioPortal's Mutual Exclusivity tab instead. 3. **Never report a "median" that came from `AVG(...)` or any non-median aggregate.** "Median" and "mean" are different statistics; for skewed clinical distributions (especially survival) they differ substantially. Use ClickHouse's `quantile(0.5)(...)` for actual median, and label arithmetic averages as "mean", never "median". 4. **Never report a hazard ratio, odds ratio, risk ratio, or relative risk** that wasn't computed by an external tool. These require regression / model fitting that ClickHouse does not do. 5. **Never report median overall survival from `AVG(OS_MONTHS)` or even `quantile(0.5)(OS_MONTHS)`.** Median OS requires Kaplan-Meier estimation, which handles censoring (`OS_STATUS = 0:LIVING` means the event hasn't happened yet). Naive medians/means over `OS_MONTHS` ignore censoring and are systematically wrong. The correct handoff: return the raw `(OS_MONTHS, OS_STATUS)` pairs (or descriptive counts: N events, N censored, follow-up range) and tell the user to run KM in R (`survival::survfit`) or Python (`lifelines.KaplanMeierFitter`), or use cBioPortal's Survival comparison. If asked to do any of (1)–(5), respond with the appropriate handoff template from the "Approved Response Templates" section below — do not produce the number. Ambiguous-Term Clarification (before any analysis) -------------------------------------------------- If the user's question uses an ambiguous term, ask before computing anything. Examples: - **"aggressive"** → could mean shorter overall survival, higher metastasis rate, higher grade/stage, higher TMB, or specific molecular features. Ask which definit … (9984 more chars) ▶ read_guide { "uri": "cbioportal://clinical-data-guide" } ◀ result # Clinical Data Query Guide ## Overview Clinical data in cBioPortal is stored at both patient and sample levels. Understanding the distinction is crucial for accurate analysis. ## Data Organization ### Patient-Level vs Sample-Level Data - **Patient-level**: Demographics, overall survival, disease stage (stored once per patient) - **Sample-level**: Sample type, sequencing platform, purity (can have multiple per patient) ### Key Tables - `clinical_patient`: Patient-level clinical attributes - `clinical_sample`: Sample-level clinical attributes - `clinical_data_derived`: Pre-joined view combining both levels - `clinical_attribute_meta`: Metadata about available clinical attributes ## Recommended Approach: Use clinical_data_derived The `clinical_data_derived` table is pre-joined and optimized for most queries: ```sql -- Get clinical data for specific attributes SELECT sample_unique_id, patient_unique_id, attribute_name, attribute_value FROM clinical_data_derived WHERE cancer_study_identifier = 'your_study_id' AND attribute_name IN ('CANCER_TYPE', 'SAMPLE_TYPE', 'TMB_NONSYNONYMOUS'); ``` ## Clinical Attribute Discovery ### Use clinical_attribute_meta for Discovering Available Attributes **Always start here** to see what clinical attributes are available for a specific study: ```sql -- Discover available clinical attributes for a study SELECT attr_id, description, patient_attribute, cancer_study_id FROM clinical_attribute_meta WHERE cancer_study_id = ( SELECT cancer_study_id FROM cancer_study WHERE cancer_study_identifier = 'your_study_id' ) ORDER BY patient_attribute, attr_id; ``` **Key Fields:** - **attr_id**: matches attr_id in clinical_sample/clinical_patient tables - **description**: human-readable description of the attribute - **patient_attribute**: true = patient attribute, false = sample attribute - **cancer_study_id**: links to cancer_study table (filter by study) ## Attribute Semantics and Matching ### Case-Insensitive Matching for Attribute Values Clinical values are free text across studies and may differ only by case. For example, a controlled-looking value such as germline mutation status may appear as `GERMLINE`, `Germline`, or another case variant. When filtering `clinical_data_derived.attribute_value`, use case-insensitive matching unless you have already profiled the exact values in the target study: ```sql -- Correct: case-insensitive clinical value filter SELECT DISTINCT sample_unique_id, patient_unique_id FROM clinical_data_derived WHERE cancer_study_identifier = 'your_study_id' AND attribute_name = 'MUTATION_STATUS' AND upper(attribute_value) = 'GERMLINE'; ``` Do not write `attribute_value = 'GERMLINE'` without first checking all distinct values for that attribute in the study. ### Query the Requested Attribute, Not a Proxy Do not infer one clinical attribute from a related subtype or marker. Query the actual requested attribute when it … (17073 more chars) ▶ resolve_and_route { "studyKeywords": [ "MSK", "Gastroenterology", "2020" ] } ◀ result {"success":true,"message":"Found 1 study. Use the metadata to call the appropriate navigation tool(s).","data":{"totalCount":1,"studiesWithMetadata":[{"studyId":"crc_apc_impact_2020","name":"Colorectal Cancer (MSK, Gastroenterology 2020)","sampleCount":471,"studyViewUrl":"https://www.cbioportal.org/study?id=crc_apc_impact_2020","metadata":{"clinicalAttributeIds":["AGE_AT_MET","APC_GROUPS","CANCER_TYPE","CANCER_TYPE_DETAILED","CARCINOMATOSIS","DIFFERENTIATION","ECOG","FIRST_LINE_MET_TX","FRACTION_GENOME_ALTERED","HISTOLOGY","LST","METASTASIS_BONE","METASTASIS_LIVER","METASTASIS_LUNG","METASTASIS_OTHER","MSI_SCORE","MSI_TYPE","MUTATION_COUNT","ONCOTREE_CODE","OS_MONTHS","OS_STATUS","PFS_MONTHS","PFS_STATUS","PRIOR_ADJUVANT_CHEMO","SAMPLE_COUNT","SEX","SOMATIC_STATUS","STAGE_AT_DIAGNOSIS","SURGERY_PRIMARY_TUMOR","TIMING_METS","TMB_NONSYNONYMOUS","TUMOR_LOCATION","USED_IN_GENOMIC_ANALYSIS"],"molecularProfileIds":["crc_apc_impact_2020_cna","crc_apc_impact_2020_mutations","crc_apc_impact_2020_structural_variants"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations"]}}]}} ▶ resolve_and_route { "studyKeywords": [ "TCGA", "colorectal", "pan_can_atlas" ] } ◀ result {"success":true,"message":"Found 1 study. Use the metadata to call the appropriate navigation tool(s).","data":{"totalCount":1,"studiesWithMetadata":[{"studyId":"coadread_tcga_pan_can_atlas_2018","name":"Colorectal Adenocarcinoma (TCGA, PanCancer Atlas)","sampleCount":594,"studyViewUrl":"https://www.cbioportal.org/study?id=coadread_tcga_pan_can_atlas_2018","metadata":{"clinicalAttributeIds":["AGE","AJCC_PATHOLOGIC_TUMOR_STAGE","AJCC_STAGING_EDITION","ANEUPLOIDY_SCORE","BUFFA_HYPOXIA_SCORE","CANCER_TYPE","CANCER_TYPE_ACRONYM","CANCER_TYPE_DETAILED","DAYS_LAST_FOLLOWUP","DAYS_TO_BIRTH","DAYS_TO_INITIAL_PATHOLOGIC_DIAGNOSIS","DFS_MONTHS","DFS_STATUS","DSS_MONTHS","DSS_STATUS","ETHNICITY","FORM_COMPLETION_DATE","FRACTION_GENOME_ALTERED","GENETIC_ANCESTRY_LABEL","GRADE","HISTORY_NEOADJUVANT_TRTYN","ICD_10","ICD_O_3_HISTOLOGY","ICD_O_3_SITE","INFORMED_CONSENT_VERIFIED","IN_PANCANPATHWAYS_FREEZE","MSI_SCORE_MANTIS","MSI_SENSOR_SCORE","MUTATION_COUNT","NEW_TUMOR_EVENT_AFTER_INITIAL_TREATMENT","ONCOTREE_CODE","OS_MONTHS","OS_STATUS","OTHER_PATIENT_ID","PATH_M_STAGE","PATH_N_STAGE","PATH_T_STAGE","PERSON_NEOPLASM_CANCER_STATUS","PFS_MONTHS","PFS_STATUS","PRIMARY_LYMPH_NODE_PRESENTATION_ASSESSMENT","PRIOR_DX","RACE","RADIATION_THERAPY","RAGNUM_HYPOXIA_SCORE","SAMPLE_COUNT","SAMPLE_TYPE","SEX","SOMATIC_STATUS","SUBTYPE","TBL_SCORE","TISSUE_PROSPECTIVE_COLLECTION_INDICATOR","TISSUE_RETROSPECTIVE_COLLECTION_INDICATOR","TISSUE_SOURCE_SITE","TISSUE_SOURCE_SITE_CODE","TMB_NONSYNONYMOUS","TUMOR_TISSUE_SITE","TUMOR_TYPE","WEIGHT","WINTER_HYPOXIA_SCORE"],"molecularProfileIds":["coadread_tcga_pan_can_atlas_2018_gistic","coadread_tcga_pan_can_atlas_2018_log2CNA","coadread_tcga_pan_can_atlas_2018_mutations","coadread_tcga_pan_can_atlas_2018_protein_quantification","coadread_tcga_pan_can_atlas_2018_protein_quantification_zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_Zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_Zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_ref_normal_Zscores","coadread_tcga_pan_can_atlas_2018_rppa","coadread_tcga_pan_can_atlas_2018_rppa_Zscores","coadread_tcga_pan_can_atlas_2018_structural_variants"],"genericAssayProfiles":["coadread_tcga_pan_can_atlas_2018_armlevel_cna","coadread_tcga_pan_can_atlas_2018_genetic_ancestry","coadread_tcga_pan_can_atlas_2018_methylation_hm27_hm450_merge","coadread_tcga_pan_can_atlas_2018_methylation_hm450"],"heatmapProfileIds":["coadread_tcga_pan_can_atlas_2018_protein_quantification_zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_Zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_Zscores","coadread_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_ref_normal_Zscores","coadread_tcga_pan_can_atlas_2018_rppa_Zscores"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations","mrna","protein","generic_assay_armlevel_c … (70 more chars) ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_name, attribute_value FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_apc_impact_2020' AND (upper(attribute_name) LIKE '%MSI%') ORDER BY attribute_name, attribute_value" } ◀ result {"rows":[{"attribute_name":"MSI_SCORE"},{"attribute_name":"MSI_SCORE","attribute_value":"-1"},{"attribute_name":"MSI_SCORE","attribute_value":"0"},{"attribute_name":"MSI_SCORE","attribute_value":"0.06"},{"attribute_name":"MSI_SCORE","attribute_value":"0.08"},{"attribute_name":"MSI_SCORE","attribute_value":"0.09"},{"attribute_name":"MSI_SCORE","attribute_value":"0.11"},{"attribute_name":"MSI_SCORE","attribute_value":"0.12"},{"attribute_name":"MSI_SCORE","attribute_value":"0.13"},{"attribute_name":"MSI_SCORE","attribute_value":"0.14"},{"attribute_name":"MSI_SCORE","attribute_value":"0.15"},{"attribute_name":"MSI_SCORE","attribute_value":"0.16"},{"attribute_name":"MSI_SCORE","attribute_value":"0.17"},{"attribute_name":"MSI_SCORE","attribute_value":"0.18"},{"attribute_name":"MSI_SCORE","attribute_value":"0.19"},{"attribute_name":"MSI_SCORE","attribute_value":"0.2"},{"attribute_name":"MSI_SCORE","attribute_value":"0.21"},{"attribute_name":"MSI_SCORE","attribute_value":"0.22"},{"attribute_name":"MSI_SCORE","attribute_value":"0.24"},{"attribute_name":"MSI_SCORE","attribute_value":"0.25"},{"attribute_name":"MSI_SCORE","attribute_value":"0.26"},{"attribute_name":"MSI_SCORE","attribute_value":"0.27"},{"attribute_name":"MSI_SCORE","attribute_value":"0.28"},{"attribute_name":"MSI_SCORE","attribute_value":"0.29"},{"attribute_name":"MSI_SCORE","attribute_value":"0.3"},{"attribute_name":"MSI_SCORE","attribute_value":"0.31"},{"attribute_name":"MSI_SCORE","attribute_value":"0.32"},{"attribute_name":"MSI_SCORE","attribute_value":"0.33"},{"attribute_name":"MSI_SCORE","attribute_value":"0.34"},{"attribute_name":"MSI_SCORE","attribute_value":"0.35"},{"attribute_name":"MSI_SCORE","attribute_value":"0.36"},{"attribute_name":"MSI_SCORE","attribute_value":"0.37"},{"attribute_name":"MSI_SCORE","attribute_value":"0.38"},{"attribute_name":"MSI_SCORE","attribute_value":"0.39"},{"attribute_name":"MSI_SCORE","attribute_value":"0.4"},{"attribute_name":"MSI_SCORE","attribute_value":"0.42"},{"attribute_name":"MSI_SCORE","attribute_value":"0.43"},{"attribute_name":"MSI_SCORE","attribute_value":"0.44"},{"attribute_name":"MSI_SCORE","attribute_value":"0.45"},{"attribute_name":"MSI_SCORE","attribute_value":"0.46"},{"attribute_name":"MSI_SCORE","attribute_value":"0.47"},{"attribute_name":"MSI_SCORE","attribute_value":"0.48"},{"attribute_name":"MSI_SCORE","attribute_value":"0.49"},{"attribute_name":"MSI_SCORE","attribute_value":"0.5"},{"attribute_name":"MSI_SCORE","attribute_value":"0.51"},{"attribute_name":"MSI_SCORE","attribute_value":"0.55"},{"attribute_name":"MSI_SCORE","attribute_value":"0.57"},{"attribute_name":"MSI_SCORE","attribute_value":"0.58"},{"attribute_name":"MSI_SCORE","attribute_value":"0.59"},{"attribute_name":"MSI_SCORE","attribute_value":"0.6"},{"attribute_name":"MSI_SCORE","attribute_value":"0.61"},{"attribute_name":"MSI_SCORE","attribute_value":"0.62"},{"attribute_name":"MSI_SCORE","attribute_value":"0.63"},{"attribute_name":"MSI_SCORE","attribute_value":"0.64"},{" … (2863 more chars) ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_name FROM clinical_data_derived WHERE cancer_study_identifier = 'coadread_tcga_pan_can_atlas_2018' AND (upper(attribute_name) LIKE '%MSI%' OR upper(attribute_name) LIKE '%SUBTYPE%')" } ◀ result {"rows":[{"attribute_name":"SUBTYPE"},{"attribute_name":"MSI_SCORE_MANTIS"},{"attribute_name":"MSI_SENSOR_SCORE"}]} ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_value, count() FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_apc_impact_2020' AND attribute_name = 'MSI_TYPE' GROUP BY attribute_value" } ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_value, count() FROM clinical_data_derived WHERE cancer_study_identifier = 'coadread_tcga_pan_can_atlas_2018' AND attribute_name = 'SUBTYPE' GROUP BY attribute_value" } ◀ result {"rows":[{"count()":1},{"attribute_value":"Stable","count()":428},{"attribute_value":"Instable","count()":27},{"attribute_value":"Do not report","count()":7},{"attribute_value":"Indeterminate","count()":8}]} ◀ result {"rows":[{"count()":135},{"attribute_value":"COAD_GS","count()":49},{"attribute_value":"READ_CIN","count()":102},{"attribute_value":"READ_GS","count()":9},{"attribute_value":"COAD_CIN","count()":226},{"attribute_value":"COAD_MSI","count()":60},{"attribute_value":"READ_MSI","count()":3},{"attribute_value":"READ_POLE","count()":4},{"attribute_value":"COAD_POLE","count()":6}]} ▶ clickhouse_run_select_query { "query": " WITH msi AS ( SELECT DISTINCT patient_unique_id FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_apc_impact_2020' AND attribute_name = 'MSI_TYPE' AND attribute_value = 'Instable' ), os AS ( SELECT patient_unique_id, maxIf(toFloat64OrNull(attribute_value), attribute_name = 'OS_MONTHS') AS os_months, maxIf(attribute_value, attribute_name = 'OS_STATUS') AS os_status FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_apc_impact_2020' AND attribute_name IN ('OS_MONTHS','OS_STATUS') GROUP BY patient_unique_id ) SELECT 'MSK_Gastro_2020_MSI-H' AS group_name, count() AS n_patients, countIf(startsWith(os_status,'1')) AS n_events, countIf(startsWith(os_status,'0')) AS n_censored, min(os_months) AS min_followup, max(os_months) AS max_followup FROM os WHERE patient_unique_id IN (SELECT patient_unique_id FROM msi) AND os_months IS NOT NULL AND os_status != '' " } ◀ result {"rows":[{"group_name":"MSK_Gastro_2020_MSI-H","n_patients":27,"n_events":15,"n_censored":12,"min_followup":2.2,"max_followup":70.9}]} ▶ clickhouse_run_select_query { "query": " WITH msi AS ( SELECT DISTINCT patient_unique_id FROM clinical_data_derived WHERE cancer_study_identifier = 'coadread_tcga_pan_can_atlas_2018' AND attribute_name = 'SUBTYPE' AND attribute_value IN ('COAD_MSI','READ_MSI') ), os AS ( SELECT patient_unique_id, maxIf(toFloat64OrNull(attribute_value), attribute_name = 'OS_MONTHS') AS os_months, maxIf(attribute_value, attribute_name = 'OS_STATUS') AS os_status FROM clinical_data_derived WHERE cancer_study_identifier = 'coadread_tcga_pan_can_atlas_2018' AND attribute_name IN ('OS_MONTHS','OS_STATUS') GROUP BY patient_unique_id ) SELECT 'TCGA_COADREAD_MSI' AS group_name, count() AS n_patients, countIf(startsWith(os_status,'1')) AS n_events, countIf(startsWith(os_status,'0')) AS n_censored, min(os_months) AS min_followup, max(os_months) AS max_followup FROM os WHERE patient_unique_id IN (SELECT patient_unique_id FROM msi) AND os_months IS NOT NULL AND os_status != '' " } ◀ result {"rows":[{"group_name":"TCGA_COADREAD_MSI","n_patients":63,"n_events":15,"n_censored":48,"min_followup":0,"max_followup":135.6478285}]} ▶ navigate_to_group_comparison { "studyIds": [ "crc_apc_impact_2020", "coadread_tcga_pan_can_atlas_2018" ], "tab": "survival", "groups": [ { "name": "MSK Gastro 2020 MSI-H", "studyViewFilter": { "studyIds": [ "crc_apc_impact_2020" ], "clinicalDataFilters": [ { "attributeId": "MSI_TYPE", "values": [ { "value": "Instable" } ] } ] } }, { "name": "TCGA COADREAD MSI", "studyViewFilter": { "studyIds": [ "coadread_tcga_pan_can_atlas_2018" ], "clinicalDataFilters": [ { "attributeId": "SUBTYPE", "values": [ { "value": "COAD_MSI" }, { "value": "READ_MSI" } ] } ] } } ] } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/comparison/survival?comparisonId=6ab5c103e497aad53593c25d","url":"https://www.cbioportal.org/comparison/survival?comparisonId=6ab5c103e497aad53593c25d","data":{"description":"Group comparison (2 custom groups)","studies":["crc_apc_impact_2020","coadread_tcga_pan_can_atlas_2018"],"totalGroups":2,"groups":[{"name":"MSK Gastro 2020 MSI-H","sampleCount":27},{"name":"TCGA COADREAD MSI","sampleCount":63}],"studyViewUrl":"https://www.cbioportal.org/study?id=crc_apc_impact_2020%2Ccoadread_tcga_pan_can_atlas_2018","groupUrls":[{"groupName":"MSK Gastro 2020 MSI-H","url":"https://www.cbioportal.org/study?id=crc_apc_impact_2020#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_TYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22Instable%22%7D%5D%7D%5D%7D"},{"groupName":"TCGA COADREAD MSI","url":"https://www.cbioportal.org/study?id=coadread_tcga_pan_can_atlas_2018#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22SUBTYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22COAD_MSI%22%7D%2C%7B%22value%22%3A%22READ_MSI%22%7D%5D%7D%5D%7D"}],"pageDescription":"Kaplan-Meier survival analysis comparing MSK Gastro 2020 MSI-H (27) vs TCGA COADREAD MSI (63)."}} ▶ navigate_to_study_view { "studyIds": [ "crc_apc_impact_2020" ], "filterJson": { "clinicalDataFilters": [ { "attributeId": "MSI_TYPE", "values": [ { "value": "Instable" } ] } ] } } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/study/summary?id=crc_apc_impact_2020#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_TYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22Instable%22%7D%5D%7D%5D%7D","url":"https://www.cbioportal.org/study/summary?id=crc_apc_impact_2020#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_TYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22Instable%22%7D%5D%7D%5D%7D","data":{"studyIds":["crc_apc_impact_2020"],"studies":[{"studyId":"crc_apc_impact_2020","name":"Colorectal Cancer (MSK, Gastroenterology 2020)","sampleCount":471}],"tab":"summary","hasFilters":true,"hasPlotsConfig":false,"pageDescription":"Overview of all study data displayed as interactive charts summarizing available clinical and genomic data. Click within a chart to filter. Additional charts may be available in the Charts menu."}} ▶ navigate_to_study_view { "studyIds": [ "coadread_tcga_pan_can_atlas_2018" ], "filterJson": { "clinicalDataFilters": [ { "attributeId": "SUBTYPE", "values": [ { "value": "COAD_MSI" }, { "value": "READ_MSI" } ] } ] } } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/study/summary?id=coadread_tcga_pan_can_atlas_2018#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22SUBTYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22COAD_MSI%22%7D%2C%7B%22value%22%3A%22READ_MSI%22%7D%5D%7D%5D%7D","url":"https://www.cbioportal.org/study/summary?id=coadread_tcga_pan_can_atlas_2018#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22SUBTYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22COAD_MSI%22%7D%2C%7B%22value%22%3A%22READ_MSI%22%7D%5D%7D%5D%7D","data":{"studyIds":["coadread_tcga_pan_can_atlas_2018"],"studies":[{"studyId":"coadread_tcga_pan_can_atlas_2018","name":"Colorectal Adenocarcinoma (TCGA, PanCancer Atlas)","sampleCount":594}],"tab":"summary","hasFilters":true,"hasPlotsConfig":false,"pageDescription":"Overview of all study data displayed as interactive charts summarizing available clinical and genomic data. Click within a chart to filter. Additional charts may be available in the Charts menu."}} ═ answer (success) ### Navigation Links **[Kaplan-Meier Survival Comparison: MSK Gastro 2020 MSI-H vs TCGA COADREAD MSI](https://www.cbioportal.org/comparison/survival?comparisonId=6ab5c103e497aad53593c25d)** Kaplan-Meier survival analysis comparing MSK Gastro 2020 MSI-H (27 patients) vs TCGA COADREAD MSI (63 patients). This runs the actual KM curves + log-rank test — use this to get the real p-value and see whether the curves overlap. **[MSK Gastroenterology 2020 — MSI-H (Instable) cohort](https://www.cbioportal.org/study/summary?id=crc_apc_impact_2020#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_TYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22Instable%22%7D%5D%7D%5D%7D)** **[TCGA COADREAD PanCancer Atlas — MSI subtype cohort](https://www.cbioportal.org/study/summary?id=coadread_tcga_pan_can_atlas_2018#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22SUBTYPE%22%2C%22values%22%3A%5B%7B%22value%22%3A%22COAD_MSI%22%7D%2C%7B%22value%22%3A%22READ_MSI%22%7D%5D%7D%5D%7D)** --- **Bottom line:** Based on raw descriptive counts, the MSK cohort shows a notably higher death rate among MSI-H patients (56% vs 24% in TCGA) over a shorter median follow-up window, but I can't say this reflects a true prognostic difference without the log-rank test, and the cohorts differ in stage/treatment context (MSK is IMPACT-panel, likely enriched for advanced/metastatic disease; TCGA is a broader surgical cohort). Please run the KM comparison link above for the actual statistical answer — I can help interpret the resulting curve/p-value once generated.