Expand description
This library provides a means of accessing mass spectrometry and mass spectrometry imaging data stored in either the .mzML or .imzML data formats.
let parser = ImzMLReader::from_path(“/path/to/data.imzML”).unwrap();
for error in parser.errors() { println!(“{:?}”, error); }
let imzml: ImzML<_> = parser.into();
imzml.ion_image(772.573, 100.0);
Re-exports§
pub use self::imzml::ImzML;
pub use self::imzml::ImzMLReader;
pub use mzml::mzml::MzML;
pub use mzml::MzMLReader;
pub use self::mzml::mzml::*;
Modules§
- error
- Error handling
- imzml
- ImzML file parsing (relies heavily on
mzml
) - mzml
- MzML file parsing
- obo
- Parsing ontologies stored in the OBO format
- validation
- Validating .mzML and .imzML files
Structs§
- Activation
- Represents an
tag. - Binary
Data Array - BinaryDataArray represents the
tag and captures information required to read and parse the stored binary data. - Binary
Data Array List tag representation. Contains a list of BinaryDataArray - Chromatogram
- Represents a
tag. - Chromatogram
Iter - Iterator over a
ChromatogramList
returning all chromatograms in the list - Chromatogram
List - Represents a list of
Chromatogram
s - Compression
Reader - Provides a single interface to compressed data, decompressing the data on
read()
if necessary - Coordinate
- Coordinate describes the pixel location of a spectrum/scan
- Data
Access - Enables access to data stored in
data_location
. The data could be compressed and/or encoded and stored with various different types. This information is captured in thedata_description
- Isolation
Window - Represents a
tag. - Precursor
- Represents a
tag. - Precursor
List - Represents a list of
Precursor
s - Product
- Represents a
tag. - Scan
- Represents a
tag. - Scan
Iter - Iterator over a
ScanList
returning eachScan
in turn. - Scan
List - Represents a list of
Scan
s - Scan
Window - Represents a
tag. - Scan
Window List - Represents a list of
ScanWindow
s - Selected
Ion - Represents a
tag. - Selected
IonList - Represents a list of
SelectedIon
s - Spectrum
- Spectrum captures both binary data and metadata associated with a mass spectrum.
- Spectrum
Access - Provide ability to access a spectrum (contains
DataAccess
for both m/z and intensity arrays) - Spectrum
Access Iterator - SpectrumAccessIterator provides an iterator over a spectrum
- Spectrum
Iter - Iterator over a
SpectrumList
returning all spectra in the list - Spectrum
List - Represents a list of
Spectrum
- Target
- Represents a
tag. - Writable
Spectrum - WritableSpectrum contains information required to be able to write out a spectrum to imzML.
Enums§
- Binary
Data Array Type - The type of data being stored (e.g. m/z values, intensities)
- Binary
Data Type - The type used to store binary data (e.g. m/zs or intensities)
- Compression
- Possible means of compressing binary data stored in (i)mzML
- Polarity
- Polarity used to acquire the spectrum
- Representation
- Spectrum mode
- Scan
Location - ScanLocation describes how ImzMLWriter should deal with a particular scan. Either ignore it, or store it with the specified coordinate.
- Spectrum
Ref - Represents a reference to a
Spectrum
- Spectrum
Type - Type of spectrum acquired
Constants§
- ACCESSION_
32_ BIT_ FLOAT - Accession in OBO for 32-bit float
- ACCESSION_
64_ BIT_ FLOAT - Accession in OBO for 64-bit float
- ACCESSION_
BINARY_ DATA_ TYPE - Accession in OBO for binary data type
- ACCESSION_
CENTROID_ SPECTRUM - Accession for a centroided spectrum
- ACCESSION_
COMPRESSION - Accession in OBO for compression (parent term)
- ACCESSION_
EXTERNAL_ ARRAY_ LENGTH - Accession in OBO for external array length
- ACCESSION_
EXTERNAL_ DATA - Accession in OBO for external data
- ACCESSION_
EXTERNAL_ ENCODED_ LENGTH - Accession in OBO for external encoded length
- ACCESSION_
EXTERNAL_ OFFSET - Accession in OBO for external offset
- ACCESSION_
INTENSITY_ ARRAY - Accession in OBO for intensity array
- ACCESSION_
MS1_ SPECTRUM - Accession for MS1 spectrum
- ACCESSION_
MZ_ ARRAY - Accession in OBO for m/z array
- ACCESSION_
NEGATIVE_ SCAN - Accession for negative polarity scan
- ACCESSION_
NO_ COMBINATION - Accession for no combination of spectra
- ACCESSION_
NO_ COMPRESSION - Accession in OBO for no compression
- ACCESSION_
POSITION_ X - Accession for pixel position in x direction
- ACCESSION_
POSITION_ Y - Accession for pixel position in y direction
- ACCESSION_
POSITION_ Z - Accession for pixel position in z direction
- ACCESSION_
POSITIVE_ SCAN - Accession for positive polarity scan
- ACCESSION_
PROFILE_ SPECTRUM - Accession for a profile spectrum
- ACCESSION_
SCAN_ POLARITY - Accession for parent term describing polarity
- ACCESSION_
SPECTRUM_ REPRESENTATION - Accession for parent term describing spectrum representation
- ACCESSION_
ZLIB_ COMPRESSION - Accession in OBO for Zlib compression