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.6.tar.gz (65.2 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.6-cp38-abi3-win_amd64.whl (263.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (408.8 kB view details)

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

opentfraw-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (401.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.0.6-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.6.tar.gz.

File metadata

  • Download URL: opentfraw-1.0.6.tar.gz
  • Upload date:
  • Size: 65.2 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.6.tar.gz
Algorithm Hash digest
SHA256 9df3a29f33f3538fd783644c79d1251e30100da74ca332d94e8e7383435b17b7
MD5 ca08a87be950ffe6a1ba3c203494661c
BLAKE2b-256 7bc046ef625a87bfe674ecbea0037d029ca69d8ebb67650765a5f10d818a9cb3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.0.6-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 263.6 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.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2403909804eb598619a81cbdb00ddf3bf0cdeab65e7e6aebe83293c0f577ea88
MD5 012cc9726c7d7b292ae0b8ac92b0b3ee
BLAKE2b-256 68e0712360ab1d6417877e28a5ed5768e7fce09d52bf17f6af9a5457a391cc5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6472ceb98fffa4b032f454c9aa4010b33313d8d4d4b98a6c61d03e757932f85
MD5 02e1d1f9d52a2f35d3807a277cd35fe8
BLAKE2b-256 e0bbfebe752c2cbfdc70096eb6c056ef5cf4e2fe921aef513fb7794c0badf862

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 07897a13cf5e4260468924aa673c30336e5ef00e59b04414561d6dbf017ea341
MD5 6e762d1d467b40bf50d9c516a73dd5db
BLAKE2b-256 915bb439c1ab1a220cb5b366494e58db11b23e2d8a8f3b00ee0aad958f7af508

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 273cea5629dcd74f3dcb2b422857a8aff8b86e59f495cdbbf5bbf1a521aaee36
MD5 61bef0645e9122d6c7d6e01df8731267
BLAKE2b-256 dabee29e08f184f8a4f6528c0202bf8ae654383e536d7b6268eb67e308f972a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d0261d3d3b2059276a7452fe516632af3adc99f77e64d43359b309094bfda66a
MD5 4b4628d87f0a8935753ecadeee7f7d0a
BLAKE2b-256 d708b87150f0411687ee7ca36eef3923878d26e21298e460dd885875eb41684d

See more details on using hashes here.

Provenance

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