Expand description
A pure-Rust reader for MOBILion .mbi ion mobility - mass spectrometry
files, with no dependency on the vendor MBI SDK.
.mbi is HDF5 underneath. Each frame stores its sparse IM/MS plane in three
datasets that map onto CSR with one expansion step:
| dataset | meaning |
|---|---|
data-counts | intensities, one per non-zero point (CSR data) |
data-positions | [start, end) runs of TOF indices; expanding gives CSR indices |
index-counts | per-drift-scan cumulative offsets (CSR indptr) |
use mobilionmbi::MbiFile;
let f = MbiFile::open("run.mbi")?;
println!("{} frames", f.n_frames());
let frame = f.frame(600)?;
let cal = f.calibration(600)?;
println!("{} points, first m/z {:.4}", frame.nnz(), cal.index_to_mz(frame.indices[0]));Re-exports§
pub use calibration::TofCalibration;pub use ccs::CcsCalibration;pub use ccs::DriftAxis;pub use writer::FrameExtras;pub use writer::MbiWriter;
Modules§
- calibration
- Time-of-flight mass calibration.
- ccs
- Drift-time and collision cross section calibration.
- writer
- Writing
.mbifiles.
Structs§
- CeSetpoint
- One collision-energy setpoint within a frame.
- Frame
- One frame: a sparse
drift scan x TOF indexplane, in CSR layout. - MbiFile
- An open
.mbifile.
Enums§
- Error
- Errors produced while reading a
.mbifile.
Type Aliases§
- Result
- Result alias used throughout the crate’s public API.