annotate spp/man/get.mser.Rd @ 16:5648b4efe736 draft

Uploaded
author zzhou
date Tue, 27 Nov 2012 16:22:26 -0500
parents ce08b0efa3fd
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}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
2 \alias{get.mser}
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{ Calculate minimal saturated enrichment fold ratio }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
5 \description{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
6 Determine if the dataset has reached absolute saturation, or otherwise
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
7 find minimal fold enrichment ratio above which the detection of peaks
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
8 has stabilized enough to meet the saturation criteria.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
9 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
10 \usage{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
11 get.mser(signal.data, control.data, n.chains = 5, step.size = 1e+05, chains = NULL, cluster = NULL, test.agreement = 0.99, return.chains = F, enrichment.background.scales = c(1), n.steps = 1, ...)
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
12 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
13 %- maybe also 'usage' for other objects documented here.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
14 \arguments{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
15 \item{signal.data}{ signal tag vector list }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
16 \item{control.data}{ control tag vector list }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
17 \item{n.chains}{ number of dataset subsamples to use }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
18 \item{step.size}{ subsampling step describing the saturation
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
19 criteria. The criteria requires the set of detected binding sites to
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
20 be stable (as described by the \code{test.agreement} param) when the
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
21 number of tags in the dataset is reduced by \code{step.size}. The
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
22 value can either be an integer above one, in which case it specifies a fixed
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
23 number of tags, or a real value below one, in which case it
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
24 specifies the fraction of tags that should be removed (e.g. 0.1 will
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
25 remove 10% of tags).
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
26 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
27 \item{test.agreement}{ Fraction of the detected peaks that should
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
28 agree between the full and subsampled datasets. }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
29 \item{chains}{ optional parameter, giving pre-calculated chains }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
30 \item{cluster}{ optional \code{snow} cluster to parallelize processing }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
31
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
32 \item{return.chains}{ whether subsampled dataset results should be returned as
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
33 well }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
34 \item{enrichment.background.scales}{ one or multiple window scales at
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
35 which the background tag density should be assessed. See
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
36 \code{enrichment.background.scales} in
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
37 \code{\link{find.binding.positions}}. If multiple scales are provided,
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
38 multiple MSER estimates will be returned.}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
39 \item{\dots}{ additional parameters should be the same as those passed
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
40 to the \code{\link{find.binding.positions}}}
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
41 }
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
42 \value{
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
43 A single, or multple (if multiple \code{enrichment.background.scales} were
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
44 provided) MSER value. A value of 1 or very close to it implies that
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
45 the dataset has reached absolute saturation based on the given criteria.
ce08b0efa3fd Uploaded
zzhou
parents:
diff changeset
46 }