Mercurial > repos > tomnl > mspurity_createmsp
comparison createDatabase.R @ 11:4b3b0f5a55d9 draft
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit b6b8da66a6eef180ca8e333f98fc4b7575bac7b3
| author | tomnl |
|---|---|
| date | Thu, 27 Jun 2019 12:34:09 -0400 |
| parents | e6a78f89ee07 |
| children |
comparison
equal
deleted
inserted
replaced
| 10:1dd282c0294e | 11:4b3b0f5a55d9 |
|---|---|
| 152 return(x) | 152 return(x) |
| 153 | 153 |
| 154 } | 154 } |
| 155 | 155 |
| 156 xset@peaks <- as.matrix(plyr::ddply(data.frame(xset@peaks), ~ sample, convert2Raw, xset=xset)) | 156 xset@peaks <- as.matrix(plyr::ddply(data.frame(xset@peaks), ~ sample, convert2Raw, xset=xset)) |
| 157 | 157 |
| 158 # Saves the EICS into the previously created database | 158 # Saves the EICS into the previously created database |
| 159 xgroups <- as.numeric(as.character(unique(pa@grped_df$grpid))) | 159 px <- msPurity::purityX(xset, |
| 160 px <- msPurity::purityX(xset, | |
| 161 saveEIC = TRUE, | 160 saveEIC = TRUE, |
| 162 cores=1, | 161 cores=1, |
| 163 sqlitePth=dbPth, | 162 sqlitePth=dbPth, |
| 164 rtrawColumns = TRUE, | 163 rtrawColumns = TRUE) |
| 165 xgroups = xgroups) | |
| 166 | 164 |
| 167 } | 165 } |
| 168 | 166 |
| 169 closeAllConnections() | 167 closeAllConnections() |
