File: get.mser.Rd

package info (click to toggle)
r-cran-spp 1.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 576 kB
  • sloc: cpp: 3,310; ansic: 365; makefile: 2
file content (56 lines) | stat: -rw-r--r-- 2,382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\name{get.mser}
\alias{get.mser}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Calculate minimal saturated enrichment fold ratio }
\description{
  Determine if the dataset has reached absolute saturation, or otherwise
  find minimal fold enrichment ratio above which the detection of peaks
  has stabilized enough to meet the saturation criteria.
}
\usage{
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, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{signal.data}{ signal tag vector list }
  \item{control.data}{ control tag vector list }
  \item{n.chains}{ number of dataset subsamples to use }
  \item{step.size}{ subsampling step describing the saturation
    criteria. The criteria requires the set of detected binding sites to
    be stable (as described by the \code{test.agreement} param) when the
    number of tags in the dataset is reduced by \code{step.size}. The
    value can either be an integer above one, in which case it specifies a fixed
    number of tags, or a real value below one, in which case it
    specifies the fraction of tags that should be removed (e.g. 0.1 will
    remove 10% of tags).
  }
  \item{test.agreement}{ Fraction of the detected peaks that should
    agree between the full and subsampled datasets. }
  \item{chains}{ optional parameter, giving pre-calculated chains }
  \item{cluster}{ optional \code{snow} cluster to parallelize processing }

  \item{return.chains}{ whether subsampled dataset results should be returned as
  well }
  \item{enrichment.background.scales}{ one or multiple window scales at
  which the background tag density should be assessed. See
  \code{enrichment.background.scales} in
  \code{\link{find.binding.positions}}. If multiple scales are provided,
  multiple MSER estimates will be returned.}
  \item{\dots}{ additional parameters should be the same as those passed
  to the \code{\link{find.binding.positions}}}
  \item{n.steps}{n.steps}
}
\value{
  A single, or multple (if multiple \code{enrichment.background.scales} were
  provided) MSER value. A value of 1 or very close to it implies that
  the dataset has reached absolute saturation based on the given criteria.
}