panelPlots(MethyLumiSet, typeIRedModels, typeIGreenModels, typeIIModels,
plot = c("panel", "frames"), samp.num = NULL, frame.nums = 1:9,
norm = "", idmr = TRUE, snps = TRUE)
MethyLumiSet
object from which the mixture models were derivedlist
of the Type I-red mixture models listed in the following order: methylated models followed by unmethylated modelslist
of the Type I-green mixture models listed in the following order: methylated models followed by unmethylated modelslist
of the Type II mixture models listed in the following order: methylated models followed by unmethylated modelssamp.num
is specified; or should the function output separate plots corresponding to the frames, given by frame.nums
, for a single sample. The default is "panel"
. If set to "frames"
, samp.num
must be specifiedMethyLumiSet
column that corresponds to the sample of interestplot
is set to "frame"
, then frame.nums is a vector that specifies which frames of the panel to plot. The default is to plot all nine frames. The frames are numbered from 1 to 9 in column-major order starting with the top left. For example, to plot the four corners, use frame.nums=c(1,3,7,9)
TRUE
TRUE
getSNparams
if(require('minfiData')) {
path <- system.file("extdata/5723646052", package="minfiData")
methylumiset.raw <- getMethyLumiSet(path = path)
mixes.raw.meth.I.red <- getSNparams(methylumiset.raw, 'M', 'I-red')
mixes.raw.meth.I.green <- getSNparams(methylumiset.raw, 'M', 'I-green')
mixes.raw.meth.II <- getSNparams(methylumiset.raw, 'M', 'II')
mixes.raw.unmeth.I.red <- getSNparams(methylumiset.raw, 'U', 'I-red')
mixes.raw.unmeth.I.green <- getSNparams(methylumiset.raw, 'U', 'I-green')
mixes.raw.unmeth.II <- getSNparams(methylumiset.raw, 'U', 'II')
mixes.I.red <- list(mixes.raw.meth.I.red, mixes.raw.unmeth.I.red)
mixes.I.green <- list(mixes.raw.meth.I.green, mixes.raw.unmeth.I.green)
mixes.II <- list(mixes.raw.meth.II, mixes.raw.unmeth.II)
panelPlots(methylumiset.raw, mixes.I.red, mixes.I.green, mixes.II)
}
Run the code above in your browser using DataLab