Mercurial > repos > zzhou > spp_phantompeak
comparison spp/man/get.conservative.fold.enrichment.profile.Rd @ 15:e689b83b0257 draft
Uploaded
author | zzhou |
---|---|
date | Tue, 27 Nov 2012 16:15:21 -0500 |
parents | ce08b0efa3fd |
children |
comparison
equal
deleted
inserted
replaced
14:918fecc1e7bb | 15:e689b83b0257 |
---|---|
1 \name{get.conservative.fold.enrichment.profile} | |
2 \alias{get.conservative.fold.enrichment.profile} | |
3 %- Also NEED an '\alias' for EACH other topic documented here. | |
4 \title{ Estimate minimal fold enrichment/depletion along the chromosomes } | |
5 \description{ | |
6 The method provides a statistical assessment of enrichment/depletion | |
7 along the chromosomes. To assess tag density enrichment/depletion, a | |
8 sliding window of a specified size (\code{fws}) is used to calculate | |
9 the density of the foreground tags (\code{ftl}). Multiple, typically | |
10 larger windows are used to estimate background tag (\code{btl}) density around the | |
11 same location. The densities are compared as ratios of two Poisson | |
12 processes to estimate lower bound of foreground enrichment, or upper | |
13 bound of foreground depletion. If multiple window sizes were used to | |
14 estimate the background tag density, the most conservative one is | |
15 chosen for each point. | |
16 } | |
17 \usage{ | |
18 get.conservative.fold.enrichment.profile(ftl, btl, fws, bwsl = c(1, 5, 25, 50) * fws, step = 50, tag.shift = 146/2, alpha = 0.05, use.most.informative.scale = F, quick.calculation = T) | |
19 } | |
20 %- maybe also 'usage' for other objects documented here. | |
21 \arguments{ | |
22 \item{ftl}{ foreground tag vector list } | |
23 \item{btl}{ background tag vector list } | |
24 \item{fws}{ foreground window size } | |
25 \item{bwsl}{ background window scales. The size(s) of background windows | |
26 will be \code{fws*bwsl}. } | |
27 \item{step}{ spacing between positions at which the | |
28 enrichment/depletion is evaluated } | |
29 \item{tag.shift}{ number of basepairs by which positive and negative | |
30 tag coordinates should be shifted towards eachother (half of binding | |
31 peak separation distance)} | |
32 \item{alpha}{ desired level of statistical significance } | |
33 \item{use.most.informative.scale}{ for each position, instead of | |
34 evaluating enrichment ratio bounds for all background window scales, | |
35 choose the one with the highest observed density to speed up the calculations} | |
36 \item{quick.calculation}{ Use square root transformation method | |
37 instead of a Bayesian method. This speeds up the caclulation | |
38 considerably and is turned on by default. } | |
39 \item{background.density.scaling}{ If TRUE, regions of significant tag | |
40 enrichment will be masked out when calculating size ratio of the | |
41 signal to control datasets (to estimate ratio of the background tag | |
42 density). If FALSE, the dataset ratio will be equal to the ratio of | |
43 the number of tags in each dataset.} | |
44 } | |
45 \value{ | |
46 A list of elements corresponding to chromosomes, with each element | |
47 being an $x/$y data.frame giving the position and the log2 | |
48 conservative estimate of enrichment/depletion fold ratios around that | |
49 position. | |
50 Use \code{\link{writewig}} to output the structure to a WIG | |
51 file. | |
52 } | |
53 \references{ R.M.Price, D.G. Bonett "Estimating the ratio fo two Poisson | |
54 rates", Comp. Stat & Data Anal. 32(2000) 345} | |
55 \seealso{ \code{\link{get.smoothed.tag.density}} } | |
56 \examples{ | |
57 enrichment.estimates <- get.conservative.fold.enrichment.profile(chip.data,input.data,fws=2*binding.characteristics$whs,step=100,alpha=0.01); | |
58 writewig(enrichment.estimates,"example.enrichment.estimates.wig","Example conservative fold-enrichment/depletion estimates shown on log2 scale"); | |
59 } |