Mercurial > repos > ethevenot > univariate
comparison runit/univariate_tests.R @ 2:09799fc16bc6 draft
planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 2c0d4d97c208edca1ada2035a7b7af9c4eb31afe
author | ethevenot |
---|---|
date | Sat, 06 Aug 2016 12:42:42 -0400 |
parents | |
children | 140290de7986 |
comparison
equal
deleted
inserted
replaced
1:fdefbc780d2e | 2:09799fc16bc6 |
---|---|
1 test_input_kruskal <- function() { | |
2 | |
3 testDirC <- "input" | |
4 argLs <- list(facC = "ageGroup", | |
5 tesC = "kruskal", | |
6 adjC = "fdr", | |
7 thrN = "0.05") | |
8 | |
9 argLs <- c(defaultArgF(testDirC), argLs) | |
10 outLs <- wrapperCallF(argLs) | |
11 | |
12 checkEqualsNumeric(outLs[["varDF"]]["HMDB01032", "ageGroup_kruskal_senior.experienced_pva"], 0.1231246, tolerance = 1e-6) | |
13 | |
14 } | |
15 | |
16 test_example1_wilcoxDif <- function() { | |
17 | |
18 testDirC <- "example1" | |
19 argLs <- list(facC = "jour", | |
20 tesC = "wilcoxon", | |
21 adjC = "fdr", | |
22 thrN = "0.05") | |
23 | |
24 argLs <- c(defaultArgF(testDirC), argLs) | |
25 outLs <- wrapperCallF(argLs) | |
26 | |
27 checkEqualsNumeric(outLs[["varDF"]]["MT3", "jour_wilcoxon_J3.J10_dif"], 0.216480042, tolerance = 1e-8) | |
28 | |
29 } | |
30 | |
31 test_example1_ttestFdr <- function() { | |
32 | |
33 testDirC <- "example1" | |
34 argLs <- list(facC = "jour", | |
35 tesC = "ttest", | |
36 adjC = "fdr", | |
37 thrN = "0.05") | |
38 | |
39 argLs <- c(defaultArgF(testDirC), argLs) | |
40 outLs <- wrapperCallF(argLs) | |
41 | |
42 checkEqualsNumeric(outLs[["varDF"]]["MT3", "jour_ttest_J3.J10_fdr"], 0.7605966, tolerance = 1e-6) | |
43 | |
44 } |