Q (haiku): What are the most mutated genes in lung cancer? ▶ read_guide { "uri": "cbioportal://mutation-frequency-guide" } ▶ search_oncotree { "search_term": "lung cancer" } ◀ 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 {"result":[{"code":"LUNG","name":"Lung","score":65,"mainType":"Lung Cancer","tissue":"Lung","hierarchy":"LUNG"},{"code":"NSCLC","name":"Non-Small Cell Lung Cancer","score":50,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC"},{"code":"NSCLCPD","name":"Poorly Differentiated Non-Small Cell Lung Cancer","score":50,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > NSCLCPD"},{"code":"SCLC","name":"Small Cell Lung Cancer","score":50,"mainType":"Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > LNET > SCLC"},{"code":"ALUCA","name":"Atypical Lung Carcinoid","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > LNET > ALUCA"},{"code":"BLCLC","name":"Basaloid Large Cell Carcinoma of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LCLC > BLCLC"},{"code":"CCLC","name":"Clear Cell Carcinoma of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LCLC > CCLC"},{"code":"CMPT","name":"Ciliated Muconodular Papillary Tumor of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > CMPT"},{"code":"CSCLC","name":"Combined Small Cell Lung Carcinoma","score":45,"mainType":"Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > CSCLC"},{"code":"GCLC","name":"Giant Cell Carcinoma of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LCLC > GCLC"},{"code":"IMTL","name":"Inflammatory Myofibroblastic Lung Tumor","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > IMTL"},{"code":"LAIS","name":"Lung Adenocarcinoma In Situ","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > LAIS"},{"code":"LAM","name":"Pulmonary Lymphangiomyomatosis","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > LAM"},{"code":"LCLC","name":"Large Cell Lung Carcinoma","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LCLC"},{"code":"LECLC","name":"Lymphoepithelioma-like Carcinoma of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LCLC > LECLC"},{"code":"LNET","name":"Lung Neuroendocrine Tumor","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > LNET"},{"code":"LUACC","name":"Adenoid Cystic Carcinoma of the Lung","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > SGTTL > LUACC"},{"code":"LUAD","name":"Lung Adenocarcinoma","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LUAD"},{"code":"LUAS","name":"Lung Adenosquamous Carcinoma","score":45,"mainType":"Non-Small Cell Lung Cancer","tissue":"Lung","hierarchy":"LUNG > NSCLC > LUAS"},{"code":"LUCA","name":"Lung C … (915 more chars) ▶ clickhouse_run_select_query { "query": " SELECT * FROM top_mutated_genes_in_cohort( preference = 'pan_cancer_tcga', top_n = 20 ) ORDER BY altered_samples DESC ", "max_rows": 100 } ◀ result {"rows":[{"hugo_gene_symbol":"TP53","altered_samples":3839,"profiled_samples":10443,"frequency_pct":36.8,"total_mutation_events":4225},{"hugo_gene_symbol":"TTN","altered_samples":3131,"profiled_samples":10443,"frequency_pct":30,"total_mutation_events":9629},{"hugo_gene_symbol":"MUC16","altered_samples":2014,"profiled_samples":10443,"frequency_pct":19.3,"total_mutation_events":4708},{"hugo_gene_symbol":"PIK3CA","altered_samples":1371,"profiled_samples":10443,"frequency_pct":13.1,"total_mutation_events":1619},{"hugo_gene_symbol":"CSMD3","altered_samples":1350,"profiled_samples":10443,"frequency_pct":12.9,"total_mutation_events":2304},{"hugo_gene_symbol":"RYR2","altered_samples":1320,"profiled_samples":10443,"frequency_pct":12.6,"total_mutation_events":2196},{"hugo_gene_symbol":"LRP1B","altered_samples":1297,"profiled_samples":10443,"frequency_pct":12.4,"total_mutation_events":2247},{"hugo_gene_symbol":"SYNE1","altered_samples":1251,"profiled_samples":10443,"frequency_pct":12,"total_mutation_events":2175},{"hugo_gene_symbol":"FLG","altered_samples":1170,"profiled_samples":10443,"frequency_pct":11.2,"total_mutation_events":1753},{"hugo_gene_symbol":"USH2A","altered_samples":1130,"profiled_samples":10443,"frequency_pct":10.8,"total_mutation_events":1824},{"hugo_gene_symbol":"PCLO","altered_samples":1087,"profiled_samples":10443,"frequency_pct":10.4,"total_mutation_events":1851},{"hugo_gene_symbol":"ZFHX4","altered_samples":1029,"profiled_samples":10443,"frequency_pct":9.9,"total_mutation_events":1610},{"hugo_gene_symbol":"DNAH5","altered_samples":1011,"profiled_samples":10443,"frequency_pct":9.7,"total_mutation_events":1839},{"hugo_gene_symbol":"KMT2D","altered_samples":972,"profiled_samples":10443,"frequency_pct":9.3,"total_mutation_events":1356},{"hugo_gene_symbol":"CSMD1","altered_samples":944,"profiled_samples":10443,"frequency_pct":9,"total_mutation_events":1493},{"hugo_gene_symbol":"FAT4","altered_samples":934,"profiled_samples":10443,"frequency_pct":8.9,"total_mutation_events":1617},{"hugo_gene_symbol":"SPTA1","altered_samples":928,"profiled_samples":10443,"frequency_pct":8.9,"total_mutation_events":1293},{"hugo_gene_symbol":"HMCN1","altered_samples":913,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1423},{"hugo_gene_symbol":"OBSCN","altered_samples":905,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1413},{"hugo_gene_symbol":"KMT2C","altered_samples":904,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1287}]} ▶ clickhouse_run_select_query { "query": " SELECT * FROM top_mutated_genes_in_cohort( preference = 'pan_cancer_tcga', top_n = 20 ) WHERE 1=1 -- This will get the pan-cancer view ORDER BY altered_samples DESC LIMIT 20 ", "max_rows": 100 } ◀ result {"rows":[{"hugo_gene_symbol":"TP53","altered_samples":3839,"profiled_samples":10443,"frequency_pct":36.8,"total_mutation_events":4225},{"hugo_gene_symbol":"TTN","altered_samples":3131,"profiled_samples":10443,"frequency_pct":30,"total_mutation_events":9629},{"hugo_gene_symbol":"MUC16","altered_samples":2014,"profiled_samples":10443,"frequency_pct":19.3,"total_mutation_events":4708},{"hugo_gene_symbol":"PIK3CA","altered_samples":1371,"profiled_samples":10443,"frequency_pct":13.1,"total_mutation_events":1619},{"hugo_gene_symbol":"CSMD3","altered_samples":1350,"profiled_samples":10443,"frequency_pct":12.9,"total_mutation_events":2304},{"hugo_gene_symbol":"RYR2","altered_samples":1320,"profiled_samples":10443,"frequency_pct":12.6,"total_mutation_events":2196},{"hugo_gene_symbol":"LRP1B","altered_samples":1297,"profiled_samples":10443,"frequency_pct":12.4,"total_mutation_events":2247},{"hugo_gene_symbol":"SYNE1","altered_samples":1251,"profiled_samples":10443,"frequency_pct":12,"total_mutation_events":2175},{"hugo_gene_symbol":"FLG","altered_samples":1170,"profiled_samples":10443,"frequency_pct":11.2,"total_mutation_events":1753},{"hugo_gene_symbol":"USH2A","altered_samples":1130,"profiled_samples":10443,"frequency_pct":10.8,"total_mutation_events":1824},{"hugo_gene_symbol":"PCLO","altered_samples":1087,"profiled_samples":10443,"frequency_pct":10.4,"total_mutation_events":1851},{"hugo_gene_symbol":"ZFHX4","altered_samples":1029,"profiled_samples":10443,"frequency_pct":9.9,"total_mutation_events":1610},{"hugo_gene_symbol":"DNAH5","altered_samples":1011,"profiled_samples":10443,"frequency_pct":9.7,"total_mutation_events":1839},{"hugo_gene_symbol":"KMT2D","altered_samples":972,"profiled_samples":10443,"frequency_pct":9.3,"total_mutation_events":1356},{"hugo_gene_symbol":"CSMD1","altered_samples":944,"profiled_samples":10443,"frequency_pct":9,"total_mutation_events":1493},{"hugo_gene_symbol":"FAT4","altered_samples":934,"profiled_samples":10443,"frequency_pct":8.9,"total_mutation_events":1617},{"hugo_gene_symbol":"SPTA1","altered_samples":928,"profiled_samples":10443,"frequency_pct":8.9,"total_mutation_events":1293},{"hugo_gene_symbol":"HMCN1","altered_samples":913,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1423},{"hugo_gene_symbol":"OBSCN","altered_samples":905,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1413},{"hugo_gene_symbol":"KMT2C","altered_samples":904,"profiled_samples":10443,"frequency_pct":8.7,"total_mutation_events":1287}]} ▶ clickhouse_run_select_query { "query": " -- Get mutation frequency by cancer type, focusing on lung cancers 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, ged.hugo_gene_symbol, 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.off_panel = 0 AND sct.cancer_type LIKE '%Lung%' GROUP BY sct.cancer_type, ged.hugo_gene_symbol ), profiled_samples_for_gene AS ( SELECT sample_unique_id, cancer_study_identifier, hugo_gene_symbol FROM mutation_panel_gene_coverage UNION ALL SELECT sample_unique_id, cancer_study_identifier, hugo_gene_symbol FROM mutation_wes_coverage ), profiled AS ( SELECT sct.cancer_type, p.hugo_gene_symbol, 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) WHERE sct.cancer_type LIKE '%Lung%' GROUP BY sct.cancer_type, p.hugo_gene_symbol ) SELECT a.cancer_type, a.hugo_gene_symbol, 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 ON a.cancer_type = p.cancer_type AND a.hugo_gene_symbol = p.hugo_gene_symbol WHERE p.profiled_samples >= 50 ORDER BY a.cancer_type, a.altered_samples DESC ", "max_rows": 100 } ◀ result {"error_message":"Query execution failed: HTTPDriver for https://dl96orhu96.us-east-1.aws.clickhouse.cloud:8443 received ClickHouse error code 1\n Code: 1. DB::Exception: Resolved identifier 'hugo_gene_symbol' in parent scope to expression 'hugo_gene_symbol' with correlated columns 'hugo_gene_symbol' (Enable 'allow_experimental_correlated_subqueries' setting to allow correlated subqueries execution). In scope profiled AS p. (UNSUPPORTED_METHOD) (version 26.4.1.2359 (official build))\n"} ▶ clickhouse_run_select_query { "query": " -- Find lung cancer studies SELECT DISTINCT cancer_study_identifier, type_of_cancer_id FROM cancer_study WHERE type_of_cancer_id IN ('LUAD', 'LUSC') ORDER BY cancer_study_identifier ", "max_rows": 50 } ◀ result {"rows":[]} ▶ clickhouse_run_select_query { "query": " SELECT DISTINCT cancer_study_identifier, name FROM cancer_study WHERE name LIKE '%lung%' OR name LIKE '%Lung%' OR cancer_study_identifier LIKE '%lun%' LIMIT 20 ", "max_rows": 50 } ◀ result {"rows":[{"cancer_study_identifier":"asclc_msk_2024","name":"Atypical Small Cell Lung Cancer (MSK, Cancer Discov 2024)"},{"cancer_study_identifier":"bm_nsclc_mskcc_2023","name":"Non-Small Cell Lung Cancer Brain Metastasis (MSK, Nat Commun 2023)"},{"cancer_study_identifier":"luad_tcga","name":"Lung Adenocarcinoma (TCGA, Firehose Legacy)"},{"cancer_study_identifier":"luad_mskcc_2015","name":"Lung Adenocarcinoma (MSK, Science 2015)"},{"cancer_study_identifier":"luad_broad","name":"Lung Adenocarcinoma (Broad, Cell 2012)"},{"cancer_study_identifier":"luad_mskcc_2020","name":"Lung Adenocarcinoma (MSK, J Thorac Oncol 2020)"},{"cancer_study_identifier":"luad_mskcc_2023_met_organotropism","name":"Lung Adenocarcinoma Met Organotropism (MSK, Cancer Cell 2023)"},{"cancer_study_identifier":"luad_oncosg_2020","name":"Lung Adenocarcinoma (OncoSG, Nat Genet 2020)"},{"cancer_study_identifier":"luad_msk_npjpo_2021","name":"Lung Adenocarcinoma (MSK, NPJ Precision Oncology 2021)"},{"cancer_study_identifier":"lusc_tcga","name":"Lung Squamous Cell Carcinoma (TCGA, Firehose Legacy)"},{"cancer_study_identifier":"luad_tsp","name":"Lung Adenocarcinoma (TSP, Nature 2008)"},{"cancer_study_identifier":"lung_msk_mind_2020","name":"Lung Adenocarcinoma (MSK Mind,Nature Cancer 2022)"},{"cancer_study_identifier":"nsclc_mskcc_2015","name":"Non-Small Cell Lung Cancer (MSK, Science 2015)"},{"cancer_study_identifier":"nsclc_ctdx_msk_2022","name":"Metastatic Non-Small Cell Lung Cancer (MSK, Nature Medicine 2022)"},{"cancer_study_identifier":"nsclc_tcga_broad_2016","name":"Pan-Lung Cancer (TCGA, Nat Genet 2016)"},{"cancer_study_identifier":"nsclc_unito_2016","name":"Non-Small Cell Lung Cancer (University of Turin, Lung Cancer 2017)"},{"cancer_study_identifier":"nsclc_tracerx_2017","name":"Non-Small Cell Lung Cancer (TRACERx, NEJM & Nature 2017)"},{"cancer_study_identifier":"nsclc_pd1_msk_2018","name":"Non-Small Cell Lung Cancer (MSK, J Clin Oncol 2018)"},{"cancer_study_identifier":"nsclc_mskcc_2018","name":"Non-Small Cell Lung Cancer (MSK, Cancer Cell 2018)"},{"cancer_study_identifier":"sclc_clcgp","name":"Small Cell Lung Cancer (CLCGP, Nat Genet 2012)"}]} ▶ clickhouse_run_select_query { "query": " -- Top mutated genes in LUAD TCGA SELECT 'LUAD (TCGA)' AS cohort, hugo_gene_symbol, altered_samples, profiled_samples, frequency_pct, total_mutation_events FROM top_mutated_genes_in_study(study = 'luad_tcga', top_n = 20) UNION ALL -- Top mutated genes in LUSC TCGA SELECT 'LUSC (TCGA)' AS cohort, hugo_gene_symbol, altered_samples, profiled_samples, frequency_pct, total_mutation_events FROM top_mutated_genes_in_study(study = 'lusc_tcga', top_n = 20) ORDER BY cohort, altered_samples DESC ", "max_rows": 100 } ◀ result {"rows":[{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"TTN","altered_samples":108,"profiled_samples":230,"frequency_pct":47,"total_mutation_events":271},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"TP53","altered_samples":106,"profiled_samples":230,"frequency_pct":46.1,"total_mutation_events":115},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"MUC16","altered_samples":91,"profiled_samples":230,"frequency_pct":39.6,"total_mutation_events":161},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"RYR2","altered_samples":82,"profiled_samples":230,"frequency_pct":35.7,"total_mutation_events":130},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"KRAS","altered_samples":75,"profiled_samples":230,"frequency_pct":32.6,"total_mutation_events":76},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"LRP1B","altered_samples":68,"profiled_samples":230,"frequency_pct":29.6,"total_mutation_events":115},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"USH2A","altered_samples":68,"profiled_samples":230,"frequency_pct":29.6,"total_mutation_events":99},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"ZFHX4","altered_samples":63,"profiled_samples":230,"frequency_pct":27.4,"total_mutation_events":94},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"FLG","altered_samples":62,"profiled_samples":230,"frequency_pct":27,"total_mutation_events":88},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"SPTA1","altered_samples":58,"profiled_samples":230,"frequency_pct":25.2,"total_mutation_events":71},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"MUC17","altered_samples":48,"profiled_samples":230,"frequency_pct":20.9,"total_mutation_events":71},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"XIRP2","altered_samples":47,"profiled_samples":230,"frequency_pct":20.4,"total_mutation_events":68},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"PCLO","altered_samples":46,"profiled_samples":230,"frequency_pct":20,"total_mutation_events":56},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"NAV3","altered_samples":45,"profiled_samples":230,"frequency_pct":19.6,"total_mutation_events":58},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"CSMD1","altered_samples":44,"profiled_samples":230,"frequency_pct":19.1,"total_mutation_events":58},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"FAT3","altered_samples":44,"profiled_samples":230,"frequency_pct":19.1,"total_mutation_events":57},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"KMT2C","altered_samples":42,"profiled_samples":230,"frequency_pct":18.3,"total_mutation_events":49},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"PCDH15","altered_samples":42,"profiled_samples":230,"frequency_pct":18.3,"total_mutation_events":59},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"ZNF536","altered_samples":42,"profiled_samples":230,"frequency_pct":18.3,"total_mutation_events":51},{"cohort":"LUAD (TCGA)","hugo_gene_symbol":"COL11A1","altered_samples":40,"profiled_samples":230,"frequency_pct":17.4,"total_mutation_events":46},{"cohort":"LUSC (TCGA)","hugo_gene_symbol":"TP53","altered_samples":145,"profiled_samples":178,"frequency_pct":81.5, … (2770 more chars) ▶ resolve_and_route { "studyIds": [ "luad_tcga", "lusc_tcga" ] } ◀ result {"success":true,"message":"Found 2 matching studies. Pick the best match (prefer TCGA → prefer PanCancer Atlas), use its metadata to call the appropriate navigation tool(s) and generate URLs immediately. Present other studies as alternatives.","data":{"totalCount":2,"studiesWithMetadata":[{"studyId":"luad_tcga","name":"Lung Adenocarcinoma (TCGA, Firehose Legacy)","sampleCount":586,"studyViewUrl":"https://www.cbioportal.org/study?id=luad_tcga","metadata":{"clinicalAttributeIds":["AGE","AJCC_CLINICAL_TUMOR_STAGE","AJCC_METASTASIS_CLINICAL_CM","AJCC_METASTASIS_PATHOLOGIC_PM","AJCC_NODES_CLINICAL_CN","AJCC_NODES_CLINICAL_CT","AJCC_NODES_PATHOLOGIC_PN","AJCC_PATHOLOGIC_TUMOR_STAGE","AJCC_STAGING_EDITION","AJCC_TUMOR_PATHOLOGIC_PT","ALK_ANALYSIS_TYPE","ALK_TRANSLOCATION_STATUS","ALK_TRANSLOCATION_VARIANT","CANCER_TYPE","CANCER_TYPE_DETAILED","CARBON_MONOXIDE_DIFFUSION_DLCO","DAYS_TO_COLLECTION","DAYS_TO_INITIAL_PATHOLOGIC_DIAGNOSIS","DAYS_TO_PATIENT_PROGRESSION_FREE","DAYS_TO_SPECIMEN_COLLECTION","DAYS_TO_TUMOR_PROGRESSION","DFS_MONTHS","DFS_STATUS","DISEASE_CODE","ECOG_SCORE","ETHNICITY","EXTRANODAL_INVOLVEMENT","FEV1_FVC_RATIO_POSTBRONCHOLIATOR","FEV1_FVC_RATIO_PREBRONCHOLIATOR","FEV1_PERCENT_REF_POSTBRONCHOLIATOR","FEV1_PERCENT_REF_PREBRONCHOLIATOR","FORM_COMPLETION_DATE","FRACTION_GENOME_ALTERED","HISTOLOGICAL_DIAGNOSIS","HISTORY_IMMUNOLOGICAL_DISEASE","HISTORY_IMMUNOLOGICAL_DISEASE_OTHER","HISTORY_NEOADJUVANT_TRTYN","HISTORY_OTHER_MALIGNANCY","HISTORY_RELEVANT_INFECTIOUS_DX","HIV_STATUS","ICD_10","ICD_O_3_HISTOLOGY","ICD_O_3_SITE","INFORMED_CONSENT_VERIFIED","INITIAL_PATHOLOGIC_DX_YEAR","IS_FFPE","KARNOFSKY_PERFORMANCE_SCORE","KRAS_GENE_ANALYSIS_INDICATOR","KRAS_MUTATION","KRAS_MUTATION_IDENTIFIED_TYPE","LATERALITY","LOCATION_LUNG_PARENCHYMA","LONGEST_DIMENSION","METHOD_OF_INITIAL_SAMPLE_PROCUREMENT","METHOD_OF_INITIAL_SAMPLE_PROCUREMENT_OTHER","METHOD_OF_SAMPLE_PROCUREMENT","MUTATION_COUNT","MUTATION_STATUS","MUTATION_TYPE","NEW_TUMOR_EVENT_AFTER_INITIAL_TREATMENT","NUMBER_OF_LYMPHNODES_POSITIVE_BY_IHC","OCT_EMBEDDED","ONCOTREE_CODE","OS_MONTHS","OS_STATUS","OTHER_METHOD_OF_SAMPLE_PROCUREMENT","OTHER_PATIENT_ID","OTHER_SAMPLE_ID","PATHOLOGY_REPORT_FILE_NAME","PATHOLOGY_REPORT_UUID","PERFORMANCE_STATUS_TIMING","PHARMACEUTICAL_TX_ADJUVANT","POS_LYMPH_NODE_LOCATION","PRIMARY_SITE_OTHER","PRIMARY_SITE_PATIENT","PROJECT_CODE","PROSPECTIVE_COLLECTION","PULMONARY_FUNCTION_TEST_INDICATOR","RACE","RADIATION_TREATMENT_ADJUVANT","RESIDUAL_TUMOR","RETROSPECTIVE_COLLECTION","SAMPLE_COUNT","SAMPLE_INITIAL_WEIGHT","SAMPLE_TYPE","SAMPLE_TYPE_ID","SEX","SHORTEST_DIMENSION","SMOKING_PACK_YEARS","SMOKING_YEAR_STARTED","SMOKING_YEAR_STOPPED","SOMATIC_STATUS","SPECIMEN_CURRENT_WEIGHT","SPECIMEN_FREEZING_METHOD","SPECIMEN_SECOND_LONGEST_DIMENSION","STAGE_OTHER","TARGETED_MOLECULAR_THERAPY","TIME_BETWEEN_CLAMPING_AND_FREEZING","TIME_BETWEEN_EXCISION_AND_FREEZING","TISSUE_SOURCE_SITE","TMB_NONSYNONYMOUS","TOBACCO_SMOKING_HISTORY_INDICATOR","TREATMENT_OUTCOME_FIRST_COURS … (4601 more chars) ▶ navigate_to_results_view { "studyIds": [ "luad_tcga", "lusc_tcga" ], "genes": [ "TP53", "TTN", "MUC16", "KRAS", "RYR2", "LRP1B", "USH2A", "ZFHX4", "FLG" ], "tab": "oncoprint" } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/results/oncoprint?cancer_study_list=luad_tcga%2Clusc_tcga&gene_list=TP53%0ATTN%0AMUC16%0AKRAS%0ARYR2%0ALRP1B%0AUSH2A%0AZFHX4%0AFLG&case_set_id=all","url":"https://www.cbioportal.org/results/oncoprint?cancer_study_list=luad_tcga%2Clusc_tcga&gene_list=TP53%0ATTN%0AMUC16%0AKRAS%0ARYR2%0ALRP1B%0AUSH2A%0AZFHX4%0AFLG&case_set_id=all","data":{"studyIds":["luad_tcga","lusc_tcga"],"studies":[{"studyId":"luad_tcga","name":"Lung Adenocarcinoma (TCGA, Firehose Legacy)","sampleCount":586},{"studyId":"lusc_tcga","name":"Lung Squamous Cell Carcinoma (TCGA, Firehose Legacy)","sampleCount":511}],"genes":["TP53","TTN","MUC16","KRAS","RYR2","LRP1B","USH2A","ZFHX4","FLG"],"caseSetId":"all","pageDescription":"Visual summary of alterations in queried genes across samples."}} ═ answer (success) ## Most Mutated Genes in Lung Cancer I queried TCGA data for lung adenocarcinoma (LUAD) and lung squamous cell carcinoma (LUSC). Here are the top findings: ### Lung Adenocarcinoma (LUAD; 230 samples) | Gene | Altered Samples | Frequency | Mutations | |------|-----------------|-----------|-----------| | **TTN** | 108/230 | **47.0%** | 271 | | **TP53** | 106/230 | **46.1%** | 115 | | **MUC16** | 91/230 | 39.6% | 161 | | **RYR2** | 82/230 | 35.7% | 130 | | **KRAS** | 75/230 | 32.6% | 76 | | **LRP1B** | 68/230 | 29.6% | 115 | | **USH2A** | 68/230 | 29.6% | 99 | | **ZFHX4** | 63/230 | 27.4% | 94 | | **FLG** | 62/230 | 27.0% | 88 | ### Lung Squamous Cell Carcinoma (LUSC; 178 samples) | Gene | Altered Samples | Frequency | Mutations | |------|-----------------|-----------|-----------| | **TP53** | 145/178 | **81.5%** | 152 | | **TTN** | 126/178 | **70.8%** | 306 | | **MUC16** | 77/178 | 43.3% | 143 | | **RYR2** | 77/178 | 43.3% | 121 | | **LRP1B** | 69/178 | 38.8% | 103 | | **USH2A** | 68/178 | 38.2% | 94 | | **ZFHX4** | 65/178 | 36.5% | 90 | ### Key Observations - **TP53** is the most clinically significant — highly mutated in LUSC (81.5%) but less so in LUAD (46.1%). LUSC has significantly higher TP53 mutation burden overall. - **TTN** is the most frequently altered overall (47.0% LUAD, 70.8% LUSC) but is a large, passenger-prone gene — not a known driver. - **KRAS** is a true driver gene, mutated in 32.6% of LUAD (a major LUAD-specific alteration). - **RYR2, LRP1B, USH2A, ZFHX4, FLG** are large genes with high background mutation rates; their elevated frequencies reflect tumor hypermutation rather than selective advantage. [Explore alterations in the top genes with the OncoPrint visualization](https://www.cbioportal.org/results/oncoprint?cancer_study_list=luad_tcga%2Clusc_tcga&gene_list=TP53%0ATTN%0AMUC16%0AKRAS%0ARYR2%0ALRP1B%0AUSH2A%0AZFHX4%0AFLG&case_set_id=all) — shows all mutation types, copy number, and clinical annotations side-by-side across 1,097 samples.