View source: R/Functions_SIRIUS.R
writeMS | R Documentation |
write an .ms file containing a spectrum to be exported to SIRIUS. will append additional spectrum to file if filename is that of an existing file.
writeMS( filename, ms2, ms1 = NULL, parentmz, comments = "", rt = "", ion = NULL, charge = 1, hashtag = NULL, scanindices = NULL )
filename |
path of file to write to |
ms2 |
a matrix with columns mz and intensity, or a list of ms2 spectra in the same format |
ms1 |
a matrix with columns mz and intensity for a single MS1 spectrum |
parentmz |
numeric: parent ion m/z value |
comments |
character: comments |
rt |
numeric: retention time in seconds |
ion |
ion type (e.g. [M+H]+) |
charge |
charge (positive or negative integer) |
hashtag |
hash tag of the ms2 spectrum |
scanindices |
which scans were averaged into this ms2 spectrum |
Returns nothing, but writes a SIRIUS .ms
file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.