Description Usage Arguments Value Examples
Produces plots to represent BIMEGA's output.
1 2 |
GeneName |
Name of the gene for which to create a BIMEGA plot. |
MixtureModelResults |
List returned by BIMEGA function. |
METcancer |
Matrix with the methylation data of cancer tissue with genes in rows and samples in columns. |
MAcancer |
Gene expression data for cancer tissue with genes in rows and samples in columns. |
METnormal |
Matrix with the normal methylation data of the same genes as in METcancer (optional). Again genes in rows and samples in columns. |
MAnormal |
Gene expression data for normal tissue with genes in rows and samples in columns (optional). |
title |
A title for the plot. |
BIMEGA plot, a scatterplot between DNA methylation and gene expression, showing the different mixture components identified.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # load the data sets needed for BIMEGA
data(METcancer)
data(METnormal)
data(MAcancer)
data(MAnormal)
# run BIMEGA on a small set of example data
BIMEGAresults <- BIMEGA(METcancer, METnormal, MAcancer, MAnormal)
# Produce plots of differentially methylated genes
for (gene in BIMEGAresults$MethylationDrivers) {
g <- BIMEGA_Plot(gene, BIMEGAresults, METcancer, MAcancer, METnormal, MAnormal)
plot(g)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.