imzml 0.1.3

A library for reading the mass spectrometry (imaging) formats mzML and imzML.
Documentation

imzml

What does this crate do?

  • Read data in the mass spectrometry format mzML or the mass spectrometry imaging format imzML.
  • Validate the data file against the specification

Read mzML

let parser = MzMLReader::from_path("/path/to/data.mzML").unwrap();

for error in parser.errors() {
    println!("{:?}", error);
}

let mzml: MzML<_> = parser.into();

Validate mzML

use imzml::validation::full_validate;

let mut validation_errors = full_validate(parser.ontology(), mzml);

Read imzML

let parser = ImzMLReader::from_path("/path/to/data.imzML").unwrap();

for error in parser.errors() {
    println!("{:?}", error);
}

let imzml: ImzML<_> = parser.into();

let mz_772 = imzml.ion_image(772.573, 100.0);

Validate imzML

use imzml::validation::full_validate;

let mut validation_errors = full_validate(parser.ontology(), imzml);