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

Uploaded CPython 3.8+Windows x86-64

opentfraw-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (406.6 kB view details)

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

opentfraw-1.0.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (397.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

opentfraw-1.0.4-cp38-abi3-macosx_11_0_arm64.whl (357.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

opentfraw-1.0.4-cp38-abi3-macosx_10_12_x86_64.whl (359.9 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: opentfraw-1.0.4.tar.gz
  • Upload date:
  • Size: 68.3 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.4.tar.gz
Algorithm Hash digest
SHA256 25be004e2e66d11456aeecee544190313cc3edb7dc779640b3a1d403a657e74d
MD5 be0e58cf89362278b98377be11cbe896
BLAKE2b-256 fa4c8f7174bd65ed868aa020c8146f3073e8ec32f30166b2af64307bfcc60984

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: opentfraw-1.0.4-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 259.5 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.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 127a23174788ad5e708462765f4ed0f00b0f75cfc9eafe5ea47164fcd91ca389
MD5 4b674de5d0af2a74c3f1cc89501c31a9
BLAKE2b-256 b81f01eb228b05722d66884b08cad8cad7b8b4b905b95bf44cf45952d97b1712

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c8c1db65c3944f4991bf7645f1f62dfce588d9290a273d752673d4f151ada38
MD5 d5700acd53ff17a56f90557a2bf877d1
BLAKE2b-256 a8c924878d60bad0ed950b45c5aef7a7b6b88293f42761592dea9b68276d5f6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a511e7d91d7b0ec09f7b3e350039db6e4714a0703581bfb65653f67a41cf17b6
MD5 936435f62c639bf9230dd5d11ae10e8c
BLAKE2b-256 b69e9ee970525f54bb6cc885d0e7c67924e1c42085a7f3b4a2a2067c41466125

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfab945ee0ae42c6bcb85ea1a8909b1001544b6d0cf7ed8520d9288c0b48ab38
MD5 d502c70581a8d94577c6ddeb3943469d
BLAKE2b-256 6ab091fb7e283013de1df1c44ddd20dd8ad71eb60515969d98a5ff5703e15c5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentfraw-1.0.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b4e8e7760f4db85f88a99690ed3e763a76aec913b0634d6913d0f558b6ce93b5
MD5 98c21a91191ea97e59aad8dd5911e215
BLAKE2b-256 2e38ee587a53a8c3917cbf826e8eb1af8ab6156cfcb70f0fc8ae20aa5af525a3

See more details on using hashes here.

Provenance

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