Description Usage Arguments Details Value Note Author(s) See Also Examples
Enables normalization of datasets using a variety of methods, including background, spike-in, and parallel factor normalization. Alternatively, allows a user to specify library sizes and normalization factors directly, or retrieve computed ones.
1 2 3 4 | dba.normalize(DBA, method = DBA$config$AnalysisMethod,
normalize = DBA_NORM_DEFAULT, library = DBA_LIBSIZE_DEFAULT,
background = FALSE, spikein = FALSE, offsets = FALSE,
libFun=mean, bRetrieve=FALSE, ...)
|
DBA |
DBA object that includes count data for a consensus peakset. |
method |
Underlying method, or vector of methods, for which to normalize. Supported methods:
|
normalize |
Either user-supplied normalization factors in a numeric vector, or a specification of a method to use to calculate normalization factors. Methods can be specified using one of the following:
|
library |
Either user-supplied library sizes in a numeric vector, or a specification of a method to use to calculate library sizes. Library sizes can be based on one of the following:
|
background |
This parameter controls the option to use "background" bins, which should not have differential enrichment between samples, as the basis for normalizing (instead of using reads counts overlapping consensus peaks). When enabled, the chromosomes for which there are peaks in the consensus peakset are tiled into large bins and reads overlapping these bins are counted. If present, If If If After counting (or setting) background bins,
both the If If |
spikein |
Either a logical value, a character vector of chromosome names,
a If If If If If Note that if |
offsets |
This parameter controls the use of offsets (matrix of normalization factors)
instead of a single normalization factor for each sample. It can either
be a logical value, a If it is a logical value and set to Alternatively, user-calculated normalization offsets can be supplied
as a |
libFun |
When For |
bRetrieve |
If set to If
If If
If
|
... |
Extra parameters to be passed to |
The default normalization parameters are as follows:
normalize=DBA_NORM_LIB
library=DBA_LIBSIZE_FULL
background=FALSE
If background=TRUE
, then the default becomes
library=DBA_LIBSIZE_BACKGROUND
.
If dba.contrast
has been
used to set up contrasts with design=FALSE
(pre-3.0 mode),
then the defaults are:
normalize=DBA_NORM_DEFAULT
library=DBA_LIBSIZE_FULL
background=FALSE
In this case, normalize=DBA_NORM_LIB
will be set for
method=DBA_DESEQ2
for backwards compatibility.
Either a DBA
object with normalization terms added,
or (if bRetrieve=TRUE
), a record
or normalization details.
The csaw
package is used to compute
background
bins and offsets
based on
limma::loessFit
.
See the DiffBind
vignette for technical details of how this
is done, and the csaw
vignette for details on
background bins and loess offsets can be used to address
different biases in ChIP-seq data.
Rory Stark
dba.count
, dba.analyze
, dba.save
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.