View source: R/getRegionScores.R
getRegionScores | R Documentation |
Returns p-values and Z-scores for CpGs in a set of regions, compared to a local null background distribution.
getRegionScores(ranks, regions, chromDictObj)
ranks |
getPCRanks output data.frame, only necessary if chromDictObj=NULL |
regions |
A three-column dataframe containing a set of regions to test. Columns = chrom, start, end. |
chromDictObj |
chromDict() output object, recommended input instead of ranks. |
Returns a data.frame
with significance scores for all input regions.
ranks <- getPCRanks(eigen, IDs = c("trt", "ctl"), PC = 1)
DMLs <- addRanks(ranks)
# data.frame of regions to test:
regions <- data.frame(chr=c("chr3", "chr3", "chr1"),
s=c(4920450, 3961576, 300000),
e=c(4923267, 3963805, 302900),
ID=c("Hypo-DMR", "partial Hyper-DMR", "random"))
getRegionScores(DMLs, regions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.