localZScore | R Documentation |
Evaluates tthe variation of the z-score in the vicinty of the original region set
localZScore(A, pt, window, step, ...)
A |
a region set in any of the formats accepted by |
pt |
a permTestResult object |
window |
a window in wich the local Z-score will be calculated (bp) |
step |
the number of bp that divide each Z-score evaluation |
... |
further arguments to be passed to other methods. |
It returns a local z-score object
overlapPermTest
, permTest
genome <- filterChromosomes(getGenome("hg19"), keep.chr="chr1")
A <- createRandomRegions(nregions=20, length.mean=10000, length.sd=20000, genome=genome, non.overlapping=FALSE)
B <- c(A, createRandomRegions(nregions=10, length.mean=10000, length.sd=20000, genome=genome, non.overlapping=FALSE))
pt <- overlapPermTest(A=A, B=B, ntimes=10, genome=genome, non.overlapping=FALSE)
plot(pt)
lz <- localZScore(A=A, B=B, pt=pt)
plot(lz)
pt2 <- permTest(A=A, B=B, ntimes=10, randomize.function=randomizeRegions, evaluate.function=list(overlap=numOverlaps, distance=meanDistance), genome=genome, non.overlapping=FALSE)
plot(pt2)
lz2 <- localZScore(A=A, B=B, pt2)
plot(lz2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.