Mercurial > repos > tomnl > track_rt_raw
comparison create_sqlite_db.R @ 13:c7dd031d02b9 draft
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e6935a8c6a3da23f47a753ab5a8159fa9d165535
| author | tomnl |
|---|---|
| date | Fri, 11 May 2018 05:57:56 -0400 |
| parents | 291c9c7f63da |
| children | a5381894c197 |
comparison
equal
deleted
inserted
replaced
| 12:291c9c7f63da | 13:c7dd031d02b9 |
|---|---|
| 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) |
