7 releases

0.2.4 Apr 5, 2024
0.2.3 Jan 12, 2024
0.2.2 Nov 6, 2023
0.2.1 Oct 19, 2023
0.1.7 Oct 11, 2023

#823 in Parser implementations

Download history 54/week @ 2024-01-08 5/week @ 2024-01-15 34/week @ 2024-02-26 41/week @ 2024-03-11 8/week @ 2024-03-18 275/week @ 2024-04-01 99/week @ 2024-04-08 15/week @ 2024-04-15

391 downloads per month

Apache-2.0

130KB
1.5K SLoC

Crates.io docs.rs

TimsRust

A crate to read Bruker TimsTof data.

Installation

Add this crate to your Cargo.toml:

[dependencies]
timsrust = "x.x.x"

Usage

TimsRust is intended to be used as a library and not as a stand-alone application. An example of how to use it is found in e.g. Sage.

Basics

Two primary data types are exposed through TimsRust:

  • Spectra: A traditional representation that expresses intensitites in function of mz values for a given precursor.
  • Frames: All recorded data from a single TIMS elution (i.e. at one specific retention_time).

File formats

Two file formats are supported:

  • TDF - Bruker .d folder containing:

    • analysis.tdf
    • analysis.tdf_bin
  • miniTDF - ProteoScape optimized Bruker file-format. Similar to TDF, miniTDF consists of multiple files: a binary '.bin' and an index '.parquet' file. The file-names are made up to the following convention: <producing-engine-name>.<domain-name>.<extension>. e.g. for MS2 spectrum information: <producing-engine-name>.ms2spectrum.<extension>. Therefore the following files are expected in the provided ms2 folder:

    • *.ms2spectrum.bin
    • *.ms2spectrum.parquet

Python bindings

The timsrust_pyo3 package is an example of how the performance of TimsRust can be utilized in Python

Dependencies

~41MB
~1M SLoC