Q (sonnet): show me the distribution of mutations in the tert promoter across cancer types ▶ read_guide { "uri": "cbioportal://mutation-frequency-guide" } ▶ read_guide { "uri": "cbioportal://common-pitfalls#16" } ◀ result # Mutation Frequency Analysis Guide ## IMPORTANT: Reporting Mutation Frequencies - **ALWAYS report frequencies as percentages**, not raw counts: `frequency = (altered_samples / total_profiled_samples) × 100` - For quick frequency lookups, **prefer the TCGA Pan-Cancer Atlas study first**, then offer to expand to other studies - When reporting across multiple studies, show **ranges** (e.g., "TP53 is mutated in 30–60% of samples") rather than a single average - **NEVER** sum mutation events across studies to compute an aggregate frequency — this can exceed 100% due to double-counting - Warn users that samples may overlap across cohorts (e.g., MSK studies may share patients) - **Choose and state the counting unit**: use patient-level frequencies for prevalence/rate questions unless the user explicitly asks for samples; use sample-level frequencies when the user asks about samples. - **For "across cancer types" questions**, jump to the [Cross-Cancer-Type Mutation Frequency](#cross-cancer-type-mutation-frequency) section below — there is one correct recipe and several common wrong ones. ## Counting Unit: Samples vs Patients Before answering any mutation count or frequency question, decide whether the unit is samples or patients and state that choice in the answer. | User wording | Counting unit | |--------------|---------------| | "prevalence", "rate", "fraction of patients", "patients with", "how common is" | Patient-level: `COUNT(DISTINCT patient_unique_id)` | | "samples", "specimens", "biopsies", sample-level cohort composition | Sample-level: `COUNT(DISTINCT sample_unique_id)` | | Ambiguous | Ask, or default to patient-level for prevalence/rate language and say so | ### Cross-study sample-count caveat When an answer touches more than one study and reports a sample count, prepend a one-line caveat: > Sample IDs are unique within cBioPortal study prefixes, not guaranteed biological-sample identifiers across studies; overlapping cohorts can count the same patient/sample more than once. Prefer one of these safer approaches: - Use a shipped `cancer_study_query_preferences` cohort such as `pan_cancer_tcga` or `all_studies_non_redundant`. - Restrict to one named study. - Aggregate by `patient_unique_id` when the biological question is patient prevalence. ## STOP rule: a frequency above 100% means your query is wrong If your query returns a frequency over 100%, **do not try to debug or explain the data inconsistency to the user**. The cause is always one of these query bugs: - Summing mutation events instead of `COUNT(DISTINCT sample_unique_id)` for the numerator - Using a study-wide sample count as the denominator instead of the gene-specific profiled count - Cross-study aggregation where the same biological sample appears under multiple `sample_unique_id` values (e.g., MSK-IMPACT and MSK-CHORD share patients) - **Joining the profiled CTE through `gene_panel` / `gene_panel_list` without a WES branch.** `gene_panel_id = 'WES'` is *not* a row in … (35166 more chars) ◀ result ### 16. 🚨 SILENT QUERY SUBSTITUTION ("did you mean...") When the user's wording differs from canonical terminology (e.g. "V600V" looks like "V600E" with a typo, or "point mutation" sounds like "missense"), it is forbidden to silently rewrite the question and answer the rewritten version. Doing so produces an answer that looks confident but is for a different question — the user cannot tell what was changed. #### ❌ Wrong: silently substitute > User: *"Find patients in colorectal cancer with the V600V alteration in BRAF"* > Agent: *(internally treats this as V600E)* "I found 412 samples with BRAF V600E in colorectal studies..." > User: *"What is the most prevalent TP53 mutation in uterine cancer that is not a point mutation?"* > Agent: *(internally treats "point mutation" = "missense", silently excludes only missense)* "The most prevalent non-missense TP53 mutation is..." #### ✅ Correct: answer the literal question, flag any normalization For an unusual-looking variant the user may have typed deliberately: - Query for what was asked, literally. - If 0 rows come back, **explain *why* zero is the expected answer** before suggesting a likely-intended alternative. For synonymous variants (e.g. BRAF V600V, TP53 R175R), the explanation is: *cBioPortal's mutation tables filter out synonymous (silent) variants in most studies, so 0 hits means "filtered upstream", not "no such variant exists in any patient"*. Then ask: *"Did you mean V600E (the canonical activating variant)? Or would you like me to look for V600V in the studies that do retain synonymous calls?"* - If the wording is ambiguous (e.g. "point mutation"), ask the user which definition they meant before querying — do not pick one silently. #### Mutation-type terminology mapping (use this to disambiguate) | User says | Canonical definition | `mutation_type` filter | |---|---|---| | "point mutation" | Any SNV (single-nucleotide variant) — includes missense, nonsense, synonymous, splice-site SNVs | `mutation_type IN ('Missense_Mutation','Nonsense_Mutation','Silent','Splice_Site')` — **but ask the user to confirm scope first** | | "missense" | Single amino-acid substitution that changes the protein | `mutation_type = 'Missense_Mutation'` | | "nonsense" / "stop-gain" | Premature stop codon | `mutation_type = 'Nonsense_Mutation'` | | "synonymous" / "silent" | Nucleotide change with no amino-acid change | `mutation_type = 'Silent'` (**often filtered out of public datasets** — see below) | | "splice site" | Mutation in canonical splice acceptor/donor | `mutation_type = 'Splice_Site'` | | "frameshift" | Indel changing reading frame | `mutation_type IN ('Frame_Shift_Ins','Frame_Shift_Del')` | | "indel" / "in-frame" | In-frame insertion or deletion | `mutation_type IN ('In_Frame_Ins','In_Frame_Del')` | | "truncating" | Anything that disrupts the protein early | `mutation_type IN ('Nonsense_Mutation','Frame_Shift_Ins','Frame_Shift_Del','Splice_Site','Nonstop_Mutation')` | **Synonymous-variant filter. … (785 more chars) ▶ clickhouse_list_table_columns { "table": "genomic_event_derived" } ◀ result {"columns":[{"name":"sample_unique_id","type":"String"},{"name":"hugo_gene_symbol","type":"String","comment":"HUGO gene symbol (e.g., TP53, KRAS, BRAF). Use for gene-specific queries."},{"name":"entrez_gene_id","type":"Int32"},{"name":"gene_panel_stable_id","type":"LowCardinality(String)"},{"name":"cancer_study_identifier","type":"LowCardinality(String)"},{"name":"genetic_profile_stable_id","type":"LowCardinality(String)"},{"name":"variant_type","type":"LowCardinality(String)","comment":"Type of genomic event: \"mutation\" for SNVs/indels, \"cna\" for copy number alterations, \"structural_variant\" for SVs. Always filter by this."},{"name":"mutation_variant","type":"String","comment":"Protein change notation (e.g., p.V600E, p.R175H). Use for specific variant queries. \"NA\" for non-mutation events."},{"name":"mutation_type","type":"LowCardinality(String)"},{"name":"mutation_status","type":"LowCardinality(String)","comment":"For mutations: Somatic, Germline, UNKNOWN, or UNCALLED. Filter mutation_status != \"UNCALLED\" to exclude uncertain calls. Include all other statuses."},{"name":"driver_filter","type":"LowCardinality(String)"},{"name":"driver_filter_annotation","type":"String"},{"name":"driver_tiers_filter","type":"LowCardinality(String)"},{"name":"driver_tiers_filter_annotation","type":"String"},{"name":"cna_alteration","type":"Nullable(Int8)","comment":"Copy number alteration: only 2 = amplification (AMP) and -2 = deep deletion (HOMDEL) are stored. Shallow deletion (-1), diploid (0) and gain (1) are not in this table; query genetic_alteration_derived WHERE profile_type = 'gistic' (alteration_value is a String, e.g. '-1'). NULL for non-CNA events."},{"name":"cna_cytoband","type":"String"},{"name":"sv_event_info","type":"String"},{"name":"patient_unique_id","type":"String"},{"name":"off_panel","type":"Bool","comment":"Boolean: 1 = mutation outside gene panel coverage (off-panel), 0 = within panel (on-panel). Filter off_panel = 0 for reliable frequency calculations."}]} ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT hugo_gene_symbol, mutation_type, mutation_variant FROM genomic_event_derived WHERE hugo_gene_symbol = 'TERT' AND variant_type = 'mutation' LIMIT 50" } ◀ result {"rows":[{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"G932S"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R1097S"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R889Q"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"G198E"},{"hugo_gene_symbol":"TERT","mutation_type":"Splice_Region","mutation_variant":"X1011_splice"},{"hugo_gene_symbol":"TERT","mutation_type":"5'Flank","mutation_variant":"Promoter"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"P376L"},{"hugo_gene_symbol":"TERT","mutation_type":"Splice_Region","mutation_variant":"X1052_splice"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"E339K"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"S496F"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"A501T"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"G336D"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"G830R"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"D911N"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"E1068K"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"A730T"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R1034H"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"L837F"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"P383L"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R261K"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R696C"},{"hugo_gene_symbol":"TERT","mutation_type":"Splice_Site","mutation_variant":"X651_splice"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"W510C"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"V1016L"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R811H"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"W256L"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R672C"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"Y562F"},{"hugo_gene_symbol":"TERT","mutation_type":"In_Frame_Del","mutation_variant":"V563del"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"R962S"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"W1026L"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_variant":"W1026C"},{"hugo_gene_symbol":"TERT","mutation_type":"Missense_Mutation","mutation_vari … (1567 more chars) ▶ clickhouse_run_select_query { "query": " WITH cohort AS ( SELECT cancer_study_identifier FROM cancer_study_query_preferences WHERE preference_name = 'pan_cancer_tcga' ), sample_cancer_type AS ( SELECT cd.sample_unique_id, cd.attribute_value AS cancer_type FROM clinical_data_derived cd JOIN cohort c USING (cancer_study_identifier) WHERE cd.attribute_name = 'CANCER_TYPE' ), altered AS ( SELECT sct.cancer_type, COUNT(DISTINCT ged.sample_unique_id) AS altered_samples FROM genomic_event_derived ged JOIN cohort c USING (cancer_study_identifier) JOIN sample_cancer_type sct USING (sample_unique_id) WHERE ged.variant_type = 'mutation' AND ged.mutation_status != 'UNCALLED' AND ged.hugo_gene_symbol = 'TERT' AND ged.mutation_type = '5\\'Flank' AND ged.mutation_variant = 'Promoter' AND ged.off_panel = 0 GROUP BY sct.cancer_type ), profiled_samples_for_gene AS ( SELECT sample_unique_id, cancer_study_identifier FROM mutation_panel_gene_coverage WHERE hugo_gene_symbol = 'TERT' UNION ALL SELECT sample_unique_id, cancer_study_identifier FROM mutation_wes_coverage ), profiled AS ( SELECT sct.cancer_type, COUNT(DISTINCT p.sample_unique_id) AS profiled_samples FROM profiled_samples_for_gene p JOIN cohort c USING (cancer_study_identifier) JOIN sample_cancer_type sct USING (sample_unique_id) GROUP BY sct.cancer_type ) SELECT a.cancer_type, a.altered_samples, p.profiled_samples, ROUND(a.altered_samples * 100.0 / NULLIF(p.profiled_samples, 0), 1) AS frequency_pct FROM altered a JOIN profiled p USING (cancer_type) WHERE p.profiled_samples >= 50 ORDER BY frequency_pct DESC " } ◀ result {"rows":[]} ▶ clickhouse_run_select_query { "query": " WITH cohort AS ( SELECT cancer_study_identifier FROM cancer_study_query_preferences WHERE preference_name = 'pan_cancer_tcga' ) SELECT ged.cancer_study_identifier, COUNT(DISTINCT ged.sample_unique_id) AS altered_samples FROM genomic_event_derived ged JOIN cohort c USING (cancer_study_identifier) WHERE ged.variant_type = 'mutation' AND ged.mutation_status != 'UNCALLED' AND ged.hugo_gene_symbol = 'TERT' AND ged.mutation_type = '5\\'Flank' AND ged.mutation_variant = 'Promoter' GROUP BY ged.cancer_study_identifier ORDER BY altered_samples DESC " } ▶ clickhouse_run_select_query { "query": " SELECT COUNT(*) FROM mutation_panel_gene_coverage WHERE hugo_gene_symbol = 'TERT' " } ◀ result {"rows":[]} ◀ result {"rows":[{"COUNT()":262510}]} ▶ clickhouse_run_select_query { "query": " SELECT cancer_study_identifier, COUNT(DISTINCT sample_unique_id) AS altered_samples, COUNT(*) AS events FROM genomic_event_derived WHERE variant_type = 'mutation' AND mutation_status != 'UNCALLED' AND hugo_gene_symbol = 'TERT' AND mutation_type = '5\\'Flank' AND mutation_variant = 'Promoter' GROUP BY cancer_study_identifier ORDER BY altered_samples DESC LIMIT 50 " } ✗ error The operation timed out. ▶ clickhouse_run_select_query { "query": " SELECT cancer_study_identifier, COUNT(DISTINCT sample_unique_id) AS altered_samples FROM genomic_event_derived WHERE hugo_gene_symbol = 'TERT' AND variant_type = 'mutation' AND mutation_variant = 'Promoter' GROUP BY cancer_study_identifier ORDER BY altered_samples DESC LIMIT 50 " } ◀ result {"error_message":"Query execution failed: HTTPDriver for https://dl96orhu96.us-east-1.aws.clickhouse.cloud:8443 received ClickHouse error code 241\n Code: 241. DB::Exception: (total) memory limit exceeded: would use 30.61 GiB (attempt to allocate chunk of 0.00 B), current RSS: 30.61 GiB, maximum: 28.80 GiB. (MEMORY_LIMIT_EXCEEDED)\n"} ▶ clickhouse_run_select_query { "query": " SELECT cancer_study_identifier, COUNT(DISTINCT sample_unique_id) AS altered_samples FROM genomic_event_derived WHERE hugo_gene_symbol = 'TERT' AND mutation_type = '5\\'Flank' GROUP BY cancer_study_identifier ORDER BY altered_samples DESC LIMIT 50 " } ◀ result {"rows":[{"cancer_study_identifier":"msk_impact_50k_2026","altered_samples":6634},{"cancer_study_identifier":"msk_met_2021","altered_samples":2472},{"cancer_study_identifier":"msk_impact_2017","altered_samples":1325},{"cancer_study_identifier":"paired_bladder_2022","altered_samples":1170},{"cancer_study_identifier":"pan_origimed_2020","altered_samples":734},{"cancer_study_identifier":"glioma_mskcc_2019","altered_samples":594},{"cancer_study_identifier":"mel_mskimpact_2020","altered_samples":572},{"cancer_study_identifier":"tmb_mskcc_2018","altered_samples":489},{"cancer_study_identifier":"msk_chord_2024","altered_samples":378},{"cancer_study_identifier":"bladder_msk_2023","altered_samples":367},{"cancer_study_identifier":"ccle_broad_2025","altered_samples":251},{"cancer_study_identifier":"hcc_msk_2024","altered_samples":221},{"cancer_study_identifier":"mycf_msk_2026","altered_samples":199},{"cancer_study_identifier":"blca_msk_2025","altered_samples":188},{"cancer_study_identifier":"hcc_clca_2024","altered_samples":170},{"cancer_study_identifier":"pancan_mimsi_msk_2024","altered_samples":161},{"cancer_study_identifier":"crc_msk_2026","altered_samples":156},{"cancer_study_identifier":"msk_ctdna_vte_2024","altered_samples":154},{"cancer_study_identifier":"pancan_hcmi_2025","altered_samples":153},{"cancer_study_identifier":"blca_msk_2024","altered_samples":140},{"cancer_study_identifier":"hcc_inserm_fr_2015","altered_samples":138},{"cancer_study_identifier":"sarcoma_mskcc_2022","altered_samples":119},{"cancer_study_identifier":"bladder_columbia_msk_2018","altered_samples":112},{"cancer_study_identifier":"blca_msk_tcga_2020","altered_samples":96},{"cancer_study_identifier":"msk_access_2021","altered_samples":94},{"cancer_study_identifier":"msk_ch_2023","altered_samples":83},{"cancer_study_identifier":"acc_2019","altered_samples":81},{"cancer_study_identifier":"blca_nmibc_2017","altered_samples":77},{"cancer_study_identifier":"blca_pdx_msk_2025","altered_samples":71},{"cancer_study_identifier":"hcc_mskimpact_2018","altered_samples":68},{"cancer_study_identifier":"luad_mskcc_2023_met_organotropism","altered_samples":63},{"cancer_study_identifier":"glioma_msk_2018","altered_samples":58},{"cancer_study_identifier":"biliary_tract_msk_2026","altered_samples":58},{"cancer_study_identifier":"thyroid_mskcc_2016","altered_samples":58},{"cancer_study_identifier":"hcc_jcopo_msk_2023","altered_samples":53},{"cancer_study_identifier":"ucec_ancestry_cds_msk_2023","altered_samples":51},{"cancer_study_identifier":"mbl_dkfz_2017","altered_samples":50},{"cancer_study_identifier":"breast_msk_2026","altered_samples":45},{"cancer_study_identifier":"difg_msk_2023","altered_samples":44},{"cancer_study_identifier":"csf_msk_2024","altered_samples":44},{"cancer_study_identifier":"bladder_msk_2024","altered_samples":43},{"cancer_study_identifier":"soft_tissue_msk_2025","altered_samples":38},{"cancer_study_identifier":"thca_tcga_pub","altered_samples":36},{"cancer_study_identifie … (452 more chars) ▶ clickhouse_run_select_query { "query": " WITH altered AS ( SELECT cd.attribute_value AS cancer_type, COUNT(DISTINCT ged.sample_unique_id) AS altered_samples FROM genomic_event_derived ged JOIN clinical_data_derived cd ON cd.sample_unique_id = ged.sample_unique_id AND cd.attribute_name = 'CANCER_TYPE' AND cd.cancer_study_identifier = 'msk_impact_50k_2026' WHERE ged.cancer_study_identifier = 'msk_impact_50k_2026' AND ged.hugo_gene_symbol = 'TERT' AND ged.mutation_type = '5\\'Flank' AND ged.mutation_status != 'UNCALLED' GROUP BY cancer_type ), profiled AS ( SELECT cd.attribute_value AS cancer_type, COUNT(DISTINCT p.sample_unique_id) AS profiled_samples FROM mutation_panel_gene_coverage p JOIN clinical_data_derived cd ON cd.sample_unique_id = p.sample_unique_id AND cd.attribute_name = 'CANCER_TYPE' AND cd.cancer_study_identifier = 'msk_impact_50k_2026' WHERE p.cancer_study_identifier = 'msk_impact_50k_2026' AND p.hugo_gene_symbol = 'TERT' GROUP BY cancer_type ) SELECT a.cancer_type, a.altered_samples, p.profiled_samples, ROUND(a.altered_samples * 100.0 / NULLIF(p.profiled_samples,0), 1) AS frequency_pct FROM altered a JOIN profiled p USING (cancer_type) WHERE p.profiled_samples >= 50 ORDER BY frequency_pct DESC LIMIT 40 " } ◀ result {"rows":[{"cancer_type":"Bladder Cancer","altered_samples":1781,"profiled_samples":2526,"frequency_pct":70.5},{"cancer_type":"Glioma","altered_samples":1528,"profiled_samples":2322,"frequency_pct":65.8},{"cancer_type":"Melanoma","altered_samples":1037,"profiled_samples":1831,"frequency_pct":56.6},{"cancer_type":"Thyroid Cancer","altered_samples":475,"profiled_samples":867,"frequency_pct":54.8},{"cancer_type":"Sex Cord Stromal Tumor","altered_samples":35,"profiled_samples":91,"frequency_pct":38.5},{"cancer_type":"Vaginal Cancer","altered_samples":20,"profiled_samples":57,"frequency_pct":35.1},{"cancer_type":"Head and Neck Cancer","altered_samples":199,"profiled_samples":657,"frequency_pct":30.3},{"cancer_type":"Skin Cancer, Non-Melanoma","altered_samples":136,"profiled_samples":455,"frequency_pct":29.9},{"cancer_type":"Embryonal Tumor","altered_samples":14,"profiled_samples":80,"frequency_pct":17.5},{"cancer_type":"Hepatobiliary Cancer","altered_samples":217,"profiled_samples":1431,"frequency_pct":15.2},{"cancer_type":"Cancer of Unknown Primary","altered_samples":180,"profiled_samples":1581,"frequency_pct":11.4},{"cancer_type":"Renal Cell Carcinoma","altered_samples":111,"profiled_samples":1209,"frequency_pct":9.2},{"cancer_type":"Salivary Gland Cancer","altered_samples":36,"profiled_samples":411,"frequency_pct":8.8},{"cancer_type":"Miscellaneous Brain Tumor","altered_samples":5,"profiled_samples":58,"frequency_pct":8.6},{"cancer_type":"Cervical Cancer","altered_samples":28,"profiled_samples":351,"frequency_pct":8},{"cancer_type":"Soft Tissue Sarcoma","altered_samples":177,"profiled_samples":2307,"frequency_pct":7.7},{"cancer_type":"Adrenocortical Carcinoma","altered_samples":6,"profiled_samples":88,"frequency_pct":6.8},{"altered_samples":3,"profiled_samples":50,"frequency_pct":6},{"cancer_type":"Mesothelioma","altered_samples":23,"profiled_samples":408,"frequency_pct":5.6},{"cancer_type":"Bone Cancer","altered_samples":29,"profiled_samples":590,"frequency_pct":4.9},{"cancer_type":"Anal Cancer","altered_samples":7,"profiled_samples":143,"frequency_pct":4.9},{"cancer_type":"CNS Cancer","altered_samples":8,"profiled_samples":170,"frequency_pct":4.7},{"cancer_type":"Ampullary Cancer","altered_samples":5,"profiled_samples":134,"frequency_pct":3.7},{"cancer_type":"Small Bowel Cancer","altered_samples":6,"profiled_samples":161,"frequency_pct":3.7},{"cancer_type":"Wilms Tumor","altered_samples":2,"profiled_samples":68,"frequency_pct":2.9},{"cancer_type":"Nerve Sheath Tumor","altered_samples":4,"profiled_samples":142,"frequency_pct":2.8},{"cancer_type":"Uterine Sarcoma","altered_samples":9,"profiled_samples":344,"frequency_pct":2.6},{"cancer_type":"Ovarian Cancer","altered_samples":54,"profiled_samples":2140,"frequency_pct":2.5},{"cancer_type":"Non-Small Cell Lung Cancer","altered_samples":189,"profiled_samples":7867,"frequency_pct":2.4},{"cancer_type":"Endometrial Cancer","altered_samples":59,"profiled_samples":2445,"frequency_pct":2.4},{"cancer_type":"S … (1024 more chars) ▶ resolve_and_route { "studyIds": [ "msk_impact_50k_2026" ] } ◀ result {"success":true,"message":"Found 1 study. Use the metadata to call the appropriate navigation tool(s).","data":{"totalCount":1,"studiesWithMetadata":[{"studyId":"msk_impact_50k_2026","name":"MSK-IMPACT 50K Clinical Sequencing Cohort (MSK, Cancer Cell 2026)","sampleCount":54331,"studyViewUrl":"https://www.cbioportal.org/study?id=msk_impact_50k_2026","metadata":{"clinicalAttributeIds":["AGE_AT_DX","ANCESTRY_LABEL","CANCER_TYPE","CANCER_TYPE_DETAILED","DISEASE_STATUS","FACETS_PLOIDY","FACETS_PURITY","FACETS_QC","FACETS_SUITE_VERSION","FACETS_WGD","FRACTION_GENOME_ALTERED","GENE_PANEL","HLA-A1","HLA-A2","HLA-B1","HLA-B2","HLA-C1","HLA-C2","HLA_A1_LOH","HLA_A2_LOH","HLA_B1_LOH","HLA_B2_LOH","HLA_C1_LOH","HLA_C2_LOH","HLA_GENOTYPE_AVAILABLE","METASTATIC_SITE","MSI_SCORE","MSI_TYPE","MUTATION_COUNT","N_OTHER_CANCER_TYPES","ONCOTREE_CODE","OS_MONTHS","OS_STATUS","PRIMARY_SITE","PURITY_ESTIMATE_FROM_MUTATIONS","SAMPLE_COUNT","SAMPLE_COVERAGE","SAMPLE_TYPE","SEX","SOMATIC_STATUS","TMB_SCORE","TUMOR_PURITY"],"molecularProfileIds":["msk_impact_50k_2026_gistic","msk_impact_50k_2026_mutations","msk_impact_50k_2026_structural_variants"],"genericAssayProfiles":["msk_impact_50k_2026_armlevel_cna","msk_impact_50k_2026_loh_hla","msk_impact_50k_2026_mutational_signatures_contribution_v2"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations","generic_assay_armlevel_cna","generic_assay_loh_hla","generic_assay_mutational_signature"]}}]}} ▶ navigate_to_study_view { "studyIds": [ "msk_impact_50k_2026" ], "filterJson": { "mutationDataFilters": [ { "hugoGeneSymbol": "TERT", "profileType": "mutations", "categorization": "MUTATION_TYPE", "values": [ [ { "value": "5'Flank" } ] ] } ] } } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/study/summary?id=msk_impact_50k_2026#filterJson=%7B%22mutationDataFilters%22%3A%5B%7B%22categorization%22%3A%22MUTATION_TYPE%22%2C%22hugoGeneSymbol%22%3A%22TERT%22%2C%22profileType%22%3A%22mutations%22%2C%22values%22%3A%5B%5B%7B%22value%22%3A%225'Flank%22%7D%5D%5D%7D%5D%7D","url":"https://www.cbioportal.org/study/summary?id=msk_impact_50k_2026#filterJson=%7B%22mutationDataFilters%22%3A%5B%7B%22categorization%22%3A%22MUTATION_TYPE%22%2C%22hugoGeneSymbol%22%3A%22TERT%22%2C%22profileType%22%3A%22mutations%22%2C%22values%22%3A%5B%5B%7B%22value%22%3A%225'Flank%22%7D%5D%5D%7D%5D%7D","data":{"studyIds":["msk_impact_50k_2026"],"studies":[{"studyId":"msk_impact_50k_2026","name":"MSK-IMPACT 50K Clinical Sequencing Cohort (MSK, Cancer Cell 2026)","sampleCount":54331}],"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_results_view { "studyIds": [ "msk_impact_50k_2026" ], "genes": [ "TERT: MUT" ], "tab": "cancerTypesSummary" } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/results/cancerTypesSummary?cancer_study_list=msk_impact_50k_2026&gene_list=TERT%3A+MUT&case_set_id=msk_impact_50k_2026_all","url":"https://www.cbioportal.org/results/cancerTypesSummary?cancer_study_list=msk_impact_50k_2026&gene_list=TERT%3A+MUT&case_set_id=msk_impact_50k_2026_all","data":{"studyIds":["msk_impact_50k_2026"],"studies":[{"studyId":"msk_impact_50k_2026","name":"MSK-IMPACT 50K Clinical Sequencing Cohort (MSK, Cancer Cell 2026)","sampleCount":54331}],"genes":["TERT"],"caseSetId":"msk_impact_50k_2026_all","pageDescription":"Alteration frequencies for queried genes by cancer type."}} ═ answer (success) **[View TERT promoter-mutant samples in Study View](https://www.cbioportal.org/study/summary?id=msk_impact_50k_2026#filterJson=%7B%22mutationDataFilters%22%3A%5B%7B%22categorization%22%3A%22MUTATION_TYPE%22%2C%22hugoGeneSymbol%22%3A%22TERT%22%2C%22profileType%22%3A%22mutations%22%2C%22values%22%3A%5B%5B%7B%22value%22%3A%225'Flank%22%7D%5D%5D%7D%5D%7D)** — MSK-IMPACT 50K cohort (54,331 samples) filtered to TERT `5'Flank` (promoter) mutations only. **[View TERT alteration frequencies by cancer type (ResultsView)](https://www.cbioportal.org/results/cancerTypesSummary?cancer_study_list=msk_impact_50k_2026&gene_list=TERT%3A+MUT&case_set_id=msk_impact_50k_2026_all)** — note this tab queries all TERT mutations (not promoter-restricted only); use the Study View link above for the promoter-specific breakdown, or apply the same `5'Flank` filter within the Mutations tab. Alteration frequencies for queried genes by cancer type.