Usage
detPeakPvals(DBA, method = "MMD", group1, group2, name1 = "g1", name2 = "g2", Usefiltered = TRUE, PeakIDs = NULL, quantprobs = seq(0, 1,0.05), fieldName = "NormTotalCounts",bNormWidth=FALSE, bSampleMean = FALSE, overWrite = FALSE)
Arguments
DBA
DBA object, after running getPeakProfiles and compHistDists.
method
which distance method should be used. (can be 'MMD','GMD' or 'Pearson')
group1
sample ids of control group
group2
sample ids of treatment group
name1
name of control group
name2
name of treatment group
Usefiltered
If TRUE, only peaks that have passed the filter
to detect Outliers are used. findOutlier must be run first, otherwise all
peaks are used
PeakIDs
specify a subset of peaks which should
be used for pooling (for example if outliers with extreme counts
should be excluded)
quantprobs
numeric vector of probabilities with values in
[0,1], used to specify which peaks are pooled together to estimate
variances.
fieldName
name of list element in DBA$MD that is used for pooling of
peaks. (e.g. NormTotalCounts or RawTotalCounts)
bNormWidth
logical indicating if counts should be normalized by
peak width
bSampleMean
If true counts are averaged across all
samples. Otherwise means are computed for each group separately.
overWrite
if TRUE, previous computed p-values are overwritten