annotate transformation_wrapper.R @ 1:d971449245b1 draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 60ebb3e8919c09c18f89a5362750ae45ca84d0c2
author ethevenot
date Wed, 28 Feb 2018 09:20:37 -0500
parents c7b8e82af08e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
1 #!/usr/bin/env Rscript
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
2
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
3 library(batch) ## parseCommandArgs
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
4
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
5 # Constants
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
6 argv <- commandArgs(trailingOnly = FALSE)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
7 script.path <- sub("--file=","",argv[grep("--file=",argv)])
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
8 prog.name <- basename(script.path)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
9
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
10 # Print help
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
11 if (length(grep('-h', argv)) >0) {
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
12 cat("Usage:", prog.name,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
13 "dataMatrix_in myDataMatrixInput.tsv",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
14 "method log2|log10|sqrt",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
15 "dataMatrix_out myDataMatrixOutput.tsv",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
16 "information information.txt",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
17 "\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
18 quit(status = 0)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
19 }
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
20
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
21 source_local <- function(fname){
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
22 argv <- commandArgs(trailingOnly = FALSE)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
23 base_dir <- dirname(substring(argv[grep("--file=", argv)], 8))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
24 source(paste(base_dir, fname, sep="/"))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
25 }
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
26
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
27 source_local("transformation_script.R")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
28
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
29 argVc <- unlist(parseCommandArgs(evaluate=FALSE))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
30
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
31
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
32 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
33 ## Initializing
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
34 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
35
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
36 ## options
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
37 ##--------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
38
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
39 strAsFacL <- options()[["stringsAsFactors"]]
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
40 options(stringsAsFactors=FALSE)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
41
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
42 ## constants
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
43 ##----------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
44
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
45 modNamC <- "Transformation" ## module name
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
46
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
47
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
48 ## log file
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
49 ##---------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
50
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
51 sink(argVc[["information"]])
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
52
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
53 cat("\nStart of the '", modNamC, "' module: ",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
54 format(Sys.time(), "%a %d %b %Y %X"), "\n", sep="")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
55
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
56 ## loading
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
57 ##--------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
58
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
59 datMN <- t(as.matrix(read.table(argVc[["dataMatrix_in"]],
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
60 check.names = FALSE,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
61 header = TRUE,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
62 row.names = 1,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
63 sep = "\t")))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
64
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
65 metC <- argVc[["method"]]
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
66
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
67
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
68 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
69 ## Computation
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
70 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
71
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
72
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
73 datMN <- transformF(datMN = datMN, ## dataMatrix
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
74 metC = metC) ## transformation method
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
75
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
76
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
77 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
78 ## Ending
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
79 ##------------------------------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
80
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
81
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
82 ## saving
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
83 ##-------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
84
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
85 datDF <- cbind.data.frame(dataMatrix = colnames(datMN),
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
86 as.data.frame(t(datMN)))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
87 write.table(datDF,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
88 file = argVc[["dataMatrix_out"]],
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
89 quote = FALSE,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
90 row.names = FALSE,
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
91 sep = "\t")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
92
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
93 ## ending
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
94 ##-------
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
95
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
96 cat("\nEnd of the '", modNamC, "' Galaxy module call: ",
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
97 format(Sys.time(), "%a %d %b %Y %X"), "\n", sep = "")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
98
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
99 cat("\n\n\n============================================================================")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
100 cat("\nAdditional information about the call:\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
101 cat("\n1) Parameters:\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
102 print(cbind(value = argVc))
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
103
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
104 cat("\n2) Session Info:\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
105 sessioninfo <- sessionInfo()
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
106 cat(sessioninfo$R.version$version.string,"\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
107 cat("Main packages:\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
108 for (pkg in names(sessioninfo$otherPkgs)) { cat(paste(pkg,packageVersion(pkg)),"\t") }; cat("\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
109 cat("Other loaded packages:\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
110 for (pkg in names(sessioninfo$loadedOnly)) { cat(paste(pkg,packageVersion(pkg)),"\t") }; cat("\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
111
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
112 cat("============================================================================\n")
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
113
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
114 sink()
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
115
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
116 options(stringsAsFactors = strAsFacL)
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
117
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
118
c7b8e82af08e planemo upload for repository https://github.com/workflow4metabolomics/transformation.git commit 308ae36af707ede5697d1b8a0c93f8b5b68872cf
ethevenot
parents:
diff changeset
119 rm(list = ls())