Description Usage Arguments Value Examples
View source: R/classes_methods.R
Convert spectra from MSnbase classes
1 |
x |
An object of class |
An object of class MS2spectrum
1 2 3 4 5 6 7 | #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.