Description Usage Arguments Value Author(s) See Also Examples
Apply a test to different genesets using the same reference/control set
1 | pvalByGeneSet(tbdist, univ = "Universe", FUN, ...)
|
tbdist |
A data frame with the following columns:
|
univ |
Character string giving the name of the control set (should be in the GeneSet column). |
FUN |
A function returning a single pvalue and that takes at least 2 arguments:
the data frame .x and .y, of the same form as |
... |
further arguments passed to FUN |
A tibble with 2 columns: GeneSet and pvalue
Pascal GP Martin
1 2 3 4 5 6 7 8 9 10 | ## Create some random distance data
set.seed(123)
mydistData <- data.frame(GeneName = stringi::stri_rand_strings(600, 5),
Distance = sample(1:5000, 600, replace=TRUE),
GeneSet = sample(c("TestSet1", "TestSet2", "RefSet"),
600, replace= TRUE))
## Apply Kolmogorov-Smirnov test to the different test sets
pvalByGeneSet(tbdist = mydistData,
univ = "RefSet",
FUN = ksfun)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.