View source: R/classes_methods.R
as.MS2spectrum | R Documentation |
Convert spectra from MSnbase classes
as.MS2spectrum(x)
x |
An object of class |
An object of class MS2spectrum
#Load a "Spectrum2" object from MSnbase library(MSnbase) sp <- itraqdata[["X1"]] #Convert this object to "MS2spectrum" class new_sp <- as.MS2spectrum(sp) #Or alternatively: new_sp <- as(sp, "MS2spectrum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.