Mercurial > repos > tomnl > create_sqlite_db
comparison create_sqlite_db.R @ 14:69d5cb5a8e90 draft
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e6935a8c6a3da23f47a753ab5a8159fa9d165535-dirty
| author | tomnl |
|---|---|
| date | Sun, 13 May 2018 09:39:56 -0400 |
| parents | 4acad02faf32 |
| children | cf24c8ca7a57 |
comparison
equal
deleted
inserted
replaced
| 13:4acad02faf32 | 14:69d5cb5a8e90 |
|---|---|
| 113 | 113 |
| 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 DBI::dbDisconnect() |
| 119 print(db_pth) | 119 print(db_pth) |
| 120 | 120 |
| 121 if (!is.null(opt$eic)){ | 121 if (!is.null(opt$eic)){ |
| 122 if (is.null(opt$raw_rt_columns)){ | 122 if (is.null(opt$raw_rt_columns)){ |
| 123 rtrawColumns <- FALSE | 123 rtrawColumns <- FALSE |
| 127 # previous check should have matched filelists together | 127 # previous check should have matched filelists together |
| 128 xset@filepaths <- unname(pa@fileList) | 128 xset@filepaths <- unname(pa@fileList) |
| 129 | 129 |
| 130 # Saves the EICS into the previously created database | 130 # Saves the EICS into the previously created database |
| 131 px <- msPurity::purityX(xset, saveEIC = TRUE, | 131 px <- msPurity::purityX(xset, saveEIC = TRUE, |
| 132 cores=opt$cores, sqlitePth=db_pth, | 132 cores=1, sqlitePth=db_pth, |
| 133 rtrawColumns = rtrawColumns) | 133 rtrawColumns = rtrawColumns) |
| 134 } | 134 } |
| 135 | 135 |
| 136 con <- DBI::dbConnect(RSQLite::SQLite(), db_pth) | 136 con <- DBI::dbConnect(RSQLite::SQLite(), db_pth) |
| 137 | 137 |
