imzml

Crates.ioimzml
lib.rsimzml
version0.1.3
sourcesrc
created_at2022-09-14 11:42:57.668606
updated_at2022-10-13 10:50:02.520392
descriptionA library for reading the mass spectrometry (imaging) formats mzML and imzML.
homepage
repositoryhttps://github.com/AlanRace/imzml-rs
max_upload_size
id665727
size2,425,190
Alan Race (AlanRace)

documentation

README

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);
Commit count: 0

cargo fmt