This section of the documentation lists the functions that allow
users to access the cBioPortal API. The main representation of the API can
be obtained from the cBioPortal function. The supporting functions listed
here give access to specific parts of the API and allow the user to explore
the API with individual calls. Many of the functions here are listed for
documentation purposes and are recommended for advanced usage only. Users
should only need to use the cBioPortalData main function to obtain data.
Usage
cBioPortal(
hostname = "www.cbioportal.org",
protocol = "https",
api. = "/api/v2/api-docs",
token = character()
)
getStudies(api, buildReport = FALSE)
clinicalData(api, studyId = NA_character_)
molecularProfiles(
api,
studyId = NA_character_,
projection = c("SUMMARY", "ID", "DETAILED", "META")
)
fetchData(
api,
studyId,
molecularProfileIds = NA_character_,
entrezGeneIds = NULL,
sampleIds = NULL,
genericAssayStableIds = NULL
)
structuralVariantData(
api,
molecularProfileIds = NA_character_,
entrezGeneIds = NULL,
sampleIds = NULL
)
genericAssayMeta(
api,
molecularProfileId,
projection = c("SUMMARY", "ID", "DETAILED", "META")
)
genericAssayData(
api,
molecularProfileIds = NA_character_,
genericAssayStableIds = NULL,
sampleIds = NULL,
sampleListId = NULL
)
mutationData(
api,
molecularProfileIds = NA_character_,
entrezGeneIds = NULL,
sampleIds = NULL
)
molecularData(
api,
molecularProfileIds = NA_character_,
entrezGeneIds = NULL,
sampleIds = NULL
)
copyNumberData(
api,
molecularProfileIds = NA_character_,
entrezGeneIds = NULL,
sampleIds = NULL,
sampleListId = NULL,
discreteCopyNumberEventType = c("HOMDEL_AND_AMP", "HOMDEL", "AMP", "GAIN", "HETLOSS",
"DIPLOID", "ALL"),
projection = c("SUMMARY", "ID", "DETAILED", "META")
)
searchOps(api, keyword)
samplesInSampleLists(api, sampleListIds = NA_character_)
sampleLists(api, studyId = NA_character_)
allSamples(api, studyId = NA_character_)
getSampleInfo(
api,
studyId = NA_character_,
sampleListIds = NULL,
projection = c("SUMMARY", "ID", "DETAILED", "META")
)
genePanels(api)
getGenePanel(api, genePanelId = NA_character_)
genePanelMolecular(
api,
molecularProfileId = NA_character_,
sampleListId = NULL,
sampleIds = NULL
)
getGenePanelMolecular(api, molecularProfileIds = NA_character_, sampleIds)
geneTable(api, pageSize = 1000, pageNumber = 0, ...)
queryGeneTable(
api,
by = c("entrezGeneId", "hugoGeneSymbol"),
genes = NA_character_,
genePanelId = NA_character_
)
getDataByGenes(
api,
studyId = NA_character_,
genes = NA_character_,
genePanelId = NA_character_,
by = c("entrezGeneId", "hugoGeneSymbol"),
molecularProfileIds = NULL,
sampleListId = NULL,
sampleIds = NULL,
...
)Arguments
- hostname
character(1)The internet location of the service (default: 'www.cbioportal.org')- protocol
character(1)The internet protocol used to access the hostname (default: 'https')- api.
character(1)The directory location of the API protocol within the hostname (default: '/api/v2/api-docs')- token
character(1)The Authorization Bearer token e.g., "63eba81c-2591-4e15-9d1c-fb6e8e51e35d" or a path to text file.- api
An API object of class
cBioPortalfrom thecBioPortalfunction- buildReport
logical(1)Indicates whether to append the build information to thegetStudies()table (default FALSE)- studyId
character(1)Indicates the "studyId" as taken fromgetStudies- projection
character(1)(default: "SUMMARY") Specify the projection type for data retrieval for details see API documentation- molecularProfileIds
character()A vector of molecular profile IDs. InfetchData, all non-'GENERIC_ASSAY' profiles in the study are used when not specified.- entrezGeneIds
numeric()A vector indicating entrez gene IDs- sampleIds
character()Sample identifiers- genericAssayStableIds
character()or namedlist()Generic assay entity identifiers, e.g., "1p_status" for arm-level copy number or probe IDs for methylation. Use a named list (bymolecularProfileIds) to provide different identifiers per profile. WhenNULL(default), all entities in the profile are downloaded. SeegenericAssayMeta.- molecularProfileId
character(1)Indicates a molecular profile ID- sampleListId
character(1)A sample list identifier as obtained fromsampleLists()- discreteCopyNumberEventType
character(1)The copy number event type to filter on. Must be one of "HOMDEL_AND_AMP" (default), "HOMDEL", "AMP", "GAIN", "HETLOSS", "DIPLOID", or "ALL"- keyword
character(1)Keyword or pattern for searching through available operations- sampleListIds
character()A vector of 'sampleListId' as obtained fromsampleLists- genePanelId
character(1)Identifies the gene panel, as obtained from thegenePanelsfunction- pageSize
numeric(1)The number of rows in the table to return- pageNumber
numeric(1)The pagination page number- ...
Additional arguments to lower level API functions
- by
character(1)Either 'entrezGeneId' or 'hugoGeneSymbol' for row metadata (default: 'entrezGeneId')- genes
character()Either Entrez gene identifiers or Hugo gene symbols. When included, the 'by' argument indicates the type of identifier provided and 'genePanelId' is ignored. Preference is given to Entrez IDs due to faster query responses.
Value
cBioPortal: An API object of class 'cBioPortal'
cBioPortalData: A data object of class 'MultiAssayExperiment'
API Metadata
getStudies: Obtain a table of studies and associated metadata and optionally include a
buildReportstatus (default FALSE) for each study. When enabled, the 'api_build' and 'pack_build' columns will be added to the table and will show ifMultiAssayExperimentobjects can be generated for that particular study identifier (studyId). The 'api_build' column corresponds to datasets obtained withcBioPortalDataand the 'pack_build' column corresponds to datsets loaded viacBioDataPack. Note thatresourceCountsis removed from the returned table for simplicity. To get the resource counts manually, useapi$getStudyUsingGET().
searchOps - Search through API operations with a keyword
sampleLists - obtain all
sampleListIdsfor a particularstudyId
allSamples - obtain all samples within a particular
studyId
genePanels - Show all available gene panels
geneTable - Get a table of all genes by 'entrezGeneId' and 'hugoGeneSymbol'
queryGeneTable - Get a table for only the
genesorgenePanelIdof interest. Gene inputs are identified with thebyargument
Molecular Profiles
molecularProfiles - Produce a molecular profiles dataset for a given study identifier ('studyId')
Molecular Data
fetchData - A convenience function to download mutation, copy number, structural variant, generic assay, and other molecular data with
molecularProfileIds,entrezGeneIds, andsampleIds. Each profile is routed to the appropriate function based on itsmolecularAlterationType. WhenmolecularProfileIdsis not specified, all molecular profiles in the study are downloaded except 'GENERIC_ASSAY' profiles, which can be very large and are not indexed by gene; these must be requested explicitly.
mutationData - Produce a dataset of mutation data using
molecularProfileId,entrezGeneIds, andsampleIds
molecularData - Produce a dataset of molecular profile data based on
molecularProfileId,entrezGeneIds, andsampleIds
Structural Variant Data
structuralVariantData - Produce a dataset of structural variants (e.g., gene fusions) based on
molecularProfileIds,entrezGeneIds, and optionallysampleIds. Each record describes two sites (site1*andsite2*columns) rather than a single gene. Note that the underlying endpoint (fetchStructuralVariantsUsingPOST) is only listed in the 'internal' group of the OpenAPI v3 specification (https://www.cbioportal.org/api/v3/api-docs/internal) and not in the v2 specification used bycBioPortal(); it is therefore called directly.
Generic Assay Data
genericAssayMeta - Obtain the generic assay entity identifiers (
stableId) and, withprojection = "SUMMARY", their annotations for a 'GENERIC_ASSAY' molecular profile
genericAssayData - Produce a dataset of generic assay data (e.g., arm-level copy number, PanCancer Atlas methylation, phosphoprotein, treatment response) based on
molecularProfileIds,genericAssayStableIds, and eithersampleIdsorsampleListId. Thevaluecolumn is returned as character because generic assay data may be either categorical or numeric.
Copy Number Data
copyNumberData - Produce a dataset of copy number data based on
molecularProfileId,sampleListId,discreteCopyNumberEventType, andprojection
Sample Data
samplesInSampleLists - get all samples associated with a 'sampleListId'
getSampleInfo - Obtain sample metadata for a particular
studyIdorsampleListId
Gene Panels
getGenePanels - Obtain the gene panel for a particular 'genePanelId'
genePanelMolecular - get gene panel data for a particular
molecularProfileIdand either a vector ofsampleListIdorsampleId
getGenePanelMolecular - get gene panel data for multiple
molecularProfileIds and a vector ofsampleIds
Genes
getDataByGenes - Download data for a number of genes within
molecularProfileIdindicators, optionally asampleListIdcan be provided.
Examples
cbio <- cBioPortal()
getStudies(api = cbio)
#> # A tibble: 556 × 13
#> name description publicStudy pmid citation groups status importDate
#> <chr> <chr> <lgl> <chr> <chr> <chr> <int> <chr>
#> 1 Adrenocortic… "TCGA Adre… TRUE NA NA "PUBL… 1 2026-01-0…
#> 2 Adenoid Cyst… "Whole-exo… TRUE 2368… Ho et a… "ACYC… 1 2026-01-0…
#> 3 Adenoid Cyst… "Targeted … TRUE 2441… Ross et… "ACYC… 1 2026-01-0…
#> 4 Adenoid Cyst… "Whole-gen… TRUE 2686… Rettig … "ACYC… 1 2026-01-0…
#> 5 Adenoid Cyst… "WGS of 21… TRUE 2663… Mitani … "ACYC… 1 2026-01-0…
#> 6 Adenoid Cyst… "Whole-gen… TRUE 2682… Drier e… "ACYC" 1 2026-01-0…
#> 7 Adenoid Cyst… "Whole exo… TRUE 2377… Stephen… "ACYC… 1 2026-01-0…
#> 8 Acute Lympho… "Comprehen… TRUE 2573… Anderss… "PUBL… 1 2026-01-0…
#> 9 Ampullary Ca… "Exome seq… TRUE 2680… Gingras… "PUBL… 1 2026-01-0…
#> 10 Hypodiploid … "Whole gen… TRUE 2333… Holmfel… "" 1 2026-01-0…
#> # ℹ 546 more rows
#> # ℹ 5 more variables: allSampleCount <int>, readPermission <lgl>,
#> # studyId <chr>, cancerTypeId <chr>, referenceGenome <chr>
clinicalData(cbio, "acc_tcga")
#> # A tibble: 92 × 85
#> patientId AGE AJCC_PATHOLOGIC_TUMOR_STAGE ATYPICAL_MITOTIC_FIGURES
#> <chr> <chr> <chr> <chr>
#> 1 TCGA-OR-A5J1 58 Stage II Atypical Mitotic Figures Abse…
#> 2 TCGA-OR-A5J2 44 Stage IV Atypical Mitotic Figures Pres…
#> 3 TCGA-OR-A5J3 23 Stage III Atypical Mitotic Figures Abse…
#> 4 TCGA-OR-A5J4 23 Stage IV Atypical Mitotic Figures Abse…
#> 5 TCGA-OR-A5J5 30 Stage III Atypical Mitotic Figures Pres…
#> 6 TCGA-OR-A5J6 29 Stage II Atypical Mitotic Figures Abse…
#> 7 TCGA-OR-A5J7 30 Stage III Atypical Mitotic Figures Pres…
#> 8 TCGA-OR-A5J8 66 Stage III Atypical Mitotic Figures Pres…
#> 9 TCGA-OR-A5J9 22 Stage II Atypical Mitotic Figures Abse…
#> 10 TCGA-OR-A5JA 53 Stage IV Atypical Mitotic Figures Pres…
#> # ℹ 82 more rows
#> # ℹ 81 more variables: CAPSULAR_INVASION <chr>, CLIN_M_STAGE <chr>,
#> # CT_SCAN_PREOP_RESULTS <chr>,
#> # CYTOPLASM_PRESENCE_LESS_THAN_EQUAL_25_PERCENT <chr>,
#> # DAYS_TO_INITIAL_PATHOLOGIC_DIAGNOSIS <chr>, DFS_MONTHS <chr>,
#> # DFS_STATUS <chr>, DIFFUSE_ARCHITECTURE <chr>, ETHNICITY <chr>,
#> # FORM_COMPLETION_DATE <chr>, HISTOLOGICAL_DIAGNOSIS <chr>, …
molecularProfiles(cbio, "acc_tcga")
#> # A tibble: 9 × 8
#> molecularProfileId studyId molecularAlterationT…¹ datatype name description
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 acc_tcga_gistic acc_tc… COPY_NUMBER_ALTERATION DISCRETE Puta… Putative c…
#> 2 acc_tcga_linear_CNA acc_tc… COPY_NUMBER_ALTERATION CONTINU… Capp… Capped rel…
#> 3 acc_tcga_methylatio… acc_tc… METHYLATION CONTINU… Meth… Methylatio…
#> 4 acc_tcga_mutations acc_tc… MUTATION_EXTENDED MAF Muta… Mutation d…
#> 5 acc_tcga_rna_seq_v2… acc_tc… MRNA_EXPRESSION CONTINU… mRNA… mRNA gene …
#> 6 acc_tcga_rna_seq_v2… acc_tc… MRNA_EXPRESSION Z-SCORE mRNA… mRNA expre…
#> 7 acc_tcga_rna_seq_v2… acc_tc… MRNA_EXPRESSION Z-SCORE mRNA… Log-transf…
#> 8 acc_tcga_rppa acc_tc… PROTEIN_LEVEL LOG2-VA… Prot… Protein ex…
#> 9 acc_tcga_rppa_Zscor… acc_tc… PROTEIN_LEVEL Z-SCORE Prot… Protein ex…
#> # ℹ abbreviated name: ¹molecularAlterationType
#> # ℹ 2 more variables: showProfileInAnalysisTab <lgl>, patientLevel <lgl>
fetchData(
api = cbio, studyId = "acc_tcga",
molecularProfileIds = c(
"acc_tcga_mutations", "acc_tcga_gistic", "acc_tcga_rppa"
),
entrezGeneIds = 1:1000,
sampleIds = c("TCGA-OR-A5J1-01", "TCGA-OR-A5J2-01")
)
#> $acc_tcga_mutations
#> # A tibble: 7 × 27
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId
#> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 2 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 3 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 4 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 5 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 6 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 7 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> # ℹ 22 more variables: entrezGeneId <int>, studyId <chr>, center <chr>,
#> # mutationStatus <chr>, validationStatus <chr>, tumorAltCount <int>,
#> # tumorRefCount <int>, normalAltCount <int>, normalRefCount <int>, chr <chr>,
#> # startPosition <int>, endPosition <int>, referenceAllele <chr>,
#> # variantAllele <chr>, proteinChange <chr>, mutationType <chr>,
#> # ncbiBuild <chr>, variantType <chr>, refseqMrnaId <chr>,
#> # proteinPosStart <int>, proteinPosEnd <int>, keyword <chr>
#>
#> $acc_tcga_gistic
#> # A tibble: 64 × 8
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId
#> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 2 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 3 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 4 VENHQS1PUi1BNUoyLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 5 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 6 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 7 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 8 VENHQS1PUi1BNUoyLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 9 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 10 VENHQS1PUi1BNUoxLTAxO… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> # ℹ 54 more rows
#> # ℹ 3 more variables: entrezGeneId <int>, studyId <chr>, alteration <int>
#>
#> $acc_tcga_rppa
#> # A tibble: 27 × 8
#> uniqueSampleKey uniquePatientKey entrezGeneId molecularProfileId sampleId
#> <chr> <chr> <int> <chr> <chr>
#> 1 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 31 acc_tcga_rppa TCGA-OR…
#> 2 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 94 acc_tcga_rppa TCGA-OR…
#> 3 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 103 acc_tcga_rppa TCGA-OR…
#> 4 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 207 acc_tcga_rppa TCGA-OR…
#> 5 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 208 acc_tcga_rppa TCGA-OR…
#> 6 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 301 acc_tcga_rppa TCGA-OR…
#> 7 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 310 acc_tcga_rppa TCGA-OR…
#> 8 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 367 acc_tcga_rppa TCGA-OR…
#> 9 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 440 acc_tcga_rppa TCGA-OR…
#> 10 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 472 acc_tcga_rppa TCGA-OR…
#> # ℹ 17 more rows
#> # ℹ 3 more variables: patientId <chr>, studyId <chr>, value <dbl>
#>
## obtain molecularProfileId for structural variant data
molecularProfiles(cbio, "brca_tcga_pan_can_atlas_2018") |>
dplyr::filter(molecularAlterationType == "STRUCTURAL_VARIANT")
#> # A tibble: 1 × 11
#> molecularProfileId studyId molecularAlterationT…¹ genericAssayType datatype
#> <chr> <chr> <chr> <chr> <chr>
#> 1 brca_tcga_pan_can_at… brca_t… STRUCTURAL_VARIANT NA SV
#> # ℹ abbreviated name: ¹molecularAlterationType
#> # ℹ 6 more variables: name <chr>, description <chr>,
#> # showProfileInAnalysisTab <lgl>, patientLevel <lgl>, sortOrder <chr>,
#> # pivotThreshold <int>
structuralVariantData(
api = cbio,
molecularProfileIds = "brca_tcga_pan_can_atlas_2018_structural_variants",
entrezGeneIds = 2064
)
#> $brca_tcga_pan_can_atlas_2018_structural_variants
#> # A tibble: 17 × 44
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId
#> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS1EOC1BMVg1LTAxO… VENHQS1EOC1BMVg… brca_tcga_pan_can… TCGA-D8… TCGA-D8-…
#> 2 VENHQS1BOC1BMDhYLTAxO… VENHQS1BOC1BMDh… brca_tcga_pan_can… TCGA-A8… TCGA-A8-…
#> 3 VENHQS1EOC1BMVhKLTAxO… VENHQS1EOC1BMVh… brca_tcga_pan_can… TCGA-D8… TCGA-D8-…
#> 4 VENHQS1DOC1BMTJRLTAxO… VENHQS1DOC1BMTJ… brca_tcga_pan_can… TCGA-C8… TCGA-C8-…
#> 5 VENHQS1CSC1BMUYyLTAxO… VENHQS1CSC1BMUY… brca_tcga_pan_can… TCGA-BH… TCGA-BH-…
#> 6 VENHQS1DOC1BMTMyLTAxO… VENHQS1DOC1BMTM… brca_tcga_pan_can… TCGA-C8… TCGA-C8-…
#> 7 VENHQS1BTy1BMEpNLTAxO… VENHQS1BTy1BMEp… brca_tcga_pan_can… TCGA-AO… TCGA-AO-…
#> 8 VENHQS1EOC1BMVhKLTAxO… VENHQS1EOC1BMVh… brca_tcga_pan_can… TCGA-D8… TCGA-D8-…
#> 9 VENHQS1DOC1BMTJaLTAxO… VENHQS1DOC1BMTJ… brca_tcga_pan_can… TCGA-C8… TCGA-C8-…
#> 10 VENHQS1VVS1BOTNTLTAxO… VENHQS1VVS1BOTN… brca_tcga_pan_can… TCGA-UU… TCGA-UU-…
#> 11 VENHQS1BMi1BMUcxLTAxO… VENHQS1BMi1BMUc… brca_tcga_pan_can… TCGA-A2… TCGA-A2-…
#> 12 VENHQS1DOC1BOEhQLTAxO… VENHQS1DOC1BOEh… brca_tcga_pan_can… TCGA-C8… TCGA-C8-…
#> 13 VENHQS1BUi1BMjU0LTAxO… VENHQS1BUi1BMjU… brca_tcga_pan_can… TCGA-AR… TCGA-AR-…
#> 14 VENHQS1CSC1BMUVWLTAxO… VENHQS1CSC1BMUV… brca_tcga_pan_can… TCGA-BH… TCGA-BH-…
#> 15 VENHQS1PTC1BNVJZLTAxO… VENHQS1PTC1BNVJ… brca_tcga_pan_can… TCGA-OL… TCGA-OL-…
#> 16 VENHQS1DOC1BMjc1LTAxO… VENHQS1DOC1BMjc… brca_tcga_pan_can… TCGA-C8… TCGA-C8-…
#> 17 VENHQS1BOC1BMDhYLTAxO… VENHQS1BOC1BMDh… brca_tcga_pan_can… TCGA-A8… TCGA-A8-…
#> # ℹ 39 more variables: studyId <chr>, site1EntrezGeneId <int>,
#> # site1HugoSymbol <chr>, site1EnsemblTranscriptId <chr>,
#> # site1Chromosome <chr>, site1Position <int>, site1Contig <chr>,
#> # site1Region <chr>, site1RegionNumber <int>, site1Description <chr>,
#> # site2EntrezGeneId <int>, site2HugoSymbol <chr>,
#> # site2EnsemblTranscriptId <chr>, site2Chromosome <chr>, site2Position <int>,
#> # site2Contig <chr>, site2Region <chr>, site2RegionNumber <int>, …
#>
genericAssayMeta(
api = cbio,
molecularProfileId = "brca_tcga_pan_can_atlas_2018_armlevel_cna"
)
#> # A tibble: 78 × 3
#> stableId entityType genericEntityMetaProperties
#> <chr> <chr> <named list>
#> 1 1p_status GENERIC_ASSAY <chr [1]>
#> 2 1p_status GENERIC_ASSAY <chr [1]>
#> 3 1q_status GENERIC_ASSAY <chr [1]>
#> 4 1q_status GENERIC_ASSAY <chr [1]>
#> 5 2p_status GENERIC_ASSAY <chr [1]>
#> 6 2p_status GENERIC_ASSAY <chr [1]>
#> 7 2q_status GENERIC_ASSAY <chr [1]>
#> 8 2q_status GENERIC_ASSAY <chr [1]>
#> 9 3p_status GENERIC_ASSAY <chr [1]>
#> 10 3p_status GENERIC_ASSAY <chr [1]>
#> # ℹ 68 more rows
genericAssayData(
api = cbio,
molecularProfileIds = "brca_tcga_pan_can_atlas_2018_armlevel_cna",
genericAssayStableIds = c("1p_status", "1q_status"),
sampleIds = c("TCGA-3C-AAAU-01", "TCGA-3C-AALI-01")
)
#> $brca_tcga_pan_can_atlas_2018_armlevel_cna
#> # A tibble: 3 × 10
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId studyId
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS0zQy1BQU… VENHQS0zQy1BQUF… brca_tcga_pan_can… TCGA-3C… TCGA-3C-… brca_t…
#> 2 VENHQS0zQy1BQU… VENHQS0zQy1BQUx… brca_tcga_pan_can… TCGA-3C… TCGA-3C-… brca_t…
#> 3 VENHQS0zQy1BQU… VENHQS0zQy1BQUx… brca_tcga_pan_can… TCGA-3C… TCGA-3C-… brca_t…
#> # ℹ 4 more variables: value <chr>, genericAssayStableId <chr>,
#> # patientLevel <lgl>, stableId <chr>
#>
mutationData(
api = cbio,
molecularProfileIds = "acc_tcga_mutations",
entrezGeneIds = 1:1000,
sampleIds = c("TCGA-OR-A5J1-01", "TCGA-OR-A5J2-01")
)
#> $acc_tcga_mutations
#> # A tibble: 7 × 27
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId
#> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 2 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 3 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 4 VENHQS1PUi1BNUoxLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 5 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 6 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> 7 VENHQS1PUi1BNUoyLTAxOm… VENHQS1PUi1BNUo… acc_tcga_mutations TCGA-OR… TCGA-OR-…
#> # ℹ 22 more variables: entrezGeneId <int>, studyId <chr>, center <chr>,
#> # mutationStatus <chr>, validationStatus <chr>, tumorAltCount <int>,
#> # tumorRefCount <int>, normalAltCount <int>, normalRefCount <int>, chr <chr>,
#> # startPosition <int>, endPosition <int>, referenceAllele <chr>,
#> # variantAllele <chr>, proteinChange <chr>, mutationType <chr>,
#> # ncbiBuild <chr>, variantType <chr>, refseqMrnaId <chr>,
#> # proteinPosStart <int>, proteinPosEnd <int>, keyword <chr>
#>
molecularData(
api = cbio,
molecularProfileIds = c("acc_tcga_rna_seq_v2_mrna", "acc_tcga_rppa"),
entrezGeneIds = 1:100,
sampleIds = c("TCGA-OR-A5J1-01", "TCGA-OR-A5J2-01")
)
#> $acc_tcga_rna_seq_v2_mrna
#> # A tibble: 128 × 8
#> uniqueSampleKey uniquePatientKey entrezGeneId molecularProfileId sampleId
#> <chr> <chr> <int> <chr> <chr>
#> 1 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 2 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 2 acc_tcga_rna_seq_… TCGA-OR…
#> 3 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 9 acc_tcga_rna_seq_… TCGA-OR…
#> 4 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 10 acc_tcga_rna_seq_… TCGA-OR…
#> 5 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 12 acc_tcga_rna_seq_… TCGA-OR…
#> 6 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 13 acc_tcga_rna_seq_… TCGA-OR…
#> 7 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 14 acc_tcga_rna_seq_… TCGA-OR…
#> 8 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 15 acc_tcga_rna_seq_… TCGA-OR…
#> 9 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 16 acc_tcga_rna_seq_… TCGA-OR…
#> 10 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 18 acc_tcga_rna_seq_… TCGA-OR…
#> # ℹ 118 more rows
#> # ℹ 3 more variables: patientId <chr>, studyId <chr>, value <dbl>
#>
#> $acc_tcga_rppa
#> # A tibble: 2 × 8
#> uniqueSampleKey uniquePatientKey entrezGeneId molecularProfileId sampleId
#> <chr> <chr> <int> <chr> <chr>
#> 1 VENHQS1PUi1BNUoyLTA… VENHQS1PUi1BNUo… 31 acc_tcga_rppa TCGA-OR…
#> 2 VENHQS1PUi1BNUoyLTA… VENHQS1PUi1BNUo… 94 acc_tcga_rppa TCGA-OR…
#> # ℹ 3 more variables: patientId <chr>, studyId <chr>, value <dbl>
#>
## obtain molecularProfileId for discrete copy number alteration data
molecularProfiles(cbio, "acc_tcga") |>
dplyr::filter(
molecularAlterationType == "COPY_NUMBER_ALTERATION" &
datatype == "DISCRETE"
)
#> # A tibble: 1 × 8
#> molecularProfileId studyId molecularAlterationType datatype name description
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 acc_tcga_gistic acc_tcga COPY_NUMBER_ALTERATION DISCRETE Puta… Putative c…
#> # ℹ 2 more variables: showProfileInAnalysisTab <lgl>, patientLevel <lgl>
copyNumberData(
api = cbio,
molecularProfileIds = "acc_tcga_gistic",
entrezGeneIds = 25,
sampleListId = "acc_tcga_all"
)
#> $acc_tcga_gistic
#> # A tibble: 3 × 8
#> uniqueSampleKey uniquePatientKey molecularProfileId sampleId patientId
#> <chr> <chr> <chr> <chr> <chr>
#> 1 VENHQS1PUi1BNUo0LTAxOm… VENHQS1PUi1BNUo… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 2 VENHQS1PUi1BNUsyLTAxOm… VENHQS1PUi1BNUs… acc_tcga_gistic TCGA-OR… TCGA-OR-…
#> 3 VENHQS1QSy1BNUhBLTAxOm… VENHQS1QSy1BNUh… acc_tcga_gistic TCGA-PK… TCGA-PK-…
#> # ℹ 3 more variables: entrezGeneId <int>, studyId <chr>, alteration <int>
#>
searchOps(api = cbio, keyword = "molecular")
#> [1] "fetchGenePanelDataInMultipleMolecularProfilesUsingPOST"
#> [2] "getGenericAssayDataInMolecularProfileUsingGET"
#> [3] "fetchGenericAssayDataInMultipleMolecularProfilesUsingPOST"
#> [4] "fetchGenericAssayDataInMolecularProfileUsingPOST"
#> [5] "fetchMolecularDataInMultipleMolecularProfilesUsingPOST"
#> [6] "getAllMolecularProfilesUsingGET"
#> [7] "fetchMolecularProfilesUsingPOST"
#> [8] "getMolecularProfileUsingGET"
#> [9] "getDiscreteCopyNumbersInMolecularProfileUsingGET"
#> [10] "fetchDiscreteCopyNumbersInMolecularProfileUsingPOST"
#> [11] "getAllMolecularDataInMolecularProfileUsingGET"
#> [12] "fetchAllMolecularDataInMolecularProfileUsingPOST"
#> [13] "getMutationsInMolecularProfileBySampleListIdUsingGET"
#> [14] "fetchMutationsInMolecularProfileUsingPOST"
#> [15] "fetchMutationsInMultipleMolecularProfilesUsingPOST"
#> [16] "getAllMolecularProfilesInStudyUsingGET"
samplesInSampleLists(
api = cbio,
sampleListIds = c("acc_tcga_rppa", "acc_tcga_cnaseq")
)
#> CharacterList of length 2
#> [["acc_tcga_cnaseq"]] TCGA-OR-A5J1-01 TCGA-OR-A5J2-01 ... TCGA-PK-A5HC-01
#> [["acc_tcga_rppa"]] TCGA-OR-A5J2-01 TCGA-OR-A5J3-01 ... TCGA-PK-A5HA-01
sampleLists(api = cbio, studyId = "acc_tcga")
#> # A tibble: 9 × 5
#> sampleListId studyId category name description
#> <chr> <chr> <chr> <chr> <chr>
#> 1 acc_tcga_3way_complete acc_tcga all_cases_with_mutation… Comp… Samples wi…
#> 2 acc_tcga_all acc_tcga all_cases_in_study All … All sample…
#> 3 acc_tcga_cna acc_tcga all_cases_with_cna_data Samp… Samples wi…
#> 4 acc_tcga_cnaseq acc_tcga all_cases_with_mutation… Samp… Samples wi…
#> 5 acc_tcga_methylation_all acc_tcga all_cases_with_methylat… Samp… Samples wi…
#> 6 acc_tcga_methylation_hm450 acc_tcga all_cases_with_methylat… Samp… Samples wi…
#> 7 acc_tcga_rna_seq_v2_mrna acc_tcga all_cases_with_mrna_rna… Samp… Samples wi…
#> 8 acc_tcga_rppa acc_tcga all_cases_with_rppa_data Samp… Samples pr…
#> 9 acc_tcga_sequenced acc_tcga all_cases_with_mutation… Samp… Samples wi…
genePanels(cbio)
#> # A tibble: 69 × 2
#> genePanelId description
#> <chr> <chr>
#> 1 ACCESS129 Targeted (129 genes) sequencing of cfDNA via MSK-ACCESS on …
#> 2 ACYC_FMI_27 Targeted (27 cancer genes) sequencing of adenoid cystic car…
#> 3 ARCHER-HEME-CV1 ARCHER-HEME gene panel (199 genes)
#> 4 ARCHER-SOLID-CV1 ARCHER-SOLID Gene Panel (62 genes)
#> 5 ARCHER-SOLID-CV4 ARCHER-SOLID-CV4 Gene Panel (123 genes)
#> 6 Agilent Targeted panel of 232 genes.
#> 7 AmpliSeq Targeted panel of 8 genes.
#> 8 Bait_UCSF500 Targeted panel of 509 genes.
#> 9 DFCI-ONCOPANEL-1 DFCI-ONCOPANEL-1, Number of Genes - 304
#> 10 DFCI-ONCOPANEL-2 DFCI-ONCOPANEL-2, Number of Genes - 326
#> # ℹ 59 more rows
getGenePanel(cbio, "AmpliSeq")
#> # A tibble: 8 × 2
#> entrezGeneId hugoGeneSymbol
#> <int> <chr>
#> 1 171023 ASXL1
#> 2 1788 DNMT3A
#> 3 3417 IDH1
#> 4 3418 IDH2
#> 5 23451 SF3B1
#> 6 6427 SRSF2
#> 7 7157 TP53
#> 8 7307 U2AF1
queryGeneTable(api = cbio, by = "entrezGeneId", genes = 7157)
#> # A tibble: 1 × 3
#> entrezGeneId hugoGeneSymbol type
#> <int> <chr> <chr>
#> 1 7157 TP53 protein-coding
getDataByGenes(
api = cbio,
studyId = "acc_tcga",
genes = 1,
by = "entrezGeneId",
molecularProfileIds = "acc_tcga_rna_seq_v2_mrna",
sampleListId = "acc_tcga_rna_seq_v2_mrna"
)
#> $acc_tcga_rna_seq_v2_mrna
#> # A tibble: 79 × 10
#> uniqueSampleKey uniquePatientKey entrezGeneId molecularProfileId sampleId
#> <chr> <chr> <int> <chr> <chr>
#> 1 VENHQS1PUi1BNUoxLT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 2 VENHQS1PUi1BNUoyLT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 3 VENHQS1PUi1BNUozLT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 4 VENHQS1PUi1BNUo1LT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 5 VENHQS1PUi1BNUo2LT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 6 VENHQS1PUi1BNUo3LT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 7 VENHQS1PUi1BNUo4LT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 8 VENHQS1PUi1BNUo5LT… VENHQS1PUi1BNUo… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 9 VENHQS1PUi1BNUpBLT… VENHQS1PUi1BNUp… 1 acc_tcga_rna_seq_… TCGA-OR…
#> 10 VENHQS1PUi1BNUpCLT… VENHQS1PUi1BNUp… 1 acc_tcga_rna_seq_… TCGA-OR…
#> # ℹ 69 more rows
#> # ℹ 5 more variables: patientId <chr>, studyId <chr>, value <dbl>,
#> # hugoGeneSymbol <chr>, type <chr>
#>