compPvals: compute p-values

Description Usage Arguments Value See Also Examples

View source: R/compPvals.R

Description

This function determines peak-specific p-values based on distances between sample histograms.

Usage

1
compPvals(MD, dist.method = "MMD", diff.method = "MMD.locfit")

Arguments

MD

DBAmmd Object. This Object can be created using DBAmmd().

dist.method

specify method used for distances between samples. Currently only Maximum Mean Discrepancy (MMD) and Kolmogorov-Smirnov (KS) implemented. (DEFAULT: 'MMD')

diff.method

method used to determine p-values and false discovery rates. Currently only 'MMD.locfit' implemented. (DEFAULT: 'MMD.locfit')

Value

DBAmmd object with updated Contrasts slot.

See Also

DBAmmd,reportResults, plotDists,compDists

Examples

1
2
3
4
5
6
## Example using a small data set provided with this package:

data("MMD")
MMD.1 <- setContrast(MMD,contrast='byCondition')
MMD.1 <- compPvals(MMD.1)
reportResults(MMD.1)

MMDiff2 documentation built on Nov. 8, 2020, 11:03 p.m.