Description Usage Arguments Details Author(s) References See Also Examples
Queries the CGDS API and plots data for specified genes and genetic profiles.
1 2 3 |
x |
A CGDS object (required) |
cancerStudy |
cancer study ID (required) |
genes |
A vector of gene names or a String specifying a single gene (required) |
geneticProfiles |
A vector of genetic profile IDs or String specifying a single genetic profile (required) |
caseList |
A case list ID |
cases |
A vector of case IDs) |
caseIdsKey |
Only used by web portal. |
skin |
A string specifying which plotting layout skin to use (default is continous data 'cont') |
skin.normals |
Specify a case list ID with normal samples, only some skins handle normal data. |
skin.col.gp |
Specify a vector of additional case list IDs to use for color coding of data points. Color coding is only handled by some skins. |
add.corr |
Computes correlation between the two data vectors. Specify correlation method ('pearson' or 'spearman') as argument. |
legend.pos |
Position of legend in plot (default is 'topright'). |
... |
Not used. |
Queries the CGDS API and plots data for specified genes and genetic profiles.
The following combinations are allowed:
1 gene and 1 genetic profile. Plots genetic profile data histogram for specified gene.
2 genes and 1 genetic profile. Scatter plot of continuous genetic profile data for the two genes.
3 1 gene and 2 genetic profiles. Scatterplot or boxplot relating two genetic profile datasets for single gene.
The function currently implements the following skins:
cont: This is the default skin. It treats all data as being continuous.
disc: Requires a single gene and a single genetic profile. The genetic profile data is handled as a discrete dataset and barplot is returned. being continuous.
disc_cont: Requires two genetic profiles. The first dataset is handled as being discrete data, and the function generates a boxplot with distributions for each level of the discrete genetic profile.
cna_mrna_mut: This skin plots mRNA expression level as function of copy number status for a given gene. Data points are colored by mutation status if specified (skin.col.gp), and normal data points are included if specified (skin.normals).
cna_mrna_mut: This skin plots mRNA expression level as function of DNA methylation status for a given gene. Data points are colored by copy number and mutation status if specified (two element vector of copy number and mutation genetic profiles specified for skin.col.gp). Normal data points are included if specified (skin.normals).
<jacobsen@cbio.mskcc.org>
cBio Cancer Genomics Portal: http://www.cbioportal.org/
cgdsr
,CGDS
,getCancerStudies
,getGeneticProfiles
,getProfileData
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Create CGDS object
mycgds = CGDS("http://www.cbioportal.org/")
# 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]
# histogram of genetic profile data for gene
plot(mycgds,mycancerstudy,'MDM2',mygeneticprofile,mycaselist)
# scatter plot of genetic profile data for two genes
plot(mycgds,mycancerstudy,c('MDM2','MDM4'),mygeneticprofile,mycaselist)
# See vignette for more details ...
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.