View source: R/accessory_functions.R
splitPolarities | R Documentation |
Using splitPolarities
, spectra with different polarities from the same
run can be separated, e.g. when processing spectra recorded with
polarity-switching.
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
.
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.