Q (sonnet): can you show me a study with longitudinal data and a patient that has multiple samples over time? ▶ list_guides {} ◀ result {"result":[{"uri":"cbioportal://mutation-frequency-guide","description":"Comprehensive guide for calculating gene mutation frequencies with gene-specific profiling denominators"},{"uri":"cbioportal://clinical-data-guide","description":"Guide for querying clinical data including patient vs sample level considerations"},{"uri":"cbioportal://sample-filtering-guide","description":"Guide for filtering samples and studies in cBioPortal queries"},{"uri":"cbioportal://common-pitfalls","description":"Guide to avoid common mistakes when querying cBioPortal data. If you already know which numbered pitfall applies, fetch just that section via read_guide(\"cbioportal://common-pitfalls#\") (e.g. #16) instead of the full guide"},{"uri":"cbioportal://treatment-guide","description":"Guide for querying treatment/clinical event data including drug agents, timelines, and linking to genomic data"},{"uri":"cbioportal://faq-guide","description":"General cBioPortal FAQ: history, how to cite, data types, reference genome, abbreviations, GISTIC thresholds, API access"},{"uri":"cbioportal://statistical-tests-guide","description":"Statistical test selection guide — decision matrix for choosing Fisher's exact, Wilcoxon, chi-squared, t-test, ANOVA, etc. based on data type and group count"},{"uri":"cbioportal://gene-expression-guide","description":"Gene expression / copy-number / methylation analysis. Covers genetic_alteration_derived, profile_type discovery, and the gene_pair_coexpression view for Spearman correlation between two genes"},{"uri":"cbioportal://external-resources-guide","description":"Guide for finding external linked resources such as imaging, pathology, Minerva, HTAN, or other resource_* table links before declaring data unavailable"},{"uri":"cbioportal://gene-resolution-guide","description":"Guide for resolving ambiguous gene symbols, aliases, gene families, and shorthand such as CD3 before querying expression or alteration data"},{"uri":"cbioportal://study-resolution-guide","description":"Guide for resolving requested studies, avoiding silent substitute cohorts, and redirecting to known external cBioPortal instances when data is not in this deployment"},{"uri":"cbioportal://germline-guide","description":"Guide for querying germline variant data — storage columns, study discovery, query patterns, and somatic vs germline considerations"},{"uri":"cbioportal://study-guide/{study_id}","description":"Dynamic study-specific guide - use get_study_guide(study_id) tool to generate"}]} ▶ read_guide { "uri": "cbioportal://sample-filtering-guide" } ▶ list_studies { "search": "longitudinal" } ◀ 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 … (7083 more chars) ◀ result {"result":[{"cancer_study_identifier":"lipo_msk_2026","name":"Liposarcoma (MSK, 2026)","type_of_cancer_id":"lipo","sample_count":277,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=lipo_msk_2026"}]} ▶ list_studies { "search": "MSK-IMPACT" } ▶ list_studies { "search": "glioma longitudinal" } ◀ result {"result":[{"cancer_study_identifier":"msk_impact_50k_2026","name":"MSK-IMPACT 50K Clinical Sequencing Cohort (MSK, Cancer Cell 2026)","type_of_cancer_id":"mixed","sample_count":54331,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=msk_impact_50k_2026"},{"cancer_study_identifier":"msk_ch_2023","name":"Cancer Therapy and Clonal Hematopoiesis (MSK, Blood Adv 2023)","type_of_cancer_id":"mixed","sample_count":42714,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=msk_ch_2023"},{"cancer_study_identifier":"msk_chord_2024","name":"MSK-CHORD (MSK, Nature 2024)","type_of_cancer_id":"mixed","sample_count":25040,"has_guide":true,"url":"https://www.cbioportal.org/study/summary?id=msk_chord_2024"},{"cancer_study_identifier":"msk_ch_2020","name":"Cancer Therapy and Clonal Hematopoiesis (MSK, Nat Genet 2020)","type_of_cancer_id":"mixed","sample_count":24146,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=msk_ch_2020"},{"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_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":"breast_msk_2026","name":"CCNE1 Amplifications in Breast Cancer (MSK, 2026)","type_of_cancer_id":"breast","sample_count":6318,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=breast_msk_2026"},{"cancer_study_identifier":"pancan_mimsi_msk_2024","name":"Mixed Tumors - MiMSI Cohort (MSK, Nat Commun 2024)","type_of_cancer_id":"mixed","sample_count":5033,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=pancan_mimsi_msk_2024"},{"cancer_study_identifier":"breast_msk_2025","name":"Breast Cancer (MSK, Nat Genet 2025)","type_of_cancer_id":"brca","sample_count":3879,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=breast_msk_2025"},{"cancer_study_identifier":"mycf_msk_2026","name":"MYC Family Amplifications in MSK-IMPACT Solid Tumors (MSK, 2026)","type_of_cancer_id":"mixed","sample_count":3442,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=mycf_msk_2026"},{"cancer_study_identifier":"heme_msk_impact_2022","name":"MSK-IMPACT Heme Tumors (MSK, 2022)","type_of_cancer_id":"mixed","sample_count":2383,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=heme_msk_impact_2022"},{"cancer_study_identifier":"pdac_msk_2024","name":"Pancreatic Adenocarcinoma (MSK, Nat Med 2024)","type_of_cancer_id":"pancreas","sample_count":2336,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=pdac_msk_2024"},{"cancer_study_identifier":"prostate_msk_2024","name":"Prostate Cancer (MSK, Clin Cancer Res 2024)","type_of_cancer_id" … (1829 more chars) ◀ result {"result":[]} ▶ get_study_guide { "study_id": "msk_chord_2024" } ◀ result # MSK-CHORD (MSK, Nature 2024) **Study ID:** `msk_chord_2024` ## Overview Targeted sequencing via MSK-IMPACT panels. Clinical annotations include some derived from natural language processing (denoted NLP). **Exactly five cancer types** (`CANCER_TYPE`, patients): Non-Small Cell Lung Cancer 7,809, Colorectal Cancer 5,543, Breast Cancer 5,368, Prostate Cancer 3,211, Pancreatic Cancer 3,109. There is **no melanoma** or any other cancer type; say so up front if asked, instead of substituting another type. **No therapy-response variable.** There is no RECIST, objective response, or best-response attribute or event. For treatment-outcome questions (e.g. immunotherapy response), say this first; the only proxies are `OS_MONTHS`/`OS_STATUS`, or NLP radiology progression events (`Diagnosis` events with `SUBTYPE = 'Progression'`, key `PROGRESSION` = Y/N/Indeterminate), in patients with `Treatment` events of the relevant `SUBTYPE` (e.g. `Immuno`: 3,341 patients). Hand off the comparison to cBioPortal group comparison / survival. **Nearly one sample per patient: 24,950 patients / 25,040 samples.** Only 90 patients have more than one sample, and all 90 have samples from two different cancer types (second primaries); only 26 have both a `Primary` and a `Metastasis` sample. There is no meaningful same-patient (paired) primary-vs-metastasis cohort. For "same patient" / paired questions, say this up front, then offer the **unpaired** comparison of all `Primary` vs `Metastasis` samples (`SAMPLE_TYPE`), labelled as unpaired. ```sql SELECT countIf(n > 1) AS multi_sample_patients, -- 90 countIf(has_p AND has_m) AS primary_and_met -- 26 FROM (SELECT patient_unique_id, count() AS n, has(groupArray(attribute_value), 'Primary') AS has_p, has(groupArray(attribute_value), 'Metastasis') AS has_m FROM clinical_data_derived WHERE cancer_study_identifier = 'msk_chord_2024' AND attribute_name = 'SAMPLE_TYPE' GROUP BY patient_unique_id); ``` ## Gene Panels This study uses multiple MSK-IMPACT panel versions: - **IMPACT341**: Earlier version, 341 genes - **IMPACT410**: 410 genes - **IMPACT468**: 468 genes - **IMPACT505**: Latest version, 505 genes **Important:** Different samples may have different gene coverage. Always use gene-specific denominators when calculating mutation frequencies. ## Clinical Attributes - Semantic Guide ### Cancer Classification | Attribute | Description | Values | |-----------|-------------|--------| | `CANCER_TYPE` | Broad cancer category | e.g., "Non-Small Cell Lung Cancer", "Breast Cancer" | | `CANCER_TYPE_DETAILED` | Specific subtype | e.g., "Lung Adenocarcinoma", "Invasive Ductal Carcinoma" | | `ONCOTREE_CODE` | OncoTree classification code | Standardized cancer type codes | ### Sample Information | Attribute | Description | Values | |-----------|-------------|--------| | `SAMPLE_TYPE` | Sample origin | Primary, Metastasis, Local Recurrence, Unknown | | `SAMPLE_CLASS` | Sample … (5439 more chars) ▶ list_studies { "search": "paired" } ▶ list_studies { "search": "metastatic prostate" } ◀ result {"result":[{"cancer_study_identifier":"paired_bladder_2022","name":"Bladder Cancer (MSK, Cell Reports 2022)","type_of_cancer_id":"bladder","sample_count":1659,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=paired_bladder_2022"},{"cancer_study_identifier":"dlbcl_duke_2017","name":"Diffuse Large B-Cell Lymphoma (Duke, Cell 2017)","type_of_cancer_id":"dlbclnos","sample_count":1001,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=dlbcl_duke_2017"},{"cancer_study_identifier":"gist_msk_2022","name":"Gastrointestinal Stromal Tumor (MSK, NPJ Precis Oncol 2023)","type_of_cancer_id":"gist","sample_count":499,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=gist_msk_2022"},{"cancer_study_identifier":"pan_pdo_wcm_2026","name":"Pan-Cancer Patient-Derived Organoids (WCM, 2026)","type_of_cancer_id":"mixed","sample_count":227,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=pan_pdo_wcm_2026"},{"cancer_study_identifier":"mm_broad","name":"Multiple Myeloma (Broad, Cancer Cell 2014)","type_of_cancer_id":"pcm","sample_count":211,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=mm_broad"},{"cancer_study_identifier":"mpn_cimr_2013","name":"Myeloproliferative Neoplasms (CIMR, NEJM 2013)","type_of_cancer_id":"mpn","sample_count":151,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=mpn_cimr_2013"},{"cancer_study_identifier":"escc_ucla_2014","name":"Esophageal Squamous Cell Carcinoma (UCLA, Nat Genet 2014)","type_of_cancer_id":"escc","sample_count":139,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=escc_ucla_2014"},{"cancer_study_identifier":"utuc_mskcc_2015","name":"Upper Tract Urothelial Cancer (MSK, Eur Urol 2015)","type_of_cancer_id":"utuc","sample_count":85,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=utuc_mskcc_2015"},{"cancer_study_identifier":"lusc_cptac_2021","name":"Lung Squamous Cell Carcinoma (CPTAC, Cell 2021)","type_of_cancer_id":"lusc","sample_count":80,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=lusc_cptac_2021"},{"cancer_study_identifier":"sclc_jhu","name":"Small Cell Lung Cancer (Johns Hopkins, Nat Genet 2012)","type_of_cancer_id":"sclc","sample_count":80,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=sclc_jhu"},{"cancer_study_identifier":"coadread_genentech","name":"Colorectal Adenocarcinoma (Genentech, Nature 2012)","type_of_cancer_id":"coadread","sample_count":74,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=coadread_genentech"},{"cancer_study_identifier":"sclc_cancercell_gardner_2017","name":"Small-Cell Lung Cancer (Multi-Institute, Cancer Cell 2017)","type_of_cancer_id":"sclc","sample_count":20,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=sclc_cancercell_gardner_2017"},{"cancer_study_identifier":"uccc_nih_2017","name":"Uterine Clear Cell Carcinoma (NIH, Cancer 2017)","type_of_cancer_id":"uccc … (574 more chars) ◀ result {"result":[{"cancer_study_identifier":"prad_su2c_2019","name":"Metastatic Prostate Adenocarcinoma (SU2C/PCF Dream Team, PNAS 2019)","type_of_cancer_id":"prad","sample_count":444,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prad_su2c_2019"},{"cancer_study_identifier":"prad_su2c_2015","name":"Metastatic Prostate Cancer (SU2C/PCF Dream Team, Cell 2015)","type_of_cancer_id":"prad","sample_count":150,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prad_su2c_2015"},{"cancer_study_identifier":"mpcproject_broad_2021","name":"The Metastatic Prostate Cancer Project (Provisional, June 2021)","type_of_cancer_id":"prostate","sample_count":123,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=mpcproject_broad_2021"},{"cancer_study_identifier":"prad_mich","name":"Metastatic Prostate Adenocarcinoma (MCTP, Nature 2012)","type_of_cancer_id":"prad","sample_count":121,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prad_mich"},{"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":"prad_mcspc_mskcc_2020","name":"Metastatic castration-sensitive prostate cancer (MSK, Clin Cancer Res 2020)","type_of_cancer_id":"prad","sample_count":424,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=prad_mcspc_mskcc_2020"},{"cancer_study_identifier":"nepc_wcm_2016","name":"Neuroendocrine Prostate Cancer (Multi-Institute, Nat Med 2016)","type_of_cancer_id":"prad","sample_count":114,"has_guide":false,"url":"https://www.cbioportal.org/study/summary?id=nepc_wcm_2016"}]} ▶ clickhouse_run_select_query { "query": " SELECT patient_unique_id, count() AS n_samples FROM clinical_data_derived WHERE cancer_study_identifier = 'paired_bladder_2022' AND attribute_name = 'SAMPLE_TYPE' GROUP BY patient_unique_id ORDER BY n_samples DESC LIMIT 10 " } ◀ result {"rows":[{"patient_unique_id":"paired_bladder_2022_P-0033799","n_samples":6},{"patient_unique_id":"paired_bladder_2022_P-0034906","n_samples":6},{"patient_unique_id":"paired_bladder_2022_P-0004226","n_samples":5},{"patient_unique_id":"paired_bladder_2022_P-0044554","n_samples":5},{"patient_unique_id":"paired_bladder_2022_P-0061430","n_samples":5},{"patient_unique_id":"paired_bladder_2022_P-0049866","n_samples":4},{"patient_unique_id":"paired_bladder_2022_P-0024340","n_samples":4},{"patient_unique_id":"paired_bladder_2022_P-0048601","n_samples":4},{"patient_unique_id":"paired_bladder_2022_P-0010079","n_samples":4},{"patient_unique_id":"paired_bladder_2022_P-0046580","n_samples":4}]} ▶ clickhouse_run_select_query { "query": " SELECT sample_unique_id, attribute_name, attribute_value FROM clinical_data_derived WHERE cancer_study_identifier = 'paired_bladder_2022' AND patient_unique_id = 'paired_bladder_2022_P-0033799' AND attribute_name IN ('SAMPLE_TYPE','SAMPLE_CLASS','CANCER_TYPE_DETAILED','AGE_AT_SAMPLE_COLLECTION','TUMOR_STAGE','SAMPLE_COLLECTION_DATE_DAYS') ORDER BY sample_unique_id, attribute_name " } ◀ result {"rows":[{"sample_unique_id":"paired_bladder_2022_P-0033799-T01-IM6","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T01-IM6","attribute_name":"SAMPLE_CLASS","attribute_value":"Tumor"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T01-IM6","attribute_name":"SAMPLE_TYPE","attribute_value":"Primary"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T02-IM6","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T02-IM6","attribute_name":"SAMPLE_CLASS","attribute_value":"Tumor"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T02-IM6","attribute_name":"SAMPLE_TYPE","attribute_value":"Metastasis"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T03-XS1","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T03-XS1","attribute_name":"SAMPLE_CLASS","attribute_value":"cfDNA"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T03-XS1","attribute_name":"SAMPLE_TYPE","attribute_value":"Unknown"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T04-IM6","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T04-IM6","attribute_name":"SAMPLE_CLASS","attribute_value":"Tumor"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T04-IM6","attribute_name":"SAMPLE_TYPE","attribute_value":"Primary"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T05-XS1","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T05-XS1","attribute_name":"SAMPLE_CLASS","attribute_value":"cfDNA"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T05-XS1","attribute_name":"SAMPLE_TYPE","attribute_value":"Unknown"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T10-IM6","attribute_name":"CANCER_TYPE_DETAILED","attribute_value":"Bladder Urothelial Carcinoma"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T10-IM6","attribute_name":"SAMPLE_CLASS","attribute_value":"Tumor"},{"sample_unique_id":"paired_bladder_2022_P-0033799-T10-IM6","attribute_name":"SAMPLE_TYPE","attribute_value":"Metastasis"}]} ▶ resolve_and_route { "studyIds": [ "paired_bladder_2022" ] } ◀ result {"success":true,"message":"Found 1 study. Use the metadata to call the appropriate navigation tool(s).","data":{"totalCount":1,"studiesWithMetadata":[{"studyId":"paired_bladder_2022","name":"Bladder Cancer (MSK, Cell Reports 2022)","sampleCount":1659,"studyViewUrl":"https://www.cbioportal.org/study?id=paired_bladder_2022","metadata":{"clinicalAttributeIds":["AGE_AT_DX","AGE_AT_SEQ_REPORTED_YEARS","CANCER_TYPE","CANCER_TYPE_DETAILED","ETHNICITY","FRACTION_GENOME_ALTERED","GENE_PANEL","INTRAVESICAL_TREATMENT","METASTATIC_SITE","MET_LOCATION","MSI_SCORE","MSI_TYPE","MUTATION_COUNT","ONCOTREE_CODE","OS_MONTHS","OS_STATUS","PED_IND","PRIMARY_SITE","RACE","RELIGION","SAMPLE_CLASS","SAMPLE_COUNT","SAMPLE_COVERAGE","SAMPLE_TYPE","SEX","SMOKER","SOMATIC_STATUS","SPECIMEN_STAGE","SYSTEMIC_TREATMENT","TMB_NONSYNONYMOUS","TUMOR_PURITY","TX_BET_PRI_MET_SAMPLE_COLLECTION"],"molecularProfileIds":["paired_bladder_2022_cna","paired_bladder_2022_mutations","paired_bladder_2022_structural_variants"],"availableComparisonTabs":["overlap","clinical","survival","alterations","mutations"]}}]}} ▶ navigate_to_study_view { "studyIds": [ "paired_bladder_2022" ] } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/study/summary?id=paired_bladder_2022","url":"https://www.cbioportal.org/study/summary?id=paired_bladder_2022","data":{"studyIds":["paired_bladder_2022"],"studies":[{"studyId":"paired_bladder_2022","name":"Bladder Cancer (MSK, Cell Reports 2022)","sampleCount":1659}],"tab":"summary","hasFilters":false,"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_patient_view { "studyIds": [ "paired_bladder_2022" ], "patientId": "P-0033799" } ◀ result {"success":true,"message":"Navigating to https://www.cbioportal.org/patient/summary?studyId=paired_bladder_2022&caseId=P-0033799","url":"https://www.cbioportal.org/patient/summary?studyId=paired_bladder_2022&caseId=P-0033799","data":{"patientUrls":[{"studyId":"paired_bladder_2022","studyName":"Bladder Cancer (MSK, Cell Reports 2022)","url":"https://www.cbioportal.org/patient/summary?studyId=paired_bladder_2022&caseId=P-0033799"}],"patientId":"P-0033799","tab":"summary","hasMultipleUrls":false,"pageDescription":"Patient overview including patient history timeline (if available) and tables of mutations, structural variants, and copy number alterations."}} ═ answer (success) ## Study with longitudinal, multi-sample data **Bladder Cancer (MSK, Cell Reports 2022)** — `paired_bladder_2022`, 1,659 samples, designed specifically as a paired/serial cohort combining tissue and cfDNA sampling across disease course. **Example patient with multiple samples over time: P-0033799** (6 samples) | Sample | Class | Type | |---|---|---| | T01-IM6 | Tumor | Primary | | T02-IM6 | Tumor | Metastasis | | T03-XS1 | cfDNA | Unknown (liquid biopsy) | | T04-IM6 | Tumor | Primary | | T05-XS1 | cfDNA | Unknown (liquid biopsy) | | T10-IM6 | Tumor | Metastasis | This patient has both tissue biopsies (primary and metastatic) and cfDNA/liquid-biopsy timepoints, illustrating serial sampling across the disease course. [View Study Overview](https://www.cbioportal.org/study/summary?id=paired_bladder_2022) — cohort summary with clinical/genomic charts. [View Patient P-0033799](https://www.cbioportal.org/patient/summary?studyId=paired_bladder_2022&caseId=P-0033799) — patient timeline with all 6 samples and their mutation/CNA/structural variant profiles.