Description Details Author(s) References See Also Examples
The package provides a basic set of R functions for querying the Cancer Genomics Data Server (CGDS), hosted by the Computational Biology Center at Memorial-Sloan-Kettering Cancer Center (MSKCC). Read more about this service at the cBio Cancer Genomics Portal, http://www.cbioportal.org/.
Package: | cgdsr |
Type: | Package |
License: | GPL |
LazyLoad: | yes |
The Cancer Genomic Data Server (CGDS) web service interface provides direct programmatic access to all genomic data stored within the server. This package provides a basic set of R functions for querying the CGDS hosted by the Computational Biology Center at Memorial-Sloan-Kettering Cancer Center (MSKCC).
The library can issue the following types of queries:
getCancerStudies(): What cancer studies are hosted on the server? For example TCGA Glioblastoma or TCGA Ovarian cancer.
getGeneticProfiles(): What genetic profile types are available for cancer study X? For example mRNA expression or copy number alterations.
getCaseLists(): what case sets are available for cancer study X? For example all samples or only samples corresponding to a given cancer subtype.
getProfileData(): Retrieve slices of genomic data. For example, a client can retrieve all mutation data from PTEN and EGFR in TCGA glioblastoma.
getClinicalData(): Retrieve clinical data (e.g. patient survival time and age) for a given case list.
<jacobsen@cbio.mskcc.org>
cBio Cancer Genomics Portal: http://www.cbioportal.org/
CGDS
, getCancerStudies
,
getGeneticProfiles
, getCaseLists
,
getProfileData
, getClinicalData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Create CGDS object
mycgds = CGDS("http://www.cbioportal.org/")
# Test the CGDS endpoint URL using a few simple API tests
test(mycgds)
# Get list of cancer studies at server
getCancerStudies(mycgds)
# Get available case lists (collection of samples) for a given cancer study
mycancerstudy = getCancerStudies(mycgds)[2,1]
mycaselist = getCaseLists(mycgds,mycancerstudy)[1,1]
# Get available genetic profiles
mygeneticprofile = getGeneticProfiles(mycgds,mycancerstudy)[4,1]
# Get data slices for a specified list of genes, genetic profile and case list
getProfileData(mycgds,c('BRCA1','BRCA2'),mygeneticprofile,mycaselist)
# Get clinical data for the case list
myclinicaldata = getClinicalData(mycgds,mycaselist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.