Convert a `dbasResult` to a `list` of `featureRecord`s
Source:R/screening-convertToRecord.R
convertToRecord.RdThe results of DBAS file scanning (`scanResult`) are converted to the NTSPortal `featureRecord` format. Compound and sample metadata are collected from the `msrawfileRecords` argument and the spectral library (CSL).
Examples
if (FALSE) { # \dontrun{
dbComm <- getDbComm()
recs <- getTableAsRecords(
dbComm,
"ntsp25.1_msrawfiles",
searchBlock = list(query = list(regexp = list(filename = "Des_.._.._pos.mzXML"))),
newMsrawfilesRecord
)
recsBlanks <- getTableAsRecords(
dbComm,
"ntsp25.1_msrawfiles",
searchBlock = list(query = list(regexp = list(path = ".*mud_pos/BW.*"))),
newMsrawfilesRecord
)
res <- scanBatchDbas(c(recs, recsBlanks), "Methyltriphenylphosphonium")
featureRecs <- convertToRecord(res, c(recs, recsBlanks))
} # }