The ChromBackendMzR
inherits all slots and methods from the base
ChromBackendMemory
backend, providing additional functionality for reading
chromatographic data from mzML files.
Unlike the ChromBackendMemory
backend, the ChromBackendMzR
backend
should have the dataOrigin chromatographic variables populated with the
file path of the mzML file from which the chromatographic data was read.
Note that the ChromBackendMzR
backend is read-only and does not support
direct modification of chromatographic data. However, it does support
peaksData
slot replacement, which will modify the peaksData
slot but not
the local mzML files. This is indicated by the "inMemory" slot being set to
TRUE.
Implementing functionalities with the ChromBackendMzR
backend should be
simplified as much as possible and reuse the methods already implemented for
ChromBackendMemory
when possible.
ChromBackendMzR()
# S4 method for class 'ChromBackendMzR'
backendInitialize(object, files = character(), BPPARAM = bpparam(), ...)
A ChromBackendMzR
object.
A character vector of file paths to mzML files.
Parallel setup configuration. See BiocParallel::bpparam()
for more information.
Additional parameters to be passed.
library(mzR)
#> Loading required package: Rcpp
library(msdata)
## Load an mzML file
MRM_file <- system.file("proteomics", "MRM-standmix-5.mzML.gz",
package = "msdata"
)
## Initialize the ChromBackendMzR object
be_empty <- ChromBackendMzR()
be <- backendInitialize(be_empty, files = MRM_file, BPPARAM = SerialParam())