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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentimstdf-1.0.4-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.4.tar.gz.

File metadata

  • Download URL: opentimstdf-1.0.4.tar.gz
  • Upload date:
  • Size: 27.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.0.4.tar.gz
Algorithm Hash digest
SHA256 b49b87e4885c6d180c57a2c76bf89b509a5194ae9b50f82d4ee65b3f8de12b39
MD5 6de5ea51a272b43bf39e039b7f6d5251
BLAKE2b-256 007ad88b40138cb1c5fc3770b05544283f22db70f608871dc940b9293c6f4f13

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentimstdf-1.0.4-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.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f0ad87de4d5a22dd13fb50d9a5c7e595c7e5625c220668311de170eb47d871f0
MD5 8c9c1ea03d179365e74c41b0ca0483d7
BLAKE2b-256 6c597e906d17e06a833fcb2cd845d83677726debc91d95d236ae6c34fd9c14a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6d18691d32b7c77cdc65c302253fce33d30fd0bbbdc79401d9d1e34afe04c07
MD5 70bfb834fa4ad643f79417fb26aad914
BLAKE2b-256 99e6ec4292204c4d0f3f5b2caa621aaadaf39988aac86c3e2ba3fde460083b89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f0f87facbaaf9916f0367c1e4e29abd3db6bfbaa7cd6d3f557bc1a4c4de3e3b9
MD5 813b6f7006ec1c01c048c929db825e10
BLAKE2b-256 e2b02fd1bf03759a2c378910f3ad31b9f4d7dceeeee889ecba72ac865dbc3ab9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29209d6f12dd72758d5eff7fd7e479d0d161413ba8fb96f52d53099fa3cb3765
MD5 a31b50b1288cceafbd99693368ed08d7
BLAKE2b-256 607b76e71ad7460de51151526f53aa521241eea841e44ed420f9ed8ec209c46b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.0.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 356398b1e1593e25be8573f8fe280be025e6a5a39da34b4330393afc3db34f67
MD5 9e74c27de0068006d70a64d854ce14d8
BLAKE2b-256 f88bc54f92cc932ba893fb4d512c6e1d0c62fffb2507b2e33cf1aea2dcd922ed

See more details on using hashes here.

Provenance

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