Skip to contents

The 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).

Usage

# S3 method for class 'dbasResult'
convertToRecord(scanResult, msrawfileRecords)

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))
} # }