annotate runit/qualitymetrics_tests.R @ 3:acdf51018708 draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit b7e47e59ea753fe9f73f2b83bcaae895b21269f6
author ethevenot
date Wed, 28 Feb 2018 09:32:42 -0500
parents 596320b84315
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
1 test_input_default <- function() {
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
2
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
3 testDirC <- "input"
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
4 argLs <- list(CV = "FALSE",
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
5 Compa = "TRUE",
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
6 seuil = 1,
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
7 poolAsPool1L = "TRUE")
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
8
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
9 argLs <- c(defaultArgF(testDirC), argLs)
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
10 outLs <- wrapperCallF(argLs)
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
11
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
12 checkEqualsNumeric(outLs[["varDF"]]["met_033", "blankMean_over_sampleMean"], 0.004417387, tolerance = 1e-6)
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
13
b4f5b5bc01dd planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 73366dd3473c509341ab9ba1df8ba748d08a50a1
ethevenot
parents:
diff changeset
14 }
2
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
15
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
16 test_formatOrder <- function() {
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
17
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
18 ## two first samples swapped in sampleMetadata
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
19
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
20 testDirC <- "formatOrder"
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
21 argLs <- list(CV = "FALSE",
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
22 Compa = "TRUE",
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
23 seuil = 1,
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
24 poolAsPool1L = "TRUE")
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
25
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
26 argLs <- c(defaultArgF(testDirC), argLs)
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
27 outLs <- wrapperCallF(argLs)
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
28
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
29 checkEqualsNumeric(outLs[["varDF"]]["met_033", "blankMean_over_sampleMean"], 0.004417387, tolerance = 1e-6)
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
30
596320b84315 planemo upload for repository https://github.com/workflow4metabolomics/qualitymetrics.git commit 95d4658e5d9dd0421c9336b2232cc81f32879621
ethevenot
parents: 0
diff changeset
31 }