annotate runit/univariate_runtests.R @ 0:ab2ee3414e4e draft

planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
author ethevenot
date Tue, 24 Oct 2017 08:57:25 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
1 #!/usr/bin/env Rscript
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
2
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
3 ## Package
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
4 ##--------
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
5
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
6 library(RUnit)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
7
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
8 ## Constants
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
9 ##----------
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
10
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
11 testOutDirC <- "output"
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
12 argVc <- commandArgs(trailingOnly = FALSE)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
13 scriptPathC <- sub("--file=", "", argVc[grep("--file=", argVc)])
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
14
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
15
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
16 ## Functions
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
17 ##-----------
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
18
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
19 ## Reading tables (matrix or data frame)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
20 readTableF <- function(fileC, typeC = c("matrix", "dataframe")[1]) {
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
21
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
22 file.exists(fileC) || stop(paste0("No output file \"", fileC ,"\"."))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
23
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
24 switch(typeC,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
25 matrix = return(t(as.matrix(read.table(file = fileC,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
26 header = TRUE,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
27 row.names = 1,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
28 sep = "\t",
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
29 stringsAsFactors = FALSE)))),
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
30 dataframe = return(read.table(file = fileC,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
31 header = TRUE,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
32 row.names = 1,
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
33 sep = "\t",
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
34 stringsAsFactors = FALSE)))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
35
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
36 }
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
37
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
38 ## Call wrapper
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
39 wrapperCallF <- function(paramLs) {
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
40
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
41 ## Set program path
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
42 wrapperPathC <- file.path(dirname(scriptPathC), "..", "univariate_wrapper.R")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
43
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
44 ## Set arguments
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
45 argLs <- NULL
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
46 for (parC in names(paramLs))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
47 argLs <- c(argLs, parC, paramLs[[parC]])
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
48
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
49 ## Call
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
50 wrapperCallC <- paste(c(wrapperPathC, argLs), collapse = " ")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
51
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
52 if(.Platform$OS.type == "windows")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
53 wrapperCallC <- paste("Rscript", wrapperCallC)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
54
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
55 wrapperCodeN <- system(wrapperCallC)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
56
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
57 if (wrapperCodeN != 0)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
58 stop("Error when running univariate_wrapper.R.")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
59
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
60 ## Get output
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
61 outLs <- list()
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
62 if ("dataMatrix_out" %in% names(paramLs))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
63 outLs[["datMN"]] <- readTableF(paramLs[["dataMatrix_out"]], "matrix")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
64 if ("sampleMetadata_out" %in% names(paramLs))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
65 outLs[["samDF"]] <- readTableF(paramLs[["sampleMetadata_out"]], "dataframe")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
66 if ("variableMetadata_out" %in% names(paramLs))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
67 outLs[["varDF"]] <- readTableF(paramLs[["variableMetadata_out"]], "dataframe")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
68 if("information" %in% names(paramLs))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
69 outLs[["infVc"]] <- readLines(paramLs[["information"]])
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
70
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
71 return(outLs)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
72 }
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
73
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
74 ## Setting default parameters
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
75 defaultArgF <- function(testInDirC) {
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
76
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
77 defaultArgLs <- list()
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
78 if(file.exists(file.path(dirname(scriptPathC), testInDirC, "dataMatrix.tsv")))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
79 defaultArgLs[["dataMatrix_in"]] <- file.path(dirname(scriptPathC), testInDirC, "dataMatrix.tsv")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
80 if(file.exists(file.path(dirname(scriptPathC), testInDirC, "sampleMetadata.tsv")))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
81 defaultArgLs[["sampleMetadata_in"]] <- file.path(dirname(scriptPathC), testInDirC, "sampleMetadata.tsv")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
82 if(file.exists(file.path(dirname(scriptPathC), testInDirC, "variableMetadata.tsv")))
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
83 defaultArgLs[["variableMetadata_in"]] <- file.path(dirname(scriptPathC), testInDirC, "variableMetadata.tsv")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
84
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
85 defaultArgLs[["variableMetadata_out"]] <- file.path(dirname(scriptPathC), testOutDirC, "variableMetadata.tsv")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
86 defaultArgLs[["figure"]] <- file.path(dirname(scriptPathC), testOutDirC, "figure.pdf")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
87 defaultArgLs[["information"]] <- file.path(dirname(scriptPathC), testOutDirC, "information.txt")
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
88
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
89 defaultArgLs
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
90
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
91 }
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
92
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
93 ## Main
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
94 ##-----
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
95
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
96 ## Create output folder
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
97 file.exists(testOutDirC) || dir.create(testOutDirC)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
98
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
99 ## Run tests
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
100 test.suite <- defineTestSuite('tests', dirname(scriptPathC), testFileRegexp = paste0('^.*_tests\\.R$'), testFuncRegexp = '^.*$')
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
101 isValidTestSuite(test.suite)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
102 test.results <- runTestSuite(test.suite)
ab2ee3414e4e planemo upload for repository https://github.com/workflow4metabolomics/univariate.git commit 98e8f4464b2f7321acb010e26e2a1c82fe37096e
ethevenot
parents:
diff changeset
103 print(test.results)