Usage
test.diff.binding(dat, lib.size = NULL, dispersion = NULL, common.disp = TRUE, prior.n = 10, two.sample.method = "composite.null", allowable.FC = 1.5, collapsed.quant = 0.5)
Arguments
dat
a list with the item site.count
, which is a matrix of read counts at binding sites.
lib.size
a vector of library size of each ChIP sample.
dispersion
The dispersion parameter in Negative Binomial distribution. Could be a numerical value or a vector with a length of the number of consensus sites.
common.disp
logical, TRUE (use common dispersion parameter for all sites) or FALSE (use site-specific dispersion).
prior.n
a parameter regulate the degree of pooling when using site-specific dispersion (common.disp
=FALSE).
two.sample.method
the method to use when comparing two condition with no replicates. The default is to test a composite null that allow certain fold change allowable.FC
. Otherwise user should provide a dispersion parameter.
allowable.FC
allowable fold change when testing a composite null. Default value 1.5.
collapsed.quant
the quantile to use when testing more than two conditions without replicates. Default value is 0.5, the median.