Expand description
Implements a parser for the PSI-MS mzML and indexedmzML XML file formats
for representing raw and processed mass spectra, providing a
RandomAccessSpectrumIterator
interface for reading, and SpectrumWriter
interface for writing.
The mzML format is standardized by the Proteomics Standards Initiative (PSI), with a formal schema defined at https://www.psidev.info/mzML.
This crate supports both reading and writing (indexed) mzML documents with spectra
of varying degrees of complexity (raw profiles, centroids, processed centroids), though
extensive customization of the coercion process relies on the BuildFromArrayMap
and
BuildArrayMapFrom
traits
for reading and writing conversion to BinaryArrayMap
.
Structs§
- An asynchronous version of
MzMLReaderType
that works with thetokio
runtime. - A SAX-style parser for building up the metadata section prior to the
<run>
element of an mzML file. - An mzML parser that supports iteration and random access. The parser produces
Spectrum
instances, which may be converted toRawSpectrum
orCentroidSpectrum
as is appropriate to the data. - An accumulator for the attributes of a spectrum as it is read from an mzML document
- An indexed mzML writer that writes
MultiLayerSpectrum
.
Enums§
- All the ways that mzML parsing can go wrong
- The different states the
MzMLReaderType
can enter while parsing different phases of the document. This information is really only needed by the module consumer to determine where in the document an error occurred. - All the ways that mzML writing can go wrong
- The different states that
MzMLWriterType
can enter while writing an mzML document. This is only necessary for the module consumer when determining where something may have gone wrong.
Traits§
- Common
CVParam
parsing behaviors - SAX-style start/end/text/empty event handlers
- Convert mzML spectrum XML into
MultiLayerSpectrum
- Common XML error handling behaviors
Type Aliases§
- A specialization of
AsyncMzMLReaderType
for the default peak types, for common use. - A specialization of
MzMLReaderType
for the default peak types, for common use. - A specialization of
MzMLWriterType
for the default peak types, for common use.