Skip to main content

Rust reader for timsTOF .d/ (TDF) mass spectrometry bundles

Project description

OpenTimsTDF

CI crates.io PyPI docs.rs License: Apache-2.0

Part of the OpenProteo stack for proteomics raw-file access. Sibling readers: OpenWRaw (Waters), OpenTFRaw (Thermo).

Rust and Python reader for timsTOF .d/ (TDF) acquisition bundles - the SQLite analysis.tdf metadata file and the analysis.tdf_bin binary frame stream. Runs on Linux, macOS, and Windows.

Documentation: sigilweaver.app/opentimstdf/docs

Install

Rust:

cargo add opentimstdf

Python:

pip install opentimstdf

Quickstart

Rust:

use opentimstdf::Reader;

let reader = Reader::open("my_bundle.d")?;
let calib = reader.calibration()?;
let frame = reader.frame(1)?;
for peak in reader.decode_peaks(&frame)? {
    let mz = calib.tof_to_mz(peak.tof);
    let im = calib.scan_to_inv_mobility(peak.scan);
    println!("scan={} mz={:.4} 1/K0={:.4} i={}", peak.scan, mz, im, peak.intensity);
}

Python:

import opentimstdf

reader = opentimstdf.Reader("my_bundle.d")
calib = reader.calibration()
frame = reader.frame(1)
for peak in reader.decode_peaks(frame):
    mz = calib.tof_to_mz(peak.tof)
    print(peak.scan, mz, peak.intensity)

See the docs site for the full quickstart, guide, and format specification.

License

Apache-2.0. See LICENSE.

The TDF format and codecs were worked out from public sample data (PRIDE accessions). See ATTRIBUTION.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentimstdf-1.0.6.tar.gz (33.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

opentimstdf-1.0.6-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentimstdf-1.0.6-cp38-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentimstdf-1.0.6-cp38-abi3-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file opentimstdf-1.0.6.tar.gz.

File metadata

  • Download URL: opentimstdf-1.0.6.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opentimstdf-1.0.6.tar.gz
Algorithm Hash digest
SHA256 521824ee22db37e97cb3ef49e43214d5e01c45be23582d24ac1582cea6689fb4
MD5 625e461a3c886c17f31bc6d7ccf06b85
BLAKE2b-256 2784fd647fda1829a85826fa249a8c055380a3ba3dfd12c819675db72672f6c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6.tar.gz:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentimstdf-1.0.6-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: opentimstdf-1.0.6-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opentimstdf-1.0.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 415cdcb6de16c08039627d0949b74fbe715fd9d464c9be245f3181ae3e4b3731
MD5 3c52df0a893b6a700152e5be0295e666
BLAKE2b-256 701b1ef35f511a805c3b79ad49256ea66fb88cd0857482d22dd497fd88cbec68

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6-cp38-abi3-win_amd64.whl:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a96d0a07da1d86a75cb4d9e717f3b7a9d4cc8ea08231c038415b7e468523667
MD5 3c4aa938e06073e35a66ad04d9c107e7
BLAKE2b-256 b604d517d1593cb14ee3d28eae61d022f1cb13bf25546b67beab922b2eed724a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 865ca283d57b1993cc07431cdb157e8c93cc6e06512787367b2a14b2677cf48a
MD5 5907387927bc8bbcb40b85058798bf5f
BLAKE2b-256 05c23628046bc90051ea0e77af8fd36d7c64f3ed8d9c5b541839de6ed784174a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentimstdf-1.0.6-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.0.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 337672821978ed1c7ed59ff52ba1b22b7bb70f015f9200e7979ae67cb491de87
MD5 245e3495c47b9ce5683080187e5ee307
BLAKE2b-256 2246816b52decb945a73d5d4aaffeb4d3ecb811dcc9bfc7bacc69cc3ad06725a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentimstdf-1.0.6-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.0.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1fa01eaca699c1085d00f14e9e8ad7ec2414a6305235a5abb496f6da32c10d5a
MD5 b1862b576f94b31ab0c15695c88857d8
BLAKE2b-256 0f036a2ef97b79f30237bdcc7eae93248ae1e4831d2d590efa312f3c027ed3b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.0.6-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTimsTDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page