Module mzdata::io::thermo

source ·
Expand description

Reader implementation for Thermo RAW files, ThermoRawReaderType.

Depends upon the thermorawfilereader crate which manages the self-hosted .NET runtime. You must still have a working .NET 8 runtime installed on the machine you wish to run this on until Thermo’s library supports .NET ahead-of-time compilation. For scripted installation of the .NET runtime see https://dotnet.microsoft.com/en-us/download/dotnet/scripts.

use std::io;

use mzdata::prelude::*;
use mzdata::io::ThermoRawReader;

let mut reader = ThermoRawReader::open_path("./test/data/small.RAW")?;
let scan = reader.get_spectrum_by_index(0).unwrap();
assert_eq!(scan.index(), 0);
assert_eq!(reader.len(), 48);

§Licensing

By using this library, you agree to the RawFileReader License

Structs§

Functions§

Type Aliases§