Mercurial > repos > lecorguille > xcms_fillpeaks
annotate xcms_fillpeaks.r @ 44:1b5fb5a27f5e draft
"planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f1caf2a3bf23cf319a75dd12c86402555dd02617"
| author | workflow4metabolomics | 
|---|---|
| date | Wed, 12 Feb 2020 13:25:04 +0000 | 
| parents | eeade1310758 | 
| children | 1a711c1b8b1f | 
| rev | line source | 
|---|---|
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 1 #!/usr/bin/env Rscript | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 2 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 3 # ----- LOG FILE ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 4 log_file=file("log.txt", open = "wt") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 5 sink(log_file) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 6 sink(log_file, type = "output") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 7 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 8 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 9 # ----- PACKAGE ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 10 cat("\tSESSION INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 11 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 12 #Import the different functions | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 13 source_local <- function(fname){ argv <- commandArgs(trailingOnly=FALSE); base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)); source(paste(base_dir, fname, sep="/")) } | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 14 source_local("lib.r") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 15 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 16 pkgs <- c("xcms","batch") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 17 loadAndDisplayPackages(pkgs) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 18 cat("\n\n"); | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 19 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 20 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 21 # ----- ARGUMENTS ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 22 cat("\tARGUMENTS INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 23 args = parseCommandArgs(evaluate=FALSE) #interpretation of arguments given in command line as an R list of objects | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 24 write.table(as.matrix(args), col.names=F, quote=F, sep='\t') | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 25 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 26 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 27 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 28 # ----- PROCESSING INFILE ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 29 cat("\tARGUMENTS PROCESSING INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 30 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 31 #saving the specific parameters | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 32 method <- "FillChromPeaks" | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 33 | 
| 34 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 34 if (!is.null(args$convertRTMinute)) convertRTMinute <- args$convertRTMinute | 
| 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 35 if (!is.null(args$numDigitsMZ)) numDigitsMZ <- args$numDigitsMZ | 
| 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 36 if (!is.null(args$numDigitsRT)) numDigitsRT <- args$numDigitsRT | 
| 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 37 if (!is.null(args$intval)) intval <- args$intval | 
| 38 
a3e80894efd3
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e131bacd37bfaf2c4132fd214c81db9b8a9df513
 lecorguille parents: 
35diff
changeset | 38 if (!is.null(args$naTOzero)) naTOzero <- args$naTOzero | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 39 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 40 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 41 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 42 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 43 # ----- ARGUMENTS PROCESSING ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 44 cat("\tINFILE PROCESSING INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 45 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 46 #image is an .RData file necessary to use xset variable given by previous tools | 
| 34 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 47 load(args$image) | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 48 if (!exists("xdata")) stop("\n\nERROR: The RData doesn't contain any object called 'xdata'. This RData should have been created by an old version of XMCS 2.*") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 49 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 50 #Verification of a group step before doing the fillpeaks job. | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 51 if (!hasFeatures(xdata)) stop("You must always do a group step after a retcor. Otherwise it won't work for the fillpeaks step") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 52 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 53 # Handle infiles | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 54 if (!exists("singlefile")) singlefile <- NULL | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 55 if (!exists("zipfile")) zipfile <- NULL | 
| 44 
1b5fb5a27f5e
"planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f1caf2a3bf23cf319a75dd12c86402555dd02617"
 workflow4metabolomics parents: 
43diff
changeset | 56 rawFilePath <- retrieveRawfileInTheWorkingDirectory(singlefile, zipfile, args) | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 57 zipfile <- rawFilePath$zipfile | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 58 singlefile <- rawFilePath$singlefile | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 59 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 60 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 61 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 62 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 63 # ----- MAIN PROCESSING INFO ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 64 cat("\tMAIN PROCESSING INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 65 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 66 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 67 cat("\t\tCOMPUTE\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 68 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 69 cat("\t\t\tFilling missing peaks using default settings\n") | 
| 34 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 70 # clear the arguement list to remove unexpected key/value as singlefile_galaxyPath or method ... | 
| 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 71 args <- args[names(args) %in% slotNames(do.call(paste0(method,"Param"), list()))] | 
| 
d8bac1291473
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f01148783819c37e474790dbd56619862960448a
 lecorguille parents: 
31diff
changeset | 72 | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 73 fillChromPeaksParam <- do.call(paste0(method,"Param"), args) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 74 print(fillChromPeaksParam) | 
| 42 
a98dbb09fed1
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f0d42bca2f34c58c04b55e5990058d479c0ae639
 lecorguille parents: 
38diff
changeset | 75 | 
| 
a98dbb09fed1
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f0d42bca2f34c58c04b55e5990058d479c0ae639
 lecorguille parents: 
38diff
changeset | 76 # back compatibility between xcms-3.0.0 and xcms-3.5.2 | 
| 
a98dbb09fed1
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f0d42bca2f34c58c04b55e5990058d479c0ae639
 lecorguille parents: 
38diff
changeset | 77 xdata <- updateObject(xdata) | 
| 44 
1b5fb5a27f5e
"planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f1caf2a3bf23cf319a75dd12c86402555dd02617"
 workflow4metabolomics parents: 
43diff
changeset | 78 register(SerialParam()) | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 79 xdata <- fillChromPeaks(xdata, param=fillChromPeaksParam) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 80 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 81 if (exists("intval")) { | 
| 38 
a3e80894efd3
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e131bacd37bfaf2c4132fd214c81db9b8a9df513
 lecorguille parents: 
35diff
changeset | 82 getPeaklistW4M(xdata, intval, convertRTMinute, numDigitsMZ, numDigitsRT, naTOzero, "variableMetadata.tsv", "dataMatrix.tsv") | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 83 } | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 84 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 85 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 86 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 87 # ----- EXPORT ----- | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 88 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 89 cat("\tXCMSnExp OBJECT INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 90 print(xdata) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 91 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 92 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 93 cat("\txcmsSet OBJECT INFO\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 94 # Get the legacy xcmsSet object | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 95 xset <- getxcmsSetObject(xdata) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 96 print(xset) | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 97 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 98 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 99 #saving R data in .Rdata file to save the variables used in the present tool | 
| 43 
eeade1310758
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit a5136bfc124956893f4f0c91808d1c0d78c4ea01
 lecorguille parents: 
42diff
changeset | 100 objects2save = c("xdata","zipfile","singlefile","md5sumList","sampleNamesList") #, "chromTIC", "chromBPI", "chromTIC_adjusted", "chromBPI_adjusted") | 
| 31 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 101 save(list=objects2save[objects2save %in% ls()], file="fillpeaks.RData") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 102 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 103 cat("\n\n") | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 104 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 105 | 
| 
8fd5b5afa24d
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit e384d6dd5f410799ec211f73bca0b5d5d7bc651e
 lecorguille parents: diff
changeset | 106 cat("\tDONE\n") | 
