Mercurial > repos > lecorguille > xcms_merge
comparison xcms_merge.r @ 24:bf452dc6e4b0 draft
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
author | workflow4metabolomics |
---|---|
date | Mon, 15 Jul 2024 15:53:20 +0000 |
parents | 2eb424218159 |
children | 7e2770b86a0e |
comparison
equal
deleted
inserted
replaced
23:2eb424218159 | 24:bf452dc6e4b0 |
---|---|
1 #!/usr/bin/env Rscript | 1 #!/usr/bin/env Rscript |
2 | 2 |
3 #Import the different functions | 3 #Import the different functions |
4 source_local <- function(fname) { | 4 source_local <- function(fname) { |
5 argv <- commandArgs(trailingOnly = FALSE); base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)); source(paste(base_dir, fname, sep = "/")) | 5 argv <- commandArgs(trailingOnly = FALSE) |
6 base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)) | |
7 source(paste(base_dir, fname, sep = "/")) | |
6 } | 8 } |
7 source_local("lib.r") | 9 source_local("lib.r") |
8 | 10 |
9 pkgs <- c("xcms", "batch") | 11 pkgs <- c("xcms", "batch") |
10 loadAndDisplayPackages(pkgs) | 12 loadAndDisplayPackages(pkgs) |
11 cat("\n\n"); | 13 cat("\n\n") |
12 | 14 |
13 args <- parseCommandArgs(evaluate = FALSE) #interpretation of arguments given in command line as an R list of objects | 15 args <- parseCommandArgs(evaluate = FALSE) #interpretation of arguments given in command line as an R list of objects |
14 | 16 |
15 | 17 |
16 cat("\tXSET MERGING...\n") | 18 cat("\tXSET MERGING...\n") |