Description Usage Arguments Value Examples
Functions like GetTaxoFromXML("pathToXML")
,
GetParamFromXML("pathToXML")
, GetResultsFromXML(pathToXML)
creates R object from X!Tandem-style xml files. The functions
WriteParamToXML(paramObject)
and
WriteTaxoToXML(paramObject)
will create an X!Tandem-style xml
file from an R object.
1 | ms2.plot(spectrum.id, result)
|
spectrum.id |
The id of the spectrum to be plotted (from the field result@spectra$id). |
result |
A result object of class rTResult_s. |
'plot.ms2' returns a plot of the spectrum.
1 2 3 4 5 6 7 8 | require(rTANDEM)
result <- GetResultsFromXML(
system.file("extdata/result.xml", package="rTANDEM")
)
## Get the first spectra of the dataset and plot it:
spectrum.id <- result@spectra$id[[1]]
ms2.plot(spectrum.id, result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.