Mercurial > repos > ethevenot > profia
annotate runit/profia_tests.R @ 3:de9d1270a9ae draft default tip
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit d7c2aaa255108244f5be6fb7e48b3dec76422ebe
author | ethevenot |
---|---|
date | Wed, 28 Feb 2018 11:22:30 -0500 |
parents | 3f8ae071bdda |
children |
rev | line source |
---|---|
0
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
1 test_plasfia_default <- function() { |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
2 |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
3 testDirC <- "plasfia" |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
4 argLs <- list(zipfile = "./plasfia/plasFIA.zip", |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
5 library = "NULL", |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
6 ppmN = "2", |
2
3f8ae071bdda
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 19ed25c048232776369a392ddb8c1860471acd29
ethevenot
parents:
0
diff
changeset
|
7 dmzN = "0.0005", |
0
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
8 ppmGroupN = "1", |
2
3f8ae071bdda
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 19ed25c048232776369a392ddb8c1860471acd29
ethevenot
parents:
0
diff
changeset
|
9 dmzGroupN = "0.0005", |
0
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
10 fracGroupN = "0.1", |
2
3f8ae071bdda
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 19ed25c048232776369a392ddb8c1860471acd29
ethevenot
parents:
0
diff
changeset
|
11 imputeC = "randomForest") |
0
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
12 |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
13 argLs <- c(defaultArgF(testDirC), argLs) |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
14 outLs <- wrapperCallF(argLs) |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
15 |
2
3f8ae071bdda
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 19ed25c048232776369a392ddb8c1860471acd29
ethevenot
parents:
0
diff
changeset
|
16 checkEqualsNumeric(outLs[["datMN"]]["C100a", "M86.0965"], 1365657.4687182, tolerance = 1e-7) |
0
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
17 |
39ccace77270
planemo upload for repository https://github.com/workflow4metabolomics/profia.git commit 2757590af8c7ba9833ba3bebd7da7f96b20d1128-dirty
ethevenot
parents:
diff
changeset
|
18 } |