Description Usage Arguments Value Examples
View source: R/accessory_functions.R
Using splitPolarities
, spectra with different polarities from the same
run can be separated, e.g. when processing spectra recorded with
polarity-switching.
1 | splitPolarities(ms2list, polarity = c("positive", "negative"))
|
ms2list |
A list of |
polarity |
The polarity of spectra to be analysed, must be
|
A list of MS2spectrum
objects that contains only
spectra with the given polarity
.
1 2 3 4 5 6 | my_spectra <- extractMS2spectra(MSfile = system.file("extdata",
"PoolA_R_SE.mzXML",
package = "CluMSIDdata"),
min_peaks = 4, RTlims = c(0,5))
my_positive_spectra <- splitPolarities(my_spectra, "positive")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.