BIMEGA_Plot: The BIMEGA_Plot function.

Description Usage Arguments Value Examples

Description

Produces plots to represent BIMEGA's output.

Usage

1
2
BIMEGA_Plot(GeneName, MixtureModelResults, METcancer, MAcancer,
  METnormal = NULL, MAnormal = NULL, title = NULL)

Arguments

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.

Value

BIMEGA plot, a scatterplot between DNA methylation and gene expression, showing the different mixture components identified.

Examples

 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)
}

mpru/BIMEGA documentation built on May 23, 2019, 6:34 a.m.