getCollapsedBetas | R Documentation |
Retrieves the matrix of per-CpG beta values matching the annotated loci. For EPICv2 data, these betas have been (optionally) remapped to more likely target, and collapsed to one value per CpG. See cpg.annotate
for details on EPICv2 replicate filtering.
getCollapsedBetas(annot, ranges=NULL)
annot |
A |
ranges |
A GRanges object, over which the desired beta values are subsetted. |
Only applicable to CpGannotated
objects that have been created by cpg.annotate
; for those created by sequencing.annotate
please use bsseq::getMeth
.
A matrix of beta values, with individual CpG coordinates as rownames.
Tim Peters <t.peters@garvan.org.au>
library(AnnotationHub)
ah <- AnnotationHub()
EPICv2manifest <- ah[["AH116484"]]
object <- minfi::logit2(matrix(rbeta(10000, 3, 1), 1000, 10))
rownames(object) <- sample(rownames(EPICv2manifest), 1000)
type <- rep(c("Ctrl", "Treat"), each=5)
design <- model.matrix(~type)
myannotation <- cpg.annotate("array", object, what = "M", arraytype = "EPICv2",
analysis.type="differential", design=design, coef=2)
getCollapsedBetas(myannotation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.