quantify,Spectra-method | R Documentation |
The quantify()
method is the entry point for quantitation of raw
mass spectrometry data. The raw data is contained in a Spectra()
object while the details and parameters of the quantitation method
are defined in a dedicated QuantParam()
.
## S4 method for signature 'Spectra' quantify(object, param, ...)
object |
An instance of class |
param |
An instance of class |
... |
additional parameters controlled parallel processing of
the data. See |
An instance of QFeatures()
with as many assays as there
where acquisitions (files) in object
.
## ---------------------------------------- ## Labelled MS2 quantitation ## ---------------------------------------- ## Test data from the msdata package f <- msdata::proteomics(pattern = "01.mzML.gz", full.names = TRUE) rw <- Spectra(f) ## Quantitation parameters p <- QuantParam(msLevel = 2L, label = TRUE, params = list(reporters = TMT6)) p quantify(rw, p) ## Simulate data from 2 files rw <- filterMsLevel(rw, 2L) rw <- setBackend(rw, MsBackendDataFrame()) rw$dataOrigin <- sample(c("file1", "file2"), length(rw), replace = TRUE) quantify(rw, p) ## ---------------------------------------- ## Labelled MS3 quantitation ## ---------------------------------------- ## Test data from the msdata pakage basename(f <- msdata::proteomics(pattern = "MS3TMT11", full.names = TRUE)) x <- Spectra(f) ## Quantitation parameters p <- QuantParam(msLevel = 3L, label = TRUE, params = list(reporters = TMT11)) p quantify(x, p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.