Q (sonnet): In MSS colorectal cancer, what is the frequency of BRAF oncogenic mutations (as defined by OncoKB)? Use the 2017 MSK study for this. Can you give me a table of all these mutations, with frequency, count and denominator? ▶ read_guide { "uri": "cbioportal://mutation-frequency-guide" } ◀ 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) ▶ read_guide { "uri": "cbioportal://clinical-data-guide" } ▶ list_studies { "search": "MSK 2017" } ◀ 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) ◀ result {"result":[{"cancer_study_identifier":"msk_impact_2017","name":"MSK-IMPACT Clinical Sequencing Cohort (MSK, Nat Med 2017)","type_of_cancer_id":"mixed","sample_count":10945,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=msk_impact_2017"},{"cancer_study_identifier":"crc_msk_2017","name":"Metastatic Colorectal Cancer (MSK, Cancer Cell 2018)","type_of_cancer_id":"coadread","sample_count":1134,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_msk_2017"},{"cancer_study_identifier":"lung_msk_2017","name":"Non-Small Cell Cancer (MSK, Cancer Discov 2017)","type_of_cancer_id":"luad","sample_count":915,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=lung_msk_2017"},{"cancer_study_identifier":"prad_mskcc_2017","name":"Prostate Cancer (MSK, JCO Precis Oncol 2017)","type_of_cancer_id":"prad","sample_count":504,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prad_mskcc_2017"},{"cancer_study_identifier":"egc_msk_2017","name":"Metastatic Esophagogastric Cancer (MSK, Cancer Discovery 2017)","type_of_cancer_id":"egc","sample_count":341,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=egc_msk_2017"},{"cancer_study_identifier":"brca_msk_erbb2_2026","name":"HER2-Low and HER2-Null Metastatic Breast Cancers treated with T-DXd (MSK, Clinical Cancer Research 2026)","type_of_cancer_id":"breast","sample_count":272,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=brca_msk_erbb2_2026"},{"cancer_study_identifier":"mel_iatlas_riaz_nivolumab_2017","name":"Melanoma (MSK, Cell 2017) - iAtlas Harmonized","type_of_cancer_id":"mel","sample_count":107,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=mel_iatlas_riaz_nivolumab_2017"},{"cancer_study_identifier":"blca_nmibc_2017","name":"Nonmuscle Invasive Bladder Cancer (MSK Eur Urol 2017)","type_of_cancer_id":"blca","sample_count":105,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=blca_nmibc_2017"},{"cancer_study_identifier":"skcm_vanderbilt_mskcc_2015","name":"Metastatic Melanoma (MSK, JCO Precis Oncol 2017)","type_of_cancer_id":"skcm","sample_count":66,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=skcm_vanderbilt_mskcc_2015"},{"cancer_study_identifier":"odg_msk_2017","name":"Anaplastic Oligodendroglioma and Anaplastic Oligoastrocytoma (MSK, Neuro Oncol 2017)","type_of_cancer_id":"difg","sample_count":22,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=odg_msk_2017"}]} ▶ list_studies { "search": "colorectal MSK" } ▶ clickhouse_list_table_columns { "table": "genomic_event_derived" } ◀ result {"result":[{"cancer_study_identifier":"msk_met_2021","name":"MSK MetTropism (MSK, Cell 2021)","type_of_cancer_id":"mixed","sample_count":25775,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=msk_met_2021"},{"cancer_study_identifier":"crc_msk_2026","name":"Colorectal Adenocarcinoma (MSK, 2026)","type_of_cancer_id":"read","sample_count":7237,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_msk_2026"},{"cancer_study_identifier":"crc_eo_2020","name":"Colorectal Cancer (MSK, JNCI 2021)","type_of_cancer_id":"bowel","sample_count":1516,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_eo_2020"},{"cancer_study_identifier":"crc_msk_2017","name":"Metastatic Colorectal Cancer (MSK, Cancer Cell 2018)","type_of_cancer_id":"coadread","sample_count":1134,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_msk_2017"},{"cancer_study_identifier":"crc_apc_impact_2020","name":"Colorectal Cancer (MSK, Gastroenterology 2020)","type_of_cancer_id":"coadread","sample_count":471,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_apc_impact_2020"},{"cancer_study_identifier":"bowel_colitis_msk_2022","name":"Colorectal Adenocarcinoma (MSK, Nat Commun 2022)","type_of_cancer_id":"bowel","sample_count":179,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=bowel_colitis_msk_2022"},{"cancer_study_identifier":"coadread_mskcc","name":"Colorectal Adenocarcinoma Triplets (MSK, Genome Biol 2014)","type_of_cancer_id":"coadread","sample_count":138,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=coadread_mskcc"},{"cancer_study_identifier":"crc_hta8_htan_2024","name":"Colorectal Cancer (HTAN MSK, Nature 2025)","type_of_cancer_id":"coadread","sample_count":83,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_hta8_htan_2024"},{"cancer_study_identifier":"crc_nigerian_2020","name":"Disparities in metastatic colorectal cancer between Africans and Americans (MSK, 2020)","type_of_cancer_id":"coadread","sample_count":64,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_nigerian_2020"},{"cancer_study_identifier":"rectal_radiation_msk_2024","name":"Colorectal Cancer Radiation (MSK, 2024)","type_of_cancer_id":"read","sample_count":48,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=rectal_radiation_msk_2024"},{"cancer_study_identifier":"crc_dd_2022","name":"Colorectal Cancer (MSK, JCO Precis Oncol 2022)","type_of_cancer_id":"coadread","sample_count":47,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=crc_dd_2022"},{"cancer_study_identifier":"coadread_mskresistance_2022","name":"Colorectal Cancer (MSK, Cancer Discovery 2022)","type_of_cancer_id":"coadread","sample_count":22,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=coadread_mskresistance_2022"}]} ◀ 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 driver_filter, driver_filter_annotation FROM genomic_event_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND hugo_gene_symbol = 'BRAF' LIMIT 50" } ◀ result {"rows":[{}]} ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_name FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND (upper(attribute_name) LIKE '%MSI%' OR upper(attribute_name) LIKE '%MSS%' OR upper(attribute_name) LIKE '%STABIL%')" } ◀ result {"rows":[{"attribute_name":"MSI_SCORE"},{"attribute_name":"MSI_STATUS"}]} ▶ clickhouse_run_select_query { "query": "SELECT driver_filter, count() FROM genomic_event_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND variant_type='mutation' GROUP BY driver_filter" } ◀ result {"rows":[{"count()":14656}]} ▶ clickhouse_run_select_query { "query": "SELECT DISTINCT attribute_value FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND attribute_name = 'MSI_STATUS'" } ◀ result {"rows":[{},{"attribute_value":"MSS"},{"attribute_value":"MSI"},{"attribute_value":"Inconclusive"}]} ▶ clickhouse_run_select_query { "query": "SELECT driver_filter, driver_filter_annotation, driver_tiers_filter, driver_tiers_filter_annotation, count() FROM genomic_event_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND variant_type='mutation' GROUP BY driver_filter, driver_filter_annotation, driver_tiers_filter, driver_tiers_filter_annotation" } ◀ result {"rows":[{"count()":14656}]} ▶ clickhouse_run_select_query { "query": " WITH mss_samples AS ( SELECT DISTINCT sample_unique_id FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND attribute_name = 'MSI_STATUS' AND attribute_value = 'MSS' ) SELECT mutation_variant, mutation_type, count() AS n_mutation_events, count(DISTINCT sample_unique_id) AS n_samples FROM genomic_event_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND hugo_gene_symbol = 'BRAF' AND variant_type = 'mutation' AND mutation_status != 'UNCALLED' AND off_panel = 0 AND sample_unique_id IN (SELECT sample_unique_id FROM mss_samples) GROUP BY mutation_variant, mutation_type ORDER BY n_samples DESC " } ◀ result {"rows":[{"mutation_variant":"V600E","mutation_type":"Missense_Mutation","n_mutation_events":46,"n_samples":46},{"mutation_variant":"D594G","mutation_type":"Missense_Mutation","n_mutation_events":7,"n_samples":7},{"mutation_variant":"D594N","mutation_type":"Missense_Mutation","n_mutation_events":3,"n_samples":3},{"mutation_variant":"T599delinsIP","mutation_type":"In_Frame_Ins","n_mutation_events":2,"n_samples":2},{"mutation_variant":"N581S","mutation_type":"Missense_Mutation","n_mutation_events":2,"n_samples":2},{"mutation_variant":"G469E","mutation_type":"Missense_Mutation","n_mutation_events":2,"n_samples":2},{"mutation_variant":"G469A","mutation_type":"Missense_Mutation","n_mutation_events":2,"n_samples":2},{"mutation_variant":"H574Y","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"N581I","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"P277Hfs*2","mutation_type":"Frame_Shift_Del","n_mutation_events":1,"n_samples":1},{"mutation_variant":"G466V","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"L312P","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"G596R","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"K601E","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"Q356K","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"Y633C","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"A404Cfs*9","mutation_type":"Frame_Shift_Ins","n_mutation_events":1,"n_samples":1},{"mutation_variant":"R354*","mutation_type":"Nonsense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"F294L","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"E501K","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"D594V","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"S602Y","mutation_type":"Missense_Mutation","n_mutation_events":1,"n_samples":1},{"mutation_variant":"D284Efs*4","mutation_type":"Frame_Shift_Ins","n_mutation_events":1,"n_samples":1}]} ▶ clickhouse_run_select_query { "query": " SELECT count(DISTINCT sample_unique_id) AS n_mss_samples FROM clinical_data_derived WHERE cancer_study_identifier = 'crc_msk_2017' AND attribute_name = 'MSI_STATUS' AND attribute_value = 'MSS' " } ◀ result {"rows":[{"n_mss_samples":701}]} ▶ resolve_and_route { "studyIds": [ "crc_msk_2017" ] } ◀ result {"success":true,"message":"Found 1 study. Use the metadata to call the appropriate navigation tool(s).","data":{"totalCount":1,"studiesWithMetadata":[{"studyId":"crc_msk_2017","name":"Metastatic Colorectal Cancer (MSK, Cancer Cell 2018)","sampleCount":1134,"studyViewUrl":"https://www.cbioportal.org/study?id=crc_msk_2017","metadata":{"clinicalAttributeIds":["AGE_AT_DIAGNOSIS","CANCER_TYPE","CANCER_TYPE_DETAILED","CHEMO_EXP_SEQ_SPECIMEN","FIRST_SITE_OF_METS","FRACTION_GENOME_ALTERED","GENE_PANEL","MCRC_TYPE","METASTASECTOMY","METASTASECTOMY_SITE","METASTASES_SITE_FIRST_BONE","METASTASES_SITE_FIRST_BRAIN","METASTASES_SITE_FIRST_GYN","METASTASES_SITE_FIRST_LIVER","METASTASES_SITE_FIRST_LN","METASTASES_SITE_FIRST_LUNG","METASTASES_SITE_FIRST_PELVIS","METASTASES_SITE_FIRST_PERITONEUM_OMENTUM_ABDOMEN","METASTATIC_BIOPSY_SITE","MOLECULAR_SUBTYPE","MSI_SCORE","MSI_STATUS","MUTATION_COUNT","ONCOTREE_CODE","OS_MONTHS","OS_MONTHS_ADDITIONAL","OS_STATUS","OTHER_SITES_OF_METS","PATIENT_GRADE","PRIMARY_SITE","PRIMARY_TUMOR_LOCATION","SAMPLE_COUNT","SAMPLE_TYPE","SEX","SOMATIC_STATUS","SPECIMEN_TYPE","STAGE_AT_DIAGNOSIS","TIME_FROM_MET_DX_SEQUENCING","TIME_TO_METASTASIS_MONTHS","TMB_NONSYNONYMOUS","TUMOR_SAMPLE_HISTOLOGY","VITAL_STATUS"],"molecularProfileIds":["crc_msk_2017_gistic","crc_msk_2017_mutations","crc_msk_2017_structural_variants"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations"]}}]}} ▶ navigate_to_study_view { "studyIds": [ "crc_msk_2017" ], "filterJson": { "clinicalDataFilters": [ { "attributeId": "MSI_STATUS", "values": [ { "value": "MSS" } ] } ], "geneFilters": [ { "molecularProfileIds": [ "crc_msk_2017_mutations" ], "geneQueries": [ [ { "hugoGeneSymbol": "BRAF" } ] ] } ] } } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/study/summary?id=crc_msk_2017#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_STATUS%22%2C%22values%22%3A%5B%7B%22value%22%3A%22MSS%22%7D%5D%7D%5D%2C%22geneFilters%22%3A%5B%7B%22geneQueries%22%3A%5B%5B%7B%22hugoGeneSymbol%22%3A%22BRAF%22%7D%5D%5D%2C%22molecularProfileIds%22%3A%5B%22crc_msk_2017_mutations%22%5D%7D%5D%7D","url":"https://www.cbioportal.org/study/summary?id=crc_msk_2017#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_STATUS%22%2C%22values%22%3A%5B%7B%22value%22%3A%22MSS%22%7D%5D%7D%5D%2C%22geneFilters%22%3A%5B%7B%22geneQueries%22%3A%5B%5B%7B%22hugoGeneSymbol%22%3A%22BRAF%22%7D%5D%5D%2C%22molecularProfileIds%22%3A%5B%22crc_msk_2017_mutations%22%5D%7D%5D%7D","data":{"studyIds":["crc_msk_2017"],"studies":[{"studyId":"crc_msk_2017","name":"Metastatic Colorectal Cancer (MSK, Cancer Cell 2018)","sampleCount":1134}],"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": [ "crc_msk_2017" ], "genes": [ "BRAF" ], "tab": "mutations", "studyViewFilter": { "clinicalDataFilters": [ { "attributeId": "MSI_STATUS", "values": [ { "value": "MSS" } ] } ] } } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/results/mutations?session_id=6ab432fec2115c492d88496f","url":"https://www.cbioportal.org/results/mutations?session_id=6ab432fec2115c492d88496f","data":{"studyIds":["crc_msk_2017"],"studies":[{"studyId":"crc_msk_2017","name":"Metastatic Colorectal Cancer (MSK, Cancer Cell 2018)","sampleCount":1134}],"genes":["BRAF"],"filteredSampleCount":701,"caseSetId":"-1","sessionId":"6ab432fec2115c492d88496f","studyViewUrl":"https://www.cbioportal.org/study?id=crc_msk_2017#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_STATUS%22%2C%22values%22%3A%5B%7B%22value%22%3A%22MSS%22%7D%5D%7D%5D%7D","pageDescription":"Detailed mutation table with lollipop plot showing mutation positions, types, and frequencies for queried genes."}} ═ answer (success) ## Links [Study View: BRAF mutations in MSS samples — crc_msk_2017](https://www.cbioportal.org/study/summary?id=crc_msk_2017#filterJson=%7B%22clinicalDataFilters%22%3A%5B%7B%22attributeId%22%3A%22MSI_STATUS%22%2C%22values%22%3A%5B%7B%22value%22%3A%22MSS%22%7D%5D%7D%5D%2C%22geneFilters%22%3A%5B%7B%22geneQueries%22%3A%5B%5B%7B%22hugoGeneSymbol%22%3A%22BRAF%22%7D%5D%5D%2C%22molecularProfileIds%22%3A%5B%22crc_msk_2017_mutations%22%5D%7D%5D%7D) — cohort overview, 1,134 total samples in study, 701 MSS. [Mutations Tab: BRAF in MSS samples — crc_msk_2017](https://www.cbioportal.org/results/mutations?session_id=6ab432fec2115c492d88496f) — 701 filtered (MSS) samples; the lollipop/mutation table here can show OncoKB oncogenicity badges live (this portal annotates via the live OncoKB API in the UI, which is not present in the static database I queried). **Bottom line:** I can give you the full raw BRAF mutation table from the database (above), but I cannot certify which of these are "OncoKB oncogenic" without the live annotation — the underlying database's OncoKB driver-annotation columns are empty for this study. Please use the Mutations tab link above to see cBioPortal's live OncoKB oncogenic/likely-oncogenic badges per variant, which will let you filter this table down precisely to the OncoKB-oncogenic subset.