Skip to main content

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

Project description

OpenTimsTDF

CI DOI 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.2.0.tar.gz (36.0 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.2.0-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentimstdf-1.2.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.2.0.tar.gz.

File metadata

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

File hashes

Hashes for opentimstdf-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b689b6e0e2f8afa38e3d9c3cbe0774c38998f0ed430b2c65de51c675cb66ffe5
MD5 50fec652f0e992bf2aff8da64b0ee646
BLAKE2b-256 d46185c3be766aa6c2ccbad02290446fa2143a75c44d4acac188a9bb82c1914f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentimstdf-1.2.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.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 767aac44c75c50c255e3dcc09216e6d761d10ad79654a5ca277d504f0e6a95a9
MD5 1424d89fee8449cd167bdf216a5ea2ee
BLAKE2b-256 bd7331cb6c48164dbfc7b66d1c9eab71a0045e88d0831a258f76cfa6c2160a1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c3261ae792f3ea6783c6e22017503d85d6d0938d862ad966967b55b73cb95d8
MD5 9861b0264a42010c6b73335cc22661c1
BLAKE2b-256 237357b8a2920811028298712a99c0c63769231e771fac27101c737267b1b344

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3debc14138a2c0d3f16f7f164c7861b4f47e42a6459ec8f0c976b17a078cb663
MD5 f94d6f4c06229aded5f10b7234479279
BLAKE2b-256 974429066c75c8001a88dedad093d76c23b6dd9b8002cd673522fdb744b598da

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae25611e445d2796b2b95b766003b6650626a3b4972ce7b4b8d6328879fc9239
MD5 15312d3edb9ce7e4857e057f0c7ba62d
BLAKE2b-256 d85eb0d5d310f333285153c1273446c5d6da5abfab784ea57a298a17313717d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentimstdf-1.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3cd52d14f89b5f5611517a298b170545ee26fbf48b79ffd50c15835b85b12c6d
MD5 b2c2d2a41dd93fbb3ae47c4e0c2d0216
BLAKE2b-256 f990da1d9cf12eb1b528287bc5ccf447f073bf3ae4af96ebe43370d78cb54076

See more details on using hashes here.

Provenance

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