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

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.1.0.tar.gz (66.0 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.1.0-cp38-abi3-win_amd64.whl (264.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (404.9 kB view details)

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

opentfraw-1.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (396.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.1.0-cp38-abi3-macosx_11_0_arm64.whl (362.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.1.0-cp38-abi3-macosx_10_12_x86_64.whl (363.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for opentfraw-1.1.0.tar.gz
Algorithm Hash digest
SHA256 bcb94a01bf8a49995a26938dfdce62aea46fc8346abbcf592d3b49129398b719
MD5 514490b2fd005f061a3c760399077e9c
BLAKE2b-256 1eaaff4b9dd09099f12f6faedf5bc7e2abb01a8a09110aff29699af3fb56218a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.1.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 264.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.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d0c9a8206610a799ab46c443a7d11ae584188fc0fd2aeacc1970f58804f6bf71
MD5 461a7228dbf01971cec61c4804c5d915
BLAKE2b-256 484d1a85e72aed97ee3d48c5fe1c8f599ce316afdfe855a4c47f32820a467fe4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4dc20e9bedc6c607fd88e1ddd3f5f58bece92cd6148f1b2ef95d76515bafdccf
MD5 8b3e252d1202b42edb7e0bf29760b405
BLAKE2b-256 b9be582a076b3643d041b9cdc081e53a70b8759431faf1eee4f501e34d59b4b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8d51f1d19daaa632b26c93123c2504ca7be6a400da718758060b45c18d3a73af
MD5 78c8562ba15ab6c635f3d47e6f813b0d
BLAKE2b-256 22e102aeaad0d4e163d732862b897d04b707baf0902f0e4cf32f5891cb36a7cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5017627c387720e8d325304213a328f713a6b6c167403fbf6d86fe1b0818bce6
MD5 14a289bf72114cd90fd22565127a6480
BLAKE2b-256 043ebb2a71cb563a3b08ebdabf85b817e0bc279f3e77c2536388ae59415e5f19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a512363d8c648f799508b2ca42da56f94576809076f8fd1589db79f136817492
MD5 39ccabb3b80435bb67645c0ac1bbc221
BLAKE2b-256 d04d9fc8356fedb5999aa55a9aa8cbd77ed30167fe7da49b86767257f3d41ddd

See more details on using hashes here.

Provenance

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