Description Usage Arguments Details Value Examples
This function does differential binding estimation and additional
permutation analysis. This function works only if multiple replicates are
provided for comparison; otherwise, it is the same as diffRegions
which is the main function for differential binding estimation. Permutation
analysis is obtained by shuffling samples between compared conditions.
Customized shuffling can also be specified by parameter permute
for
complicated experiment designs.
1 2 3 | diffRegionsWithPerm(count, bins = NULL, meta = NULL, design, sizefac,
rccut = 15, fccut = 0.4, gap = 2, permute = NULL, maxperm = 10,
diffmeth = c("DESeq2", "limma", "ttest"))
|
count |
A matrix of read counts or a RangedSummarizedExperiment, where
columns are samples and rows are genome-wide bins. This object can be
generated by function |
bins |
If |
meta |
If |
design |
A formula object which expresses how read counts for each bin
depend on the variables in |
sizefac |
A numeric vector indicating estimated size of samples for
normalization purpose. This vector can be generated by function
|
rccut |
A numeric cutoff on normalized count matrix using
|
fccut |
A numeric cutoff on smoothed log2foldchanges of bins for bump hunting of differtial binding regions. Neighbor bins with fold change larger than this value will be merged together with allowed gaps. (Default: 0.4) |
gap |
A integer specifying the gaps allowed for bin merging, in the unit of number of bins. (Default: 2) |
permute |
A matrix where each row contains shuffled indices of all
samples. If |
maxperm |
Maximum number of permutations to be finished. (Default:10) |
diffmeth |
Method for statistical testing of differential binding. (Default: 'DESeq2') |
Three methods are provided for significance estimation of differential
binding. DESeq2
allows pseudo-estimation for comparisons without
replicates; otherwise, all methods can be used for comparisons with at least
two replicates. The design
formula can be specified as suggested by
DESeq2
and limma
if these two methods are selected. For
ttest
, design
can either contain one or two components,
referring to student's t-test or paired t-test based on logarithm scaled
data. For consistance with other packages, the last component in
design
formula is the contrast on which the final differential
estimation are reported.
The default permutation works on the main contrast only (the last component
in design
formula). If customized permutation needed, e.g. invloving
several components in design
formula, users should provided the
customized indecies of permutations through parameter permute
.
A GRanges object containing potential regions with differential binding, as well as statistical significances as meta columns.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.