annotate spp/man/get.mser.interpolation.Rd @ 6:ce08b0efa3fd draft

Uploaded
author zzhou
date Tue, 27 Nov 2012 16:11:40 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
1 \name{get.mser.interpolation}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
2 \alias{get.mser.interpolation}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
3 %- Also NEED an '\alias' for EACH other topic documented here.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
4 \title{ Interpolate MSER dependency on the tag count }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
5 \description{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
6 MSER generally decreases with increasing sequencing depth. This
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
7 function interpolates the dependency of MSER on tag counts as a
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
8 log-log linear function. The log-log fit is used to estimate the depth
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
9 of sequencing required to reach desired \code{target.fold.enrichment}.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
10 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
11 \usage{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
12 get.mser.interpolation(signal.data, control.data, target.fold.enrichment = 5, n.chains = 10, n.steps = 6, step.size = 1e+05, chains = NULL, test.agreement = 0.99, return.chains = F, enrichment.background.scales = c(1), excluded.steps = c(seq(2, n.steps - 2)), ...)
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
13 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
14 %- maybe also 'usage' for other objects documented here.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
15 \arguments{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
16 \item{signal.data}{ signal chromosome tag vector list }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
17 \item{control.data}{ control chromosome tag vector list }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
18 \item{target.fold.enrichment}{ target MSER for which the depth should
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
19 be estimated}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
20 \item{n.steps}{ number of steps in each subset chain. }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
21 \item{step.size}{ Either number of tags or fraction of the dataset
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
22 size, see \code{step.size} parameter for \code{\link{get.mser}}. }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
23 \item{test.agreement}{ Fraction of the detected peaks that should
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
24 agree between the full and subsampled datasets. See \code{test.agreement} parameter for \code{\link{get.mser}}}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
25 \item{n.chains}{ number of random subset chains }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
26 \item{chains}{ optional structure of pre-calculated chains
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
27 (e.g. generated by an earlier call with \code{return.chains=T}.}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
28
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
29 \item{return.chains}{ whether to return peak predictions calculated on
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
30 random chains. These can be passed back using \code{chains} argument
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
31 to skip subsampling/prediction steps, and just recalculate the depth
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
32 estimate for a different MSER.}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
33 \item{enrichment.background.scales}{ see \code{enrichment.background.scales} parameter for \code{\link{get.mser}} }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
34 \item{excluded.steps}{ Intermediate subsampling steps that should be excluded from
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
35 the chains to speed up the calculation. By default, all intermediate
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
36 steps except for first two and last two are skipped. Adding
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
37 intermediate steps improves interpolation at the expense of
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
38 computational time.}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
39 \item{\dots}{ additional parameters are passed to \code{\link{get.mser}} }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
40 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
41 \details{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
42 To simulate sequencing growth, the method calculates peak predictions
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
43 on random chains. Each chain is produced by sequential random
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
44 subsampling of the original data. The number of steps in the chain
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
45 indicates how many times the random subsampling will be performed.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
46 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
47 \value{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
48 Normally reurns a list, specifying for each backgroundscale:
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
49 \item{prediction}{estimated sequencing depth required to reach
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
50 specified target MSER}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
51 \item{log10.fit}{linear fit model, a result of \code{lm()} call}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
52
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
53 If \code{return.chains=T}, the above structure is returned under
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
54 \code{interpolation} field, along with \code{chains} field containing
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
55 results of \code{\link{find.binding.positions}} calls on subsampled chains.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
56 }