17 releases

Uses new Rust 2024

new 0.5.5 Jun 15, 2026
0.4.2 Dec 19, 2024
0.4.1 Sep 3, 2024
0.3.0 Jul 8, 2024
0.2.2 Nov 6, 2023

#497 in Parser implementations

Download history 23/week @ 2026-02-23 15/week @ 2026-03-02 56/week @ 2026-03-09 46/week @ 2026-03-16 58/week @ 2026-03-23 111/week @ 2026-03-30 54/week @ 2026-04-06 120/week @ 2026-04-13 104/week @ 2026-04-20 95/week @ 2026-04-27 81/week @ 2026-05-04 200/week @ 2026-05-11 99/week @ 2026-05-18 118/week @ 2026-05-25 116/week @ 2026-06-01 82/week @ 2026-06-08

416 downloads per month
Used in 2 crates (via mzdata)

Apache-2.0

35KB
763 lines

timsrust

Crates.io docs.rs

Facade crate for reading Bruker timsTOF data. Re-exports the public API of the timsrust-* sub-crates so that most users only need a single dependency.

Installation

[dependencies]
timsrust = "0.5"

Optional features:

Feature Description
sdk Bruker SDK-backed reading via timsrust-sdk
patched Patched calibration support via timsrust-patched

Core types

Type Description
TimsTofPath Entry point — auto-detects TDF / miniTDF / Parquet from a path string
SpectrumReader / SpectrumReaderBuilder Read MS2 spectra
PrecursorReader / PrecursorReaderBuilder Read precursor information
MzConverter, ImConverter, RtConverter Unit converters (raw → m/z, ion mobility, retention time)

Sub-crates are also re-exported as modules for lower-level access:

timsrust::core      // timsrust-core
timsrust::tdf       // timsrust-tdf
timsrust::minidf    // timsrust-minitdf
timsrust::centroid  // timsrust-centroid

Supported file formats

  • TDF — Bruker .d folder (analysis.tdf + analysis.tdf_bin)
  • miniTDF — ProteoScape optimised format (*.ms2spectrum.bin + *.ms2spectrum.parquet)
  • Parquet spectra — columnar spectrum storage

Usage

use timsrust::{TimsTofPath, TimsTofPathLike};

let path = TimsTofPath::new("/data/sample.d")?;

// Read all spectra in parallel
let reader = path.spectrum_reader()?;

// Read precursors
let precursors = path.precursor_reader()?;

Dependencies

~28MB
~674K SLoC