Skip to main content

OpenTFRaw

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

Part of the OpenMassSpec stack for mass spectrometry 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

Prefer openmassspec-io with the thermo feature/extra unless you need this parser standalone (minimal dependencies, or building your own abstraction) - the umbrella gives you format auto-detection, mzML conversion, and Arrow streaming across all wired-in vendors for free:

cargo add openmassspec-io --features thermo
pip install openmassspec[thermo]

Standalone:

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.

Used by

Project Description
Mascope by Karsa Oy Mass spectrometry data analysis platform using OpenTFRaw to ingest Thermo .raw files.

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.

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.3.3.tar.gz (78.7 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.3.3-cp38-abi3-win_amd64.whl (284.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.8 kB view details)

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

opentfraw-1.3.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (427.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.3-cp38-abi3-macosx_11_0_arm64.whl (391.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.3-cp38-abi3-macosx_10_12_x86_64.whl (392.1 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for opentfraw-1.3.3.tar.gz
Algorithm Hash digest
SHA256 3b61b77b12297d96c111c7e6d154061db1fc5f66f4b8595a806b99cba4e34a27
MD5 bc86bea2a156dcf48419b5ffd6133d77
BLAKE2b-256 fa3d39f9913d7a3cfaca702af187f2e65da5edcde855bb60d99de81815e974ec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.3.3-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 284.0 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.3.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 707b99688028b07fab2691be47ab70ae2ebb9ba73b474d619332386df5d44ed0
MD5 653fdfafdd586142c5bbc1a4679dc342
BLAKE2b-256 73b726911963182ff4ed8a47bc2ee6d418081b62a1a7edc857608a7160cc75a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34c61d1b43cc6732500ca74ea93940526224038f43953442328bfe7b19b1985c
MD5 9dbe9fa853fc2688fd6e421771469e51
BLAKE2b-256 6e38dddbc7db642f0ffe9ca7abde7aae39a784592735afc22861ada7f5136367

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d341390dae64bf68566fc97f1488c886aea9ed23a544abb8c66916324b2f07a5
MD5 462df354c95d010906d2eb9a2ef5f3bc
BLAKE2b-256 5dc8cc9862f940144122ece575140a53ef76ba680dd65259e167712def04a218

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe2d53ef11130dd73412480a6a7337bd268dfa4ba4c055a4dadaa1989260fddb
MD5 268905ecabcb2e193568465bddf21511
BLAKE2b-256 db7e7f84f3e9345c4a7b3bce4ebaa542b0769a0d8a0c87315816dbc178beb3fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 87de4566313ff02e025417f51b9410f70e83cc602296093435b958b3069d3adc
MD5 21028a573efc0140742719be65d7f5a1
BLAKE2b-256 01acad67758eea37b712ec1b9dbdff9ff1ed6dc18318c0e2bdf8034633bdfb8e

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

1.4.0

6 files

1.3.7

6 files

1.3.6

6 files

1.3.5

6 files

1.3.4

6 files

This release

1.3.3 This release

6 files

1.3.2

6 files

1.3.1

6 files

1.3.0

6 files

1.2.0

6 files

1.1.0

6 files

1.0.6

6 files

1.0.5

6 files

1.0.4

6 files

1.0.3

6 files

1.0.1

6 files

1.0.0

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page