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.

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

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.3.7-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (478.4 kB view details)

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

opentfraw-1.3.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (465.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.3.7-cp38-abi3-macosx_11_0_arm64.whl (425.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.3.7-cp38-abi3-macosx_10_12_x86_64.whl (428.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for opentfraw-1.3.7.tar.gz
Algorithm Hash digest
SHA256 550794838561eea227ec62a27910daa39a4a963fd60c658c760c864f383a4182
MD5 b881ce1fa467c4c416d7e5350a2f2f93
BLAKE2b-256 3a1e8de9c360406a2d16f6c2b34ba66dc20a7acc5a0233e635250e6c461d9a4c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.3.7-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 321.9 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for opentfraw-1.3.7-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d0c33ed0b73a7a4d75ec4fdd52bd03101c878efd35408310c6b6b438bbff6039
MD5 607cdaa582e5bba03ed9215b184bd60d
BLAKE2b-256 2580b060bdd9e9fbef1ae3fb7a1f91f37e8e896c0d382fcbe4d1abaf9a4fd848

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.7-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c7d2eb808d31e982257bb562ebe97cd37294134f87fe0fe28e0089699bcef25
MD5 cfcc8c51aa948d857fe5ba5a1287a319
BLAKE2b-256 ffcad96a538d7d01e0043782e2770a815947b5ea9ded68815d34db9807d37705

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c02b3922a771e66dc01020d83b2f0a243e9e9f7f3e6855ccacdb781c431de75c
MD5 e8a0f49fa71bc437574b4600d2430ab8
BLAKE2b-256 c5f2fe74b04dbbd6a47f01909c15bba323738c70f793d37f054ebebe8818f53a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.7-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b86788a5cfc97df0ee445b7e6dc30dce123d36211614475648d96307da23400
MD5 75e50743f5e4cf985b9ff973283c3e38
BLAKE2b-256 640e1519655792401ec4055593c96bf5312bfbab8340ff5383cfc6b2d86201ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.3.7-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 12ab960b8a5fe0ebea691e3147b064074e211774bcc8a3de211579554f073aa7
MD5 d2f4b9790dec8656116e00053f114d1a
BLAKE2b-256 b456a9547e7cb43d91dd41c2ed1b944448f124a5e50856f1cd05683131e8ca6e

See more details on using hashes here.

Provenance

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

This release

1.3.7 This release

6 files

1.3.6

6 files

1.3.5

6 files

1.3.4

6 files

1.3.3

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