plotCpGsite | R Documentation |
Generate plots of model and results. The top panel of the plot will be the beta distribution in the beta-binomial model estimated for the cohort. The bottom panel will be the 95 percent confidence intervals around the percent methylation in each sample at that CpG site.
plotCpGsite(cpgSites, sampleOfInterest=NA, modelFile="CpG_model.csv", methCountFile="CpG_model_rawMethCount.tsv", totalCountFile="CpG_model_rawTotalCount.tsv")
cpgSites |
A character vector of CpG sites specified as "chr1:71732" representing the chromosome and start position of the CpG site. A separate plot will be generated for each site specified. |
sampleOfInterest |
(optional) |
modelFile |
|
methCountFile |
|
totalCountFile |
|
Returns a list
with each element indexed by the provided cpgSites
and storing a ggplot/cowplot object.
extdata <- system.file("extdata", package="borealis") plots <- plotCpGsite("chr14:24780288", sampleOfInterest="patient_72", modelFile=file.path(extdata,"CpG_model_chr14.csv"), methCountFile=file.path(extdata,"CpG_model_rawMethCount_chr14.tsv"), totalCountFile=file.path(extdata,"CpG_model_rawTotalCount_chr14.tsv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.