Skip to main content

Rust parser for Thermo Fisher RAW mass spectrometry files

Project description

OpenTFRaw

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

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

Rust and Python reader for Thermo Fisher .raw mass spectrometry files, covering format versions 8 through 66 (LCQ Classic through Orbitrap Astral and modern TSQ).

Documentation: sigilweaver.app/opentfraw/docs

Install

Rust:

cargo add opentfraw

Python:

pip install opentfraw

Quickstart

Rust:

use opentfraw::RawFileReader;

let raw = RawFileReader::open_path("sample.raw")?;
let mut file = std::fs::File::open("sample.raw")?;
for scan_num in 1..=raw.num_scans {
    let peaks = raw.read_scan_peaks(&mut file, scan_num)?;
    println!("scan {scan_num}: {} peaks", peaks.mz.len());
}

Python:

import opentfraw

raw = opentfraw.RawFile("run.raw")
mz, intensity = raw.peaks(3)
print(raw.scan(3)["filter_string"])
raw.to_mzml("run.mzML")

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

License

Apache-2.0. See LICENSE.

The format specification was developed by binary analysis of public mass-spectrometry datasets (PRIDE accessions). See CORPUS.md and 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

opentfraw-1.0.5.tar.gz (65.1 kB view details)

Uploaded Source

Built Distributions

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

opentfraw-1.0.5-cp38-abi3-win_amd64.whl (263.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (408.7 kB view details)

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

opentfraw-1.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (401.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.0.5-cp38-abi3-macosx_11_0_arm64.whl (362.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.0.5-cp38-abi3-macosx_10_12_x86_64.whl (363.1 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file opentfraw-1.0.5.tar.gz.

File metadata

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

File hashes

Hashes for opentfraw-1.0.5.tar.gz
Algorithm Hash digest
SHA256 93a8fad335b570249c05183047a505125945b4c93881cb2f50daa7a5d918547d
MD5 9921d014dc2e7cc1779f4eb9586cb38b
BLAKE2b-256 dc4d5f640689da50fbeb7e6e1d1116214c77b97b0b4fa96d8b8154fc7365df72

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5.tar.gz:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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

File details

Details for the file opentfraw-1.0.5-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: opentfraw-1.0.5-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 263.4 kB
  • 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 opentfraw-1.0.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 846a2e528e5b035ef81e47859d7b8d8d8f502373574ba50d45b678818e0fc706
MD5 112f6c5414e9e65e00a4858ed8e26a0d
BLAKE2b-256 8efe25b43b0676cb421d1ae22a93d2274dc9072c930b683bac92e351306ae1fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5-cp38-abi3-win_amd64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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

File details

Details for the file opentfraw-1.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 362cabd2905fa41f0030dc3ec2cd0ea25a2abbef77a735064a487d4c5a9f1e09
MD5 49be69dd010722d1035ff32560fe9eec
BLAKE2b-256 6a48250eaa4f8f18defe17fc295d363e478e6c4a558d524cacbee3cefb5235f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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

File details

Details for the file opentfraw-1.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for opentfraw-1.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38f3bddb343611f5ed880306f6522eca0e28990f22d47962681aaf6287cff31e
MD5 63aa9cb77ea1231d26d4a3dabb17d49d
BLAKE2b-256 7b3e1ee7ff618fc6c2cab14c87e75d50dd5eddba4438a231a76c37660d457575

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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

File details

Details for the file opentfraw-1.0.5-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for opentfraw-1.0.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b05e9b3e4a6c5f880ff46d55c89d35ad543abc9be0ff310f088e3b3f8254f79
MD5 1bbbadd567e563638293ffe0d5d11f42
BLAKE2b-256 99c19c2e2699792e51fcaa2efedc37c86ee71c049a147d294a2e1852fc678eb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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

File details

Details for the file opentfraw-1.0.5-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for opentfraw-1.0.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0a6a27b7092c7239a205c25f22a82779705d28ec9144a95f8cd86dae3a619216
MD5 7a8c9de86533a88c6a4a01f86e85d633
BLAKE2b-256 2a0950f6daaab3eb230ef5dd0ee5f96be42f257507b864d81810134bf8d425fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentfraw-1.0.5-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on Sigilweaver/OpenTFRaw

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