annotate combineAnnotations.R @ 15:70257c77ea04 draft default tip

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
author tomnl
date Wed, 27 Nov 2019 12:34:20 +0000
parents c43861c6924b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
1 library(optparse)
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
2 library(msPurity)
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
3 print(sessionInfo())
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
4
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
5 # Get the parameter
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
6 option_list <- list(
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
7 make_option(c("-s","--sm_resultPth"),type="character"),
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
8 make_option(c("-m","--metfrag_resultPth"),type="character"),
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
9 make_option(c("-c","--sirius_csi_resultPth"),type="character"),
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
10 make_option(c("-p","--probmetab_resultPth"),type="character"),
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
11 make_option(c("-l","--ms1_lookup_resultPth"),type="character"),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
13 make_option("--ms1_lookup_checkAdducts", action="store_true"),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
14 make_option("--ms1_lookup_keepAdducts", type="character", default=NA),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
15 make_option("--ms1_lookup_dbSource", type="character", default="hmdb"),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
16
15
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
17 make_option("--sm_weight", type="numeric"),
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
18 make_option("--metfrag_weight", type="numeric"),
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
19 make_option("--sirius_csi_weight", type="numeric"),
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
20 make_option("--probmetab_weight", type="numeric"),
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
21 make_option("--ms1_lookup_weight", type="numeric"),
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
22 make_option("--biosim_weight", type="numeric"),
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
23
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
24 make_option("--create_new_database", action="store_true"),
15
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
25 make_option("--outdir", type="character", default="."),
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
26
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
27 make_option("--compoundDbType", type="character", default="sqlite"),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
28 make_option("--compoundDbPth", type="character", default=NA),
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
29 make_option("--compoundDbHost", type="character", default=NA)
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
30 )
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
31 opt <- parse_args(OptionParser(option_list=option_list))
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
32
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
33 print(opt)
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
34
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
35 if (!is.null(opt$create_new_database)){
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
36 sm_resultPth <- file.path(opt$outdir, 'combined_annotations.sqlite')
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
37 file.copy(opt$sm_resultPth, sm_resultPth)
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
38 }else{
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
39 sm_resultPth <- opt$sm_resultPth
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
40 }
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
41
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
42 if (is.null(opt$ms1_lookup_checkAdducts)){
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
43 opt$ms1_lookup_checkAdducts <- FALSE
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
44 }
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
45 if (!is.null(opt$ms1_lookup_keepAdducts)){
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
46 opt$ms1_lookup_keepAdducts <- gsub("__ob__", "[", opt$ms1_lookup_keepAdducts)
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
47 opt$ms1_lookup_keepAdducts <- gsub("__cb__", "]", opt$ms1_lookup_keepAdducts)
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
48 ms1_lookup_keepAdducts <- strsplit(opt$ms1_lookup_keepAdducts, ",")[[1]]
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
49 }
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
50
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
51 weights <-list('sm'=opt$sm_weight,
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
52 'metfrag'=opt$metfrag_weight,
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
53 'sirius_csifingerid'= opt$sirius_csi_weight,
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
54 'probmetab'=opt$probmetab_weight,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
55 'ms1_lookup'=opt$ms1_lookup_weight,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
56 'biosim'=opt$biosim_weight
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
57 )
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
58 print(weights)
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
59 if (round(!sum(unlist(weights),0)==1)){
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
60
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
61 stop(paste0('The weights should sum to 1 not ', sum(unlist(weights))))
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
62 }
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
63
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
64 if (opt$compoundDbType=='local_config'){
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
65 # load in compound config
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
66 # Soure local function taken from workflow4metabolomics
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
67 source_local <- function(fname){ argv <- commandArgs(trailingOnly=FALSE); base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)); source(paste(base_dir, fname, sep="/")) }
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
68 source_local("dbconfig.R")
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
69 }else{
15
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
70 compoundDbPth = opt$compoundDbPth
70257c77ea04 planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
tomnl
parents: 13
diff changeset
71 compoundDbType = opt$compoundDbType
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
72 compoundDbName = NA
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
73 compoundDbHost = NA
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
74 compoundDbPort = NA
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
75 compoundDbUser = NA
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
76 compoundDbPass = NA
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
77 }
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
78
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
79
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
80
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
81 summary_output <- msPurity::combineAnnotations(
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
82 sm_resultPth = sm_resultPth,
13
c43861c6924b planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 4f88143938cc198436c2691443832c87e2c31cd0
tomnl
parents: 12
diff changeset
83 compoundDbPth = compoundDbPth,
12
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
84 metfrag_resultPth = opt$metfrag_resultPth,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
85 sirius_csi_resultPth = opt$sirius_csi_resultPth,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
86 probmetab_resultPth = opt$probmetab_resultPth,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
87 ms1_lookup_resultPth = opt$ms1_lookup_resultPth,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
88 ms1_lookup_keepAdducts = ms1_lookup_keepAdducts,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
89 ms1_lookup_checkAdducts = opt$ms1_lookup_checkAdducts,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
90
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
91 compoundDbType = compoundDbType,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
92 compoundDbName = compoundDbName,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
93 compoundDbHost = compoundDbHost,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
94 compoundDbPort = compoundDbPort,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
95 compoundDbUser = compoundDbUser,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
96 compoundDbPass = compoundDbPass,
5dd61e94d70d planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit bbbcc75d51c020446fd00d76f908a6250266cfea
tomnl
parents: 5
diff changeset
97 weights = weights)
0
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
98
df2efceff4cd planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
tomnl
parents:
diff changeset
99 write.table(summary_output, file.path(opt$outdir, 'combined_annotations.tsv'), sep = '\t', row.names = FALSE)
4
13985cdcf0ba planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e05cb49ba56d359fec34f132d1c9ace582e5b483-dirty
tomnl
parents: 0
diff changeset
100
13985cdcf0ba planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e05cb49ba56d359fec34f132d1c9ace582e5b483-dirty
tomnl
parents: 0
diff changeset
101
13985cdcf0ba planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e05cb49ba56d359fec34f132d1c9ace582e5b483-dirty
tomnl
parents: 0
diff changeset
102 closeAllConnections()
13985cdcf0ba planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e05cb49ba56d359fec34f132d1c9ace582e5b483-dirty
tomnl
parents: 0
diff changeset
103