Skip to main content

Rust parser for Thermo Fisher RAW mass spectrometry files

Project description

OpenTFRaw

CI DOI 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.

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.

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

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (416.1 kB view details)

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

opentfraw-1.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (405.1 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.2.0-cp38-abi3-macosx_11_0_arm64.whl (363.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.2.0-cp38-abi3-macosx_10_12_x86_64.whl (367.4 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: opentfraw-1.2.0.tar.gz
  • Upload date:
  • Size: 71.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.2.0.tar.gz
Algorithm Hash digest
SHA256 181c6bb9e2bcab97285221025c87eb9d843ab02244801cdfcdd53d52988a6586
MD5 8ef1c699bb3b1a330404658418c3702f
BLAKE2b-256 8928ee27dd951941eaf13c70a99cb68db4de962386aaee190f2fbd7bc656dfd2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.2.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 266.2 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.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bd02b80507804773eeaff7c00f26c38fbd166fac09fb56aeb0635cacc02db0f0
MD5 b3e8a4c8f3c80c022db46bf0514f88dc
BLAKE2b-256 4f253bf1cd0f3d8ffc6936e2e2885b072a3fd1b405ef9c042f7a6683a445fd9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1601777f97d8d609c191da7d58cef1d6130810c21e9cf0215182391c2cb5f071
MD5 b926abddff530d2c884cb21d2783cadf
BLAKE2b-256 22bd8f569a87ac1d52037795266957d23e838bebd31adc6658033c890b9b2e7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 45a1a5558cbcfe82acd5a7f1ca835a21cb386be6996e39223567a4896136adbf
MD5 486720cba21a26f956194366010e6ee4
BLAKE2b-256 7bf90cb566be633a3b9221ff866d48f7a0191299a2b2c37cf2c54fc87400f7fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 328eb17d4adc821e2bda229a66f194d2282185df996f33d0060d915f4d9c9e9e
MD5 4c73d648d1916095eac0775f40702624
BLAKE2b-256 d3354b1075fc47cdf8abedf97d4ef4a5781889cbddc1813b35471fa2b31b1df2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4c4d0eaca8f45770580020f9e39f9e45240f8b83bf973efd122d5156903eab31
MD5 73ad7889f8edcc3d454a52cfc54c8636
BLAKE2b-256 1572eb28f87822d246fdaa12fa3de0161bace556160555c224e764e8babe879a

See more details on using hashes here.

Provenance

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