Mercurial > repos > workflow4metabolomics > mixmodel4repeated_measures
annotate mixmodel_wrapper.R @ 0:a4d89d47646f draft default tip
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
author | workflow4metabolomics |
---|---|
date | Mon, 16 May 2022 09:25:01 +0000 |
parents | |
children |
rev | line source |
---|---|
0
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
1 #!/usr/bin/env Rscript |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
2 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
3 library(lme4) ## mixed model computing |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
4 library(Matrix) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
5 library(MASS) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
6 library(lmerTest) ## computing pvalue and lsmeans from results of lme4 package |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
7 library(multtest) ## multiple testing |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
8 library(ggplot2) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
9 library(gridExtra) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
10 library(grid) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
11 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
12 source_local <- function(fname) { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
13 argv <- commandArgs(trailingOnly = FALSE) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
14 base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
15 source(paste(base_dir, fname, sep = "/")) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
16 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
17 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
18 source_local("mixmodel_script.R") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
19 source_local("diagmfl.R") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
20 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
21 parse_args <- function() { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
22 args <- commandArgs() |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
23 start <- which(args == "--args")[1] + 1 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
24 if (is.na(start)) { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
25 return(list()) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
26 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
27 seq_by2 <- seq(start, length(args), by = 2) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
28 result <- as.list(args[seq_by2 + 1]) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
29 names(result) <- args[seq_by2] |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
30 return(result) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
31 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
32 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
33 argVc <- unlist(parse_args()) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
34 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
35 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
36 ## Initializing |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
37 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
38 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
39 ## options |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
40 ##-------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
41 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
42 strAsFacL <- options()$stringsAsFactors |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
43 options(stringsAsFactors = FALSE) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
44 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
45 ## constants |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
46 ##---------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
47 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
48 modNamC <- "mixmodel" ## module name |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
49 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
50 topEnvC <- environment() |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
51 flagC <- "\n" |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
52 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
53 ## functions |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
54 ##---------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
55 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
56 flgF <- function(tesC, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
57 envC = topEnvC, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
58 txtC = NA) { ## management of warning and error messages |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
59 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
60 tesL <- eval(parse(text = tesC), envir = envC) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
61 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
62 if (!tesL) { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
63 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
64 sink(NULL) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
65 stpTxtC <- ifelse(is.na(txtC), |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
66 paste0(tesC, " is FALSE"), |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
67 txtC) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
68 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
69 stop(stpTxtC, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
70 call. = FALSE) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
71 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
72 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
73 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
74 } ## flgF |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
75 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
76 ## log file |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
77 ##--------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
78 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
79 sink(argVc["information"]) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
80 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
81 cat("\nStart of the '", modNamC, "' Galaxy module call: ", format(Sys.time(), "%a %d %b %Y %X"), "\n", sep = "") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
82 cat("\nParameters used:\n\n") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
83 print(argVc) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
84 cat("\n\n") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
85 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
86 ## loading |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
87 ##-------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
88 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
89 datMN <- t(as.matrix(read.table(argVc["dataMatrix_in"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
90 check.names = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
91 header = TRUE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
92 row.names = 1, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
93 sep = "\t"))) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
94 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
95 samDF <- read.table(argVc["sampleMetadata_in"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
96 check.names = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
97 header = TRUE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
98 row.names = 1, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
99 sep = "\t") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
100 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
101 varDF <- read.table(argVc["variableMetadata_in"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
102 check.names = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
103 header = TRUE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
104 row.names = 1, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
105 sep = "\t") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
106 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
107 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
108 ## checking |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
109 ##--------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
110 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
111 flgF("identical(rownames(datMN), rownames(samDF))", txtC = "Column names of the dataMatrix are not identical to the row names of the sampleMetadata; check your data with the 'Check Format' module in the 'Quality Control' section") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
112 flgF("identical(colnames(datMN), rownames(varDF))", txtC = "Row names of the dataMatrix are not identical to the row names of the variableMetadata; check your data with the 'Check Format' module in the 'Quality Control' section") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
113 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
114 flgF("argVc['time'] %in% colnames(samDF)", txtC = paste0("Required time factor '", argVc["time"], "' could not be found in the column names of the sampleMetadata")) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
115 flgF("argVc['subject'] %in% colnames(samDF)", txtC = paste0("Required subject factor '", argVc["subject"], "' could not be found in the column names of the sampleMetadata")) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
116 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
117 flgF("mode(samDF[, argVc['time']]) %in% c('character', 'numeric')", txtC = paste0("The '", argVc["time"], "' column of the sampleMetadata should contain either number only, or character only")) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
118 flgF("mode(samDF[, argVc['subject']]) %in% c('character', 'numeric')", txtC = paste0("The '", argVc["subject"], "' column of the sampleMetadata should contain either number only, or character only")) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
119 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
120 flgF("argVc['adjC'] %in% c('holm', 'hochberg', 'hommel', 'bonferroni', 'BH', 'BY', 'fdr', 'none')") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
121 flgF("argVc['trf'] %in% c('none', 'log10', 'log2')") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
122 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
123 flgF("0 <= as.numeric(argVc['thrN']) && as.numeric(argVc['thrN']) <= 1", txtC = "(corrected) p-value threshold must be between 0 and 1") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
124 flgF("argVc['diaR'] %in% c('no', 'yes')") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
125 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
126 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
127 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
128 ## Formating |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
129 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
130 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
131 if (argVc["dff"] == "Satt") { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
132 dffmeth <- "Satterthwaite" |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
133 } else { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
134 dffmeth <- "Kenward-Roger" |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
135 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
136 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
137 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
138 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
139 ## Computation |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
140 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
141 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
142 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
143 varDFout <- lmixedm(datMN = datMN, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
144 samDF = samDF, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
145 varDF = varDF, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
146 fixfact = argVc["fixfact"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
147 time = argVc["time"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
148 subject = argVc["subject"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
149 logtr = argVc["trf"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
150 pvalCutof = argVc["thrN"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
151 pvalcorMeth = argVc["adjC"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
152 dffOption = dffmeth, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
153 visu = argVc["diaR"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
154 least.confounded = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
155 outlier.limit = 3, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
156 pdfC = argVc["out_graph_pdf"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
157 pdfE = argVc["out_estim_pdf"] |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
158 ) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
159 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
160 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
161 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
162 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
163 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
164 ## Rounding |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
165 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
166 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
167 if (argVc["rounding"] == "yes") { |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
168 varDFout[, which(!(colnames(varDFout) %in% colnames(varDF)))] <- apply(varDFout[, which(!(colnames(varDFout) %in% colnames(varDF)))], 2, round, digits = as.numeric(argVc["decplaces"])) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
169 } |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
170 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
171 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
172 ## Ending |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
173 ##------------------------------ |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
174 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
175 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
176 ## saving |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
177 ##-------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
178 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
179 varDFout <- cbind.data.frame(variableMetadata = rownames(varDFout), |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
180 varDFout) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
181 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
182 write.table(varDFout, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
183 file = argVc["variableMetadata_out"], |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
184 quote = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
185 row.names = FALSE, |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
186 sep = "\t") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
187 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
188 ## closing |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
189 ##-------- |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
190 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
191 cat("\n\nEnd of '", modNamC, "' Galaxy module call: ", |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
192 as.character(Sys.time()), "\n", sep = "") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
193 cat("\nInformation about R (version, Operating System, attached or loaded packages):\n\n") |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
194 sessionInfo() |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
195 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
196 sink() |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
197 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
198 options(stringsAsFactors = strAsFacL) |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
199 |
a4d89d47646f
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics commit 8d2ca678d973501b60479a8dc3f212eecd56eab8
workflow4metabolomics
parents:
diff
changeset
|
200 rm(list = ls()) |