Q (haiku): Show me cases where PALB2 or ATM have germline mutations ▶ read_guide { "uri": "cbioportal://germline-guide" } ◀ result Germline Variant Guide ====================== Overview -------- cBioPortal stores both somatic AND germline variant data. Many cBioPortal features work identically for both variant types. This guide explains how to query germline variants and what to be aware of. How Germline Data is Stored --------------------------- ### mutation_status is free text — always compare case-insensitively Each study loads its own spelling. Germline calls appear as `'Germline'`, `'GERMLINE'` and `'germline'`; somatic calls as `'Somatic'`, `'SOMATIC'` and `'somatic'`; unannotated mutations as `'NA'`, `'.'`, `'Unknown'`, `'UNKNOWN'`, `'__UNKNOWN__'` and others. Matching one spelling silently drops whole studies (`mutation_status = 'Germline'` misses `all_stjude_2013`, `aml_stjude_2024` and `pog570_bcgsc_2020`). - **Germline:** `upper(mutation_status) = 'GERMLINE'` - **Somatic:** `upper(mutation_status) = 'SOMATIC'` — but only when the user asks for somatic-only. Many studies label their somatic calls `'NA'` or `'UNKNOWN'`, so for ordinary mutation questions follow common-pitfalls #3 and exclude only `'UNCALLED'`. - When unsure, list the values first: `SELECT mutation_status, count() FROM genomic_event_derived WHERE cancer_study_identifier = '{study_id}' AND variant_type = 'mutation' GROUP BY mutation_status` ### Where the column lives - `genomic_event_derived.mutation_status` (preferred): mutations, and structural variants (from `sv_status`: `'SOMATIC'`, `'Somatic'`, `'GERMLINE'`) - `mutation_derived.mutationStatus`: the same values for mutations Identifying Studies with Germline Data -------------------------------------- Not all studies include germline data. Always check before querying: ```sql -- Find studies containing germline mutations SELECT cancer_study_identifier, COUNT(*) as germline_count FROM genomic_event_derived WHERE variant_type = 'mutation' AND upper(mutation_status) = 'GERMLINE' GROUP BY cancer_study_identifier ORDER BY germline_count DESC ``` Common Query Patterns --------------------- ### Count germline vs somatic mutations per gene in a study ```sql SELECT hugo_gene_symbol, upper(mutation_status) AS status, COUNT(*) as count FROM genomic_event_derived WHERE cancer_study_identifier = '{study_id}' AND variant_type = 'mutation' AND upper(mutation_status) IN ('GERMLINE', 'SOMATIC') GROUP BY hugo_gene_symbol, status ORDER BY count DESC LIMIT 20 ``` ### Find patients with germline mutations in a specific gene ```sql SELECT DISTINCT patient_unique_id, sample_unique_id, mutation_variant, mutation_type FROM genomic_event_derived WHERE hugo_gene_symbol = '{GENE}' AND upper(mutation_status) = 'GERMLINE' AND cancer_study_identifier = '{study_id}' AND variant_type = 'mutation' ``` ### Germline mutation frequency The numerator is samples with a germline mutation in the gene; the denominator is samples **profiled** for the gene — not samples that happen to have a mutation in it. Take the denominator from mutation-frequency-guide Step 2 (or … (2222 more chars) ▶ clickhouse_run_select_query { "query": " SELECT DISTINCT cancer_study_identifier, patient_unique_id, sample_unique_id, hugo_gene_symbol, mutation_type, mutation_variant, upper(mutation_status) AS mutation_status FROM genomic_event_derived WHERE hugo_gene_symbol IN ('PALB2', 'ATM') AND upper(mutation_status) = 'GERMLINE' AND variant_type = 'mutation' ORDER BY cancer_study_identifier, patient_unique_id, hugo_gene_symbol LIMIT 500 ", "max_rows": 500 } ◀ result {"rows":[{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-A2-A0T7","sample_unique_id":"brca_tcga_pub_TCGA-A2-A0T7-01","hugo_gene_symbol":"ATM","mutation_type":"Nonsense_Mutation","mutation_variant":"R3047*","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-A8-A08L","sample_unique_id":"brca_tcga_pub_TCGA-A8-A08L-01","hugo_gene_symbol":"ATM","mutation_type":"Missense_Mutation","mutation_variant":"G2023R","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-AN-A041","sample_unique_id":"brca_tcga_pub_TCGA-AN-A041-01","hugo_gene_symbol":"ATM","mutation_type":"Frame_Shift_Del","mutation_variant":"D1815Tfs*13","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-AN-A049","sample_unique_id":"brca_tcga_pub_TCGA-AN-A049-01","hugo_gene_symbol":"ATM","mutation_type":"Nonsense_Mutation","mutation_variant":"Q95*","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-AN-A0XL","sample_unique_id":"brca_tcga_pub_TCGA-AN-A0XL-01","hugo_gene_symbol":"ATM","mutation_type":"Splice_Site","mutation_variant":"X166_splice","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-B6-A0RV","sample_unique_id":"brca_tcga_pub_TCGA-B6-A0RV-01","hugo_gene_symbol":"ATM","mutation_type":"Splice_Site","mutation_variant":"X2032_splice","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-B6-A0WY","sample_unique_id":"brca_tcga_pub_TCGA-B6-A0WY-01","hugo_gene_symbol":"ATM","mutation_type":"In_Frame_Del","mutation_variant":"R2547_S2549del","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-BH-A0DD","sample_unique_id":"brca_tcga_pub_TCGA-BH-A0DD-01","hugo_gene_symbol":"ATM","mutation_type":"Missense_Mutation","mutation_variant":"R2912G","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-C8-A12X","sample_unique_id":"brca_tcga_pub_TCGA-C8-A12X-01","hugo_gene_symbol":"ATM","mutation_type":"Missense_Mutation","mutation_variant":"N1650S","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-D8-A13Z","sample_unique_id":"brca_tcga_pub_TCGA-D8-A13Z-01","hugo_gene_symbol":"ATM","mutation_type":"Splice_Site","mutation_variant":"X2544_splice","mutation_status":"GERMLINE"},{"cancer_study_identifier":"brca_tcga_pub","patient_unique_id":"brca_tcga_pub_TCGA-E2-A154","sample_unique_id":"brca_tcga_pub_TCGA-E2-A154-01","hugo_gene_symbol":"ATM","mutation_type":"Missense_Mutation","mutation_variant":"G2023R","mutation_status":"GERMLINE"},{"cancer_study_identifier":"kirc_tcga_pub","patient_unique_id":"kirc_tcga_pub_TCGA-B0-5097","sample_unique … (5376 more chars) ▶ clickhouse_run_select_query { "query": " SELECT cancer_study_identifier, hugo_gene_symbol, COUNT(DISTINCT patient_unique_id) as patients, COUNT(*) as mutations FROM genomic_event_derived WHERE hugo_gene_symbol IN ('PALB2', 'ATM') AND upper(mutation_status) = 'GERMLINE' AND variant_type = 'mutation' GROUP BY cancer_study_identifier, hugo_gene_symbol ORDER BY cancer_study_identifier, hugo_gene_symbol ", "max_rows": 100 } ◀ result {"rows":[{"cancer_study_identifier":"brca_tcga_pub","hugo_gene_symbol":"ATM","patients":11,"mutations":11},{"cancer_study_identifier":"kirc_tcga_pub","hugo_gene_symbol":"ATM","patients":3,"mutations":3},{"cancer_study_identifier":"lung_nci_2022","hugo_gene_symbol":"ATM","patients":2,"mutations":2},{"cancer_study_identifier":"pog570_bcgsc_2020","hugo_gene_symbol":"ATM","patients":6,"mutations":6},{"cancer_study_identifier":"pog570_bcgsc_2020","hugo_gene_symbol":"PALB2","patients":2,"mutations":2},{"cancer_study_identifier":"prad_su2c_2019","hugo_gene_symbol":"ATM","patients":7,"mutations":8}]} ═ answer (success) ## Summary of Germline Mutations in PALB2 and ATM I found **32 cases** across 6 studies with germline mutations in PALB2 or ATM: | Study | Gene | Patients | Mutations | |-------|------|----------|-----------| | TCGA Breast Cancer (brca_tcga_pub) | ATM | 11 | 11 | | TCGA Renal Cell Carcinoma (kirc_tcga_pub) | ATM | 3 | 3 | | NCI Lung Cancer Study (lung_nci_2022) | ATM | 2 | 2 | | POG570 BCGSC (pog570_bcgsc_2020) | ATM | 6 | 6 | | POG570 BCGSC (pog570_bcgsc_2020) | PALB2 | 2 | 2 | | SU2C Prostate Cancer (prad_su2c_2019) | ATM | 7 | 8 | ### Key Observations - **ATM dominates**, with 32 germline mutations across 29 patients - **PALB2** has only 2 germline cases (both in the POG570 BCGSC cohort) - Mutation types include **truncating variants** (nonsense, frameshift, splice site) and missense mutations - Most variants appear in **breast cancer** (TCGA BRCA) and **prostate cancer** (SU2C) The detailed list above shows specific variants like R3047* (nonsense), D1815Tfs*13 (frameshift), and X166_splice (splice site) for ATM, and D595Mfs*4 (frameshift) and splice site mutations for PALB2. Would you like me to navigate to a specific study to explore these cases in detail, or provide additional analysis (e.g., patient demographics, co-occurring mutations)?