Mercurial > repos > ethevenot > batchcorrection
annotate runit/batchcorrection_tests.R @ 0:78cb1efd7606 draft
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
| author | ethevenot | 
|---|---|
| date | Thu, 30 Mar 2017 12:10:43 -0400 | 
| parents | |
| children | 
| rev | line source | 
|---|---|
| 0 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 1 test_input_allLoessPool <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 2 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 3 testDirC <- "input" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 4 determineL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 5 allLoessL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 6 argLs <- list(method = "all_loess_pool", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 7 span = "1") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 8 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 9 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 10 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 11 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 12 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 13 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 14 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 15 checkEqualsNumeric(outLs[['datMN']][1, 1], 25803076, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 16 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 17 } | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 18 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 19 test_input_allLoessSample <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 20 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 21 testDirC <- "input" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 22 determineL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 23 allLoessL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 24 argLs <- list(method = "all_loess_sample", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 25 span = "1") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 26 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 27 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 28 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 29 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 30 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 31 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 32 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 33 checkEqualsNumeric(outLs[['datMN']][1, 1], 23402048, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 34 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 35 } | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 36 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 37 test_example1_allLoessSample <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 38 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 39 testDirC <- "example1" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 40 determineL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 41 allLoessL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 42 argLs <- list(method = "all_loess_sample", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 43 span = "1") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 44 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 45 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 46 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 47 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 48 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 49 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 50 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 51 checkEqualsNumeric(outLs[['datMN']][1, 1], 21732604, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 52 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 53 } | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 54 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 55 test_example1_allLoessSampleSpan06 <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 56 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 57 testDirC <- "example1" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 58 determineL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 59 allLoessL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 60 argLs <- list(method = "all_loess_sample", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 61 span = "0.6") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 62 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 63 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 64 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 65 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 66 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 67 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 68 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 69 checkEqualsNumeric(outLs[['datMN']][1, 1], 134619170, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 70 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 71 } | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 72 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 73 test_sacurine_allLoessPool <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 74 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 75 testDirC <- "sacurine" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 76 determineL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 77 allLoessL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 78 argLs <- list(method = "all_loess_pool", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 79 span = "1") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 80 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 81 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 82 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 83 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 84 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 85 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 86 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 87 checkEqualsNumeric(outLs[['datMN']]["HU_neg_017", "M53T345"], 7902.366, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 88 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 89 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 90 } | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 91 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 92 test_sacurine_determinebc <- function() { | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 93 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 94 testDirC <- "sacurine" | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 95 determineL <- TRUE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 96 allLoessL <- FALSE | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 97 argLs <- list(ref_factor = "batch", | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 98 span = "none") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 99 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 100 if(!allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 101 argLs[["analyse"]] <- ifelse(determineL, "determine_bc", "batch_correction") | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 102 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 103 argLs <- c(defaultArgF(testDirC, determineL = determineL), argLs) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 104 outLs <- wrapperCallF(argLs, allLoessL = allLoessL) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 105 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 106 checkEqualsNumeric(outLs[['sumDF']]["M59T62", "batch.2.linear"], 3, tolerance = 1e-3) | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 107 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 108 | 
| 
78cb1efd7606
planemo upload for repository https://github.com/workflow4metabolomics/batch_correction.git commit 400138235741cbb21fd7c7ddeeb572235fa769c2-dirty
 ethevenot parents: diff
changeset | 109 } | 
