Rust parser for Thermo Fisher RAW mass spectrometry files
Project description
opentfraw -- Python bindings
Python bindings for the OpenTFRaw
Rust crate. Reads Thermo Fisher .raw mass spectrometry files via a
NumPy-friendly API.
Install (from source)
cd python
pip install maturin
maturin develop --release
Quickstart
import opentfraw
raw = opentfraw.RawFile("experiment.raw")
print(len(raw), raw.instrument_model)
# Per-scan metadata + peaks as numpy arrays
s = raw.scan(1)
print(s["ms_level"], s["retention_time"], s["filter_string"])
mz = s["mz"] # numpy.float64[:]
intensity = s["intensity"] # numpy.float32[:]
# Convert to mzML
raw.to_mzml("experiment.mzML")
API
RawFile(path)— load a.rawfile.num_scans,.first_scan,.last_scan,.instrument_model,.path.peaks(scan_number) -> (mz, intensity)— fast centroided arrays.scan_filter(scan_number) -> str | None— Thermo scan filter string.scan(scan_number) -> dict— full per-scan metadata + arrays.iter_scans() -> list[dict]— every scan as dicts.to_mzml(out_path)— write mzML 1.1.0
This is an early preview. Feedback welcome.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentfraw-1.0.1.tar.gz.
File metadata
- Download URL: opentfraw-1.0.1.tar.gz
- Upload date:
- Size: 236.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee613d4117727a0b518edfaf8dc715da6a703e2cdfd40c914dc73268555d23d
|
|
| MD5 |
352a44d6665b12910fc782df834329f6
|
|
| BLAKE2b-256 |
88b8076ca50e62934600e0af02fea47f8ea2fc20581f14746b2bf081c209b987
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1.tar.gz:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1.tar.gz -
Subject digest:
bee613d4117727a0b518edfaf8dc715da6a703e2cdfd40c914dc73268555d23d - Sigstore transparency entry: 1555502465
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentfraw-1.0.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: opentfraw-1.0.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 254.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf0fc5332f0987a4fb2b57ca06e1bfff4dabd1f7b2cc5258bcbe9129bf77462
|
|
| MD5 |
11e0b51f71fc232e6ac8c0acb7251e2c
|
|
| BLAKE2b-256 |
8995e8f26b3fcb6d245aabc9487f10379ce1d2af7e0cb7d00eb76d29c6715bed
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1-cp38-abi3-win_amd64.whl:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1-cp38-abi3-win_amd64.whl -
Subject digest:
eaf0fc5332f0987a4fb2b57ca06e1bfff4dabd1f7b2cc5258bcbe9129bf77462 - Sigstore transparency entry: 1555502535
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentfraw-1.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: opentfraw-1.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 401.7 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f0033206f2584082ae48e635448aec2e7f11fffaa51ae90027f842581cef1d8
|
|
| MD5 |
d55617bc9ecfc53c94ab3b873f41bfd0
|
|
| BLAKE2b-256 |
73df32279702adf7efbab93c9538e19d534e97708c30621d63cd8f94a6e86ead
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
7f0033206f2584082ae48e635448aec2e7f11fffaa51ae90027f842581cef1d8 - Sigstore transparency entry: 1555502620
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentfraw-1.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: opentfraw-1.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 392.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a42cea757f167c05107041759d37105fedfda5c036276e7bbd643bf5a1bcb91
|
|
| MD5 |
6ea7390023076673da6bfe14a96cfbc8
|
|
| BLAKE2b-256 |
2444b51121014d29a5adb582ff7325123f479289aee5f7bf51748f714cc49159
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
9a42cea757f167c05107041759d37105fedfda5c036276e7bbd643bf5a1bcb91 - Sigstore transparency entry: 1555502658
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentfraw-1.0.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: opentfraw-1.0.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 352.2 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d84e3f1b0e0fcba7a4b0b7ff092a4a52e48f842fea417bdc2d6c4c39af16ffc4
|
|
| MD5 |
8006a9d66d34dfc387ed489ea3d39123
|
|
| BLAKE2b-256 |
530d72bc8aebf7fb3a08d469d3e723500388f56d5c1b803b151b7255b7f8084f
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1-cp38-abi3-macosx_11_0_arm64.whl:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1-cp38-abi3-macosx_11_0_arm64.whl -
Subject digest:
d84e3f1b0e0fcba7a4b0b7ff092a4a52e48f842fea417bdc2d6c4c39af16ffc4 - Sigstore transparency entry: 1555502737
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentfraw-1.0.1-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: opentfraw-1.0.1-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 355.1 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f1e0cfe83fdbd6a6e661b594ec4b252c72eb79e7d5b518aee60a64849a426a3
|
|
| MD5 |
e0d8b1fee9b60476c91c08d30ae20e1a
|
|
| BLAKE2b-256 |
1fb346e53eb441b130c52972499b06e6fb17e7db6d4b6411b68ab4663e73c0c3
|
Provenance
The following attestation bundles were made for opentfraw-1.0.1-cp38-abi3-macosx_10_12_x86_64.whl:
Publisher:
publish.yml on Sigilweaver/OpenTFRaw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentfraw-1.0.1-cp38-abi3-macosx_10_12_x86_64.whl -
Subject digest:
8f1e0cfe83fdbd6a6e661b594ec4b252c72eb79e7d5b518aee60a64849a426a3 - Sigstore transparency entry: 1555502699
- Sigstore integration time:
-
Permalink:
Sigilweaver/OpenTFRaw@992f62de20f805dfe2f177ec95995f345d49c994 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sigilweaver
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@992f62de20f805dfe2f177ec95995f345d49c994 -
Trigger Event:
push
-
Statement type: