write_mzml | R Documentation |
This function constructs mzML files by writing XML strings directly to a file connection. While this approach is fast, it may be less flexible than DOM-based methods.
write_mzml(
data,
path_out,
sample_name = NULL,
what = NULL,
instrument_info = NULL,
compress = TRUE,
indexed = TRUE,
force = FALSE,
show_progress = TRUE,
verbose = getOption("verbose")
)
data |
List of data.frames or data.tables containing spectral data. |
path_out |
The path to write the file. |
sample_name |
The name of the file. If a name is not provided, the name
will be derived from the |
what |
Which streams to write to mzML: |
instrument_info |
Instrument info to write to mzML file. |
compress |
Logical. Whether to use zlib compression. Defaults to
|
indexed |
Logical. Whether to write indexed mzML. Defaults to
|
force |
Logical. Whether to overwrite existing files at |
show_progress |
Logical. Whether to show progress bar. Defaults to
|
verbose |
Logical. Whether or not to print status messages. |
The function supports writing various types of spectral data including MS1, TIC (Total Ion Current), BPC (Base Peak Chromatogram), and DAD (Diode Array Detector) data. Support for MS2 may be added in a future release.
If indexed = TRUE
, the function will generate an indexed mzML file, which
allows faster random access to spectra.
Invisibly returns the path to the written mzML file.
Ethan Bass
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.