comparison create_sqlite_db.R @ 13:4acad02faf32 draft

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e6935a8c6a3da23f47a753ab5a8159fa9d165535
author tomnl
date Fri, 11 May 2018 06:08:10 -0400
parents 225009d1f603
children 69d5cb5a8e90
comparison
equal deleted inserted replaced
12:225009d1f603 13:4acad02faf32
41 } 41 }
42 42
43 43
44 return(list(pa, xset)) 44 return(list(pa, xset))
45 } 45 }
46
46 47
47 48
48 49
49 option_list <- list( 50 option_list <- list(
50 make_option(c("-o", "--out_dir"), type="character"), 51 make_option(c("-o", "--out_dir"), type="character"),
107 }else{ 108 }else{
108 grp_peaklist = opt$grp_peaklist 109 grp_peaklist = opt$grp_peaklist
109 } 110 }
110 111
111 112
112 print(pa@fileList) 113
113 print(xset@filepaths)
114 114
115 115
116 db_pth <- msPurity::create_database(pa, xset=xset, xsa=xa, out_dir=opt$out_dir, 116 db_pth <- msPurity::create_database(pa, xset=xset, xsa=xa, out_dir=opt$out_dir,
117 grp_peaklist=grp_peaklist, db_name=opt$db_name) 117 grp_peaklist=grp_peaklist, db_name=opt$db_name)
118 118
119 print(db_pth)
119 120
120 if (!is.null(opt$eic)){ 121 if (!is.null(opt$eic)){
121 if (is.null(opt$raw_rt_columns)){ 122 if (is.null(opt$raw_rt_columns)){
122 rtrawColumns <- FALSE 123 rtrawColumns <- FALSE
123 }else{ 124 }else{
124 rtrawColumns <- TRUE 125 rtrawColumns <- TRUE
125 } 126 }
127 # previous check should have matched filelists together
128 xset@filepaths <- unname(pa@fileList)
126 129
127 # Saves the EICS into the previously created database 130 # Saves the EICS into the previously created database
128 px <- msPurity::purityX(xset, saveEIC = TRUE, 131 px <- msPurity::purityX(xset, saveEIC = TRUE,
129 cores=opt$cores, sqlitePth=db_pth, 132 cores=opt$cores, sqlitePth=db_pth,
130 rtrawColumns = rtrawColumns) 133 rtrawColumns = rtrawColumns)