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 Rust MSRV

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.1.0.tar.gz (34.7 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.1.0-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

opentimstdf-1.1.0-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.1.0-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.1.0-cp38-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentimstdf-1.1.0-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.1.0.tar.gz.

File metadata

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

File hashes

Hashes for opentimstdf-1.1.0.tar.gz
Algorithm Hash digest
SHA256 644000c1382622d1cba359a193652045511dfe9dbe073e2be63341d11bd63c38
MD5 af38d8e712c9a4df2142ad9cbc856371
BLAKE2b-256 407c8283334e20821f1c48da3ee96d3e1db408a44b8450368fbb682bbfa44d0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0.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.1.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: opentimstdf-1.1.0-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.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dab0c9056fec40bc0c56efa5455a195724bfe7a9749595cffa8c3c85c27d5f0d
MD5 472da1368e5e7ed696786a66563f6eae
BLAKE2b-256 83dc71ee5046eb8ff2fc6fdddfcd5cf8063dff1d81e65b1558e1b180dd91af8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0-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.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edbed44dbce8cb162378e5f61cc821b8ace169dccc11778ccfb1c47ea3e85610
MD5 2b1332963a99249016ef244e3c2b9039
BLAKE2b-256 7e09c6b532898c70ebe680cc1c46376193dddd92dd97fae306b6b5ca0d51fe92

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0-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.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7190dcf8a5d1a24342534671c7c388b38b14c64be2fe33692657a4dd58d3c426
MD5 318b92427edb52b425e906082968c5f2
BLAKE2b-256 7f10c543bad9e8490d8271b21a44ecfdb10b80083d58fedc62ef1babd09ee165

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0-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.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13aa73d8004025fc99c0d3bb43abed09e8dcc85cccf330a360122ec2672e771a
MD5 47f03ec2030ab1896baeae599a1937e0
BLAKE2b-256 bdcd40b9f31a6e1b6972ec55997c0406bc55186b4997c39b641a7ee99a12503a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0-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.1.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for opentimstdf-1.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 20f94e0afa4d5ce0ecc14d5f1403c348f9b3a750adbd21e507a308b21d753be4
MD5 451005fbde4311565d33680046203771
BLAKE2b-256 b7d27a7af9e35805163fac23ea44fd509250e5c56adf1c3cbf5a6d43bd883f80

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentimstdf-1.1.0-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