Description Usage Arguments Value Author(s) Examples
Makes bedGraphs, 1 per sample, each containing all significant regions
found via dmrcate
. Bedgraphs are written are written to the
working directory.
1 2 3 4 | makeBedgraphs(dmrcoutput, betas,
annotation=c(array="IlluminaHumanMethylation450k",
annotation="ilmn12.hg19"),
samps=NULL)
|
dmrcoutput |
An object of class |
betas |
Matrix of beta values to be converted to bedGraph rows, with unique Illumina probe IDs as rownames. |
annotation |
A vector describing the type of annotation from which to derive
bedgraph output. Identical context to |
samps |
Vector of samples to be converted to bedGraph files, corresponding
to columns of |
Writes zero or more bedGraph files to the working directory.
Tim J. Peters <Tim.Peters@csiro.au>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
data(dmrcatedata)
myMs <- logit2(myBetas)
myMs.noSNPs <- rmSNPandCH(myMs, dist=2, mafcut=0.05)
patient <- factor(sub("-.*", "", colnames(myMs)))
type <- factor(sub(".*-", "", colnames(myMs)))
design <- model.matrix(~patient + type)
myannotation <- cpg.annotate(myMs.noSNPs, analysis.type="differential",
design=design, coef=39)
dmrcoutput <- dmrcate(myannotation, lambda=1000)
makeBedgraphs(dmrcoutput=dmrcoutput, betas=myBetas, samps=c(1,39))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.