Q (sonnet): Which studies have RNA expression for renal cancer? ▶ list_studies { "search": "renal" } ▶ list_studies { "search": "kidney" } ◀ result {"result":[{"cancer_study_identifier":"ccrcc_sjuh_2023","name":"Renal Cell Carcinoma (St. James, Clin Cancer Res 2023)","type_of_cancer_id":"ccrcc","sample_count":943,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=ccrcc_sjuh_2023"},{"cancer_study_identifier":"kirc_tcga","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Firehose Legacy)","type_of_cancer_id":"ccrcc","sample_count":538,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga"},{"cancer_study_identifier":"ccrcc_tcga_gdc","name":"Renal Clear Cell Carcinoma (TCGA GDC, 2025)","type_of_cancer_id":"ccrcc","sample_count":537,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=ccrcc_tcga_gdc"},{"cancer_study_identifier":"kirc_tcga_pan_can_atlas_2018","name":"Kidney Renal Clear Cell Carcinoma (TCGA, PanCancer Atlas)","type_of_cancer_id":"ccrcc","sample_count":512,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga_pan_can_atlas_2018"},{"cancer_study_identifier":"kirc_tcga_pub","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Nature 2013)","type_of_cancer_id":"ccrcc","sample_count":446,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga_pub"},{"cancer_study_identifier":"rcc_cptac_gdc","name":"Renal Cell Carcinoma (CPTAC GDC, 2025)","type_of_cancer_id":"rcc","sample_count":354,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=rcc_cptac_gdc"},{"cancer_study_identifier":"kirp_tcga","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, Firehose Legacy)","type_of_cancer_id":"prcc","sample_count":293,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirp_tcga"},{"cancer_study_identifier":"prcc_tcga_gdc","name":"Papillary Renal Cell Carcinoma (TCGA GDC, 2025)","type_of_cancer_id":"prcc","sample_count":292,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prcc_tcga_gdc"},{"cancer_study_identifier":"kirp_tcga_pan_can_atlas_2018","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, PanCancer Atlas)","type_of_cancer_id":"prcc","sample_count":283,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirp_tcga_pan_can_atlas_2018"},{"cancer_study_identifier":"rcc_iatlas_immotion150_2018","name":"Renal Cell Carcinoma (IMmotion150 Clinical Trial, Nat Med. 2018) - iAtlas Harmonized","type_of_cancer_id":"rcc","sample_count":263,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=rcc_iatlas_immotion150_2018"},{"cancer_study_identifier":"nccrcc_genentech_2014","name":"Renal Non-Clear Cell Carcinoma (Genentech, Nat Genet 2014)","type_of_cancer_id":"nccrcc","sample_count":146,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=nccrcc_genentech_2014"},{"cancer_study_identifier":"ccrcc_utokyo_2013","name":"Renal Clear Cell Carcinoma (UTokyo, Nat Genet 2013)","type_of_cancer_id":"ccrcc","sample_count":106,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=ccrcc_utokyo_2013"},{"cancer_ … (1719 more chars) ◀ result {"result":[{"cancer_study_identifier":"kirc_tcga","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Firehose Legacy)","type_of_cancer_id":"ccrcc","sample_count":538,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga"},{"cancer_study_identifier":"kirc_tcga_pan_can_atlas_2018","name":"Kidney Renal Clear Cell Carcinoma (TCGA, PanCancer Atlas)","type_of_cancer_id":"ccrcc","sample_count":512,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga_pan_can_atlas_2018"},{"cancer_study_identifier":"kirc_tcga_pub","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Nature 2013)","type_of_cancer_id":"ccrcc","sample_count":446,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_tcga_pub"},{"cancer_study_identifier":"kirp_tcga","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, Firehose Legacy)","type_of_cancer_id":"prcc","sample_count":293,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirp_tcga"},{"cancer_study_identifier":"kirp_tcga_pan_can_atlas_2018","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, PanCancer Atlas)","type_of_cancer_id":"prcc","sample_count":283,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirp_tcga_pan_can_atlas_2018"},{"cancer_study_identifier":"kich_tcga","name":"Kidney Chromophobe (TCGA, Firehose Legacy)","type_of_cancer_id":"chrcc","sample_count":113,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kich_tcga"},{"cancer_study_identifier":"kirc_bgi","name":"Kidney Renal Clear Cell Carcinoma (BGI, Nat Genet 2012)","type_of_cancer_id":"ccrcc","sample_count":98,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kirc_bgi"},{"cancer_study_identifier":"ccrcc_irc_2014","name":"Kidney Renal Clear Cell Carcinoma (IRC, Nat Genet 2014)","type_of_cancer_id":"ccrcc","sample_count":79,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=ccrcc_irc_2014"},{"cancer_study_identifier":"kich_tcga_pub","name":"Kidney Chromophobe (TCGA, Cancer Cell 2014)","type_of_cancer_id":"chrcc","sample_count":66,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kich_tcga_pub"},{"cancer_study_identifier":"kich_tcga_pan_can_atlas_2018","name":"Kidney Chromophobe (TCGA, PanCancer Atlas)","type_of_cancer_id":"chrcc","sample_count":65,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=kich_tcga_pan_can_atlas_2018"}]} ▶ read_guide { "uri": "cbioportal://sample-filtering-guide" } ◀ result # Sample and Study Filtering Guide ## Overview Proper filtering is essential for meaningful cBioPortal analysis. This guide covers filtering by studies, sample types, and other criteria. ## Study-Level Filtering ### 1. Always Filter by Study Every query should specify a study to ensure consistent results: ```sql -- Always include study filtering SELECT * FROM your_table WHERE cancer_study_identifier = 'your_study_id' -- Additional filters... ``` ### 2. Find Available Studies ```sql -- Discover available studies SELECT cancer_study_identifier, name, description, type_of_cancer_id FROM cancer_study ORDER BY cancer_study_identifier; ``` ### 3. Study Information ```sql -- Get detailed study information SELECT cs.cancer_study_identifier, cs.name as study_name, cs.description, cs.sample_count, COUNT(DISTINCT p.internal_id) as patient_count FROM cancer_study cs LEFT JOIN patient p ON cs.cancer_study_id = p.cancer_study_id WHERE cs.cancer_study_identifier = 'your_study_id' GROUP BY cs.cancer_study_identifier, cs.name, cs.description, cs.sample_count; ``` ### 4. Find Studies by Available Data Types Use this when the user asks *"which studies have mutation and copy-number data for X"*, *"studies with expression for Y"*, *"is there any imaging data"*, or any *"studies with Z data"* question. `cancer_study` has one precomputed sample count per data type — filter on them. No join and no schema exploration needed. These are the same counts as the portal's study list and its "Data type" filter. **Canonical query — studies with ALL requested data types for a cancer type:** ```sql SELECT cancer_study_identifier, name, sample_count, mutation_sample_count, cna_sample_count FROM cancer_study WHERE type_of_cancer_id = 'luad' -- ← OncoTree code from search_oncotree AND mutation_sample_count > 0 -- ← one condition per required data type AND cna_sample_count > 0 ORDER BY sample_count DESC; ``` **Data type → column** (a count of 0 means the study doesn't have that data): | Data type in the user's question | Column (portal "Data type" filter label) | |---|---| | samples in the study | `sample_count` | | mutation / mutations | `mutation_sample_count` ("Mutations") | | copy-number / CNA / amplification / deletion | `cna_sample_count` ("CNA") | | structural variant / fusion | `structural_variant_sample_count` | | RNA / mRNA / gene expression (any platform) | `mrna_expression_sample_count` — use this for "which studies have expression data" | | specifically the portal's "RNA-Seq" filter | `rna_seq_sample_count` ("RNA-Seq") — counts only the `_rna_seq_v2_mrna` list; 0 for many GDC and iAtlas studies that do have RNA-Seq | | specifically the portal's "RNA (microarray)" filter | `mrna_microarray_sample_count` ("RNA (microarray)") — counts only the `_mrna` list | | microRNA | `mirna_sample_count` ("miRNA") | | protein / RPPA | `rppa_sample_count` ("RPPA") | | mas … (7866 more chars) ▶ clickhouse_run_select_query { "query": "SELECT cancer_study_identifier, name, sample_count, mrna_expression_sample_count FROM cancer_study WHERE cancer_study_identifier IN ( 'ccrcc_sjuh_2023','kirc_tcga','ccrcc_tcga_gdc','kirc_tcga_pan_can_atlas_2018','kirc_tcga_pub', 'rcc_cptac_gdc','kirp_tcga','prcc_tcga_gdc','kirp_tcga_pan_can_atlas_2018','rcc_iatlas_immotion150_2018', 'nccrcc_genentech_2014','ccrcc_utokyo_2013','kirc_bgi','ccrcc_irc_2014','chrcc_tcga_gdc','kich_tcga_pub', 'urcc_mskcc_2016','ccrcc_dfci_2019','ccrcc_iatlas_choueiri_2016','kich_tcga','kich_tcga_pan_can_atlas_2018' ) ORDER BY mrna_expression_sample_count DESC" } ◀ result {"rows":[{"cancer_study_identifier":"kirc_tcga","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Firehose Legacy)","sample_count":538,"mrna_expression_sample_count":535},{"cancer_study_identifier":"ccrcc_tcga_gdc","name":"Renal Clear Cell Carcinoma (TCGA GDC, 2025)","sample_count":537,"mrna_expression_sample_count":534},{"cancer_study_identifier":"kirc_tcga_pan_can_atlas_2018","name":"Kidney Renal Clear Cell Carcinoma (TCGA, PanCancer Atlas)","sample_count":512,"mrna_expression_sample_count":510},{"cancer_study_identifier":"kirc_tcga_pub","name":"Kidney Renal Clear Cell Carcinoma (TCGA, Nature 2013)","sample_count":446,"mrna_expression_sample_count":426},{"cancer_study_identifier":"rcc_cptac_gdc","name":"Renal Cell Carcinoma (CPTAC GDC, 2025)","sample_count":354,"mrna_expression_sample_count":353},{"cancer_study_identifier":"kirp_tcga","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, Firehose Legacy)","sample_count":293,"mrna_expression_sample_count":291},{"cancer_study_identifier":"prcc_tcga_gdc","name":"Papillary Renal Cell Carcinoma (TCGA GDC, 2025)","sample_count":292,"mrna_expression_sample_count":291},{"cancer_study_identifier":"kirp_tcga_pan_can_atlas_2018","name":"Kidney Renal Papillary Cell Carcinoma (TCGA, PanCancer Atlas)","sample_count":283,"mrna_expression_sample_count":283},{"cancer_study_identifier":"rcc_iatlas_immotion150_2018","name":"Renal Cell Carcinoma (IMmotion150 Clinical Trial, Nat Med. 2018) - iAtlas Harmonized","sample_count":263,"mrna_expression_sample_count":263},{"cancer_study_identifier":"kich_tcga","name":"Kidney Chromophobe (TCGA, Firehose Legacy)","sample_count":113,"mrna_expression_sample_count":66},{"cancer_study_identifier":"kich_tcga_pub","name":"Kidney Chromophobe (TCGA, Cancer Cell 2014)","sample_count":66,"mrna_expression_sample_count":66},{"cancer_study_identifier":"chrcc_tcga_gdc","name":"Chromophobe Renal Cell Carcinoma (TCGA GDC, 2025)","sample_count":66,"mrna_expression_sample_count":66},{"cancer_study_identifier":"kich_tcga_pan_can_atlas_2018","name":"Kidney Chromophobe (TCGA, PanCancer Atlas)","sample_count":65,"mrna_expression_sample_count":65},{"cancer_study_identifier":"ccrcc_iatlas_choueiri_2016","name":"Metastatic Renal Clear Cell Carcinoma (Phase 1 Biomarker Trial, Clin Cancer Res. 2016) - iAtlas Harmonized","sample_count":16,"mrna_expression_sample_count":16},{"cancer_study_identifier":"ccrcc_irc_2014","name":"Kidney Renal Clear Cell Carcinoma (IRC, Nat Genet 2014)","sample_count":79,"mrna_expression_sample_count":0},{"cancer_study_identifier":"ccrcc_utokyo_2013","name":"Renal Clear Cell Carcinoma (UTokyo, Nat Genet 2013)","sample_count":106,"mrna_expression_sample_count":0},{"cancer_study_identifier":"ccrcc_dfci_2019","name":"Clear Cell Renal Cell Carcinoma (DFCI, Science 2019)","sample_count":35,"mrna_expression_sample_count":0},{"cancer_study_identifier":"kirc_bgi","name":"Kidney Renal Clear Cell Carcinoma (BGI, Nat Genet 2012)","sample_count":98,"mrna_expression_sample_count":0},{"cance … (487 more chars) ▶ resolve_and_route { "studyIds": [ "kirc_tcga_pan_can_atlas_2018", "kirp_tcga_pan_can_atlas_2018", "kich_tcga_pan_can_atlas_2018" ] } ◀ result {"success":true,"message":"Found 3 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":3,"studiesWithMetadata":[{"studyId":"kirc_tcga_pan_can_atlas_2018","name":"Kidney Renal Clear Cell Carcinoma (TCGA, PanCancer Atlas)","sampleCount":512,"studyViewUrl":"https://www.cbioportal.org/study?id=kirc_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":["kirc_tcga_pan_can_atlas_2018_gistic","kirc_tcga_pan_can_atlas_2018_log2CNA","kirc_tcga_pan_can_atlas_2018_mutations","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_Zscores","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_Zscores","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_ref_normal_Zscores","kirc_tcga_pan_can_atlas_2018_rppa","kirc_tcga_pan_can_atlas_2018_rppa_Zscores","kirc_tcga_pan_can_atlas_2018_structural_variants"],"genericAssayProfiles":["kirc_tcga_pan_can_atlas_2018_armlevel_cna","kirc_tcga_pan_can_atlas_2018_genetic_ancestry","kirc_tcga_pan_can_atlas_2018_methylation_hm27_hm450_merge","kirc_tcga_pan_can_atlas_2018_methylation_hm450"],"heatmapProfileIds":["kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_Zscores","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_Zscores","kirc_tcga_pan_can_atlas_2018_rna_seq_v2_mrna_median_all_sample_ref_normal_Zscores","kirc_tcga_pan_can_atlas_2018_rppa_Zscores"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations","mrna","protein","generic_assay_armlevel_cna","generic_assay_genetic_ancestry","generic_assay_methylation"]}},{"studyId":"kirp_tcga_pan_can_atlas_2018","name":"Kidn … (5180 more chars) ═ answer (success) The three PanCancer Atlas TCGA renal cohorts (clear cell, papillary, chromophobe) all confirm RNA-Seq V2 mRNA expression profiles are available. You can browse each cohort directly: - [Kidney Renal Clear Cell Carcinoma – TCGA PanCancer Atlas](https://www.cbioportal.org/study?id=kirc_tcga_pan_can_atlas_2018) (512 samples, 510 with expression) - [Kidney Renal Papillary Cell Carcinoma – TCGA PanCancer Atlas](https://www.cbioportal.org/study?id=kirp_tcga_pan_can_atlas_2018) (283 samples, all with expression) - [Kidney Chromophobe – TCGA PanCancer Atlas](https://www.cbioportal.org/study?id=kich_tcga_pan_can_atlas_2018) (65 samples, all with expression) These are generally the preferred, best-curated versions since they include harmonized clinical annotation, RNA-Seq Z-scores, RPPA protein, methylation, and copy-number data alongside mutations — useful if you want to correlate expression with other alteration types.