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.5.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.5-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentimstdf-1.0.5-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.5.tar.gz.

File metadata

  • Download URL: opentimstdf-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 0807b29da295b667e712883454e0349e58e4c24dffbf04959f0c013e4da534bb
MD5 ef5761316e0c24cea0a1abfa7809a675
BLAKE2b-256 a39993797eca10349d7561e1def55b8706af0b57b4e3e667a0a37f2b4497f1c6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentimstdf-1.0.5-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.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b5c044a7adc6c9e8ead64da53611ebe7125f349aea996660208842ab5cdb5e25
MD5 6bd0da3cfdaa9eff7852ffbba5e7e81e
BLAKE2b-256 c3551f738ecc762c95a8b389be87d40a8507f329febdcab409579f850c130db5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a369434607a39b605fae720ebaeb22ba23f0c4b9cea4ccdedad67b4f5a127f7a
MD5 71b7b4a9364249b25c55b7408bcd6b7a
BLAKE2b-256 38fb9f1b2d5e7a8c881c27b261ae854b128d38d80d7945db8ee108e5d1419167

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c73120ffb287daefe1044fce6104adcfcad692c65c4adb08c70c6ed4485ef15e
MD5 f39b971f483cf36ac5ede4b12470d46c
BLAKE2b-256 2e51a7987c4d71c1cf03e5bbe94bd0b8c8c4f94087dfd1dfa3da733b53b4f345

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db2a6371d51faec2f1bdc4cba8c54f394d5bf475d0a3d52d96c114a574d2e75a
MD5 d206eace18ce9b13b972ad7537de9daf
BLAKE2b-256 44625c4ff7589b395161b2c3bc23a40eb055ede2e600a989b66c67fe1a89d6fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9dd41cdeff295e37e4a199fefca8c28e4d522e0d38a2f25887bc8c69e4838f0
MD5 46a942e93a348f637a9ac9d5f84872d4
BLAKE2b-256 d53e9b36cf782908150d382f15e07354559e81cada0e77fe74995fc3671a0e59

See more details on using hashes here.

Provenance

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