Scan your whole stack
From OX Research Newsroom
Are you using opentfraw?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.1.1
opentfraw was last scanned on 27 Nov 2026 at version 3.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.1.1 LATEST | 27 Nov 2026 | No rules fired |
| 3.1.0 | 21 Oct 2026 | No rules fired |
| 3.0.0 | 11 Oct 2026 | No rules fired |
Findings for v3.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Part of the OpenMassSpec stack for mass spectrometry raw-file access.
Rust and Python reader for Thermo Fisher .raw mass spectrometry files.
It is tested on format versions 63, 64 and 66, from LTQ ion traps through
Orbitrap Astral and TSQ Altis (see Known issues and gaps
and CORPUS.md).
Documentation: sigilweaver.app/opentfraw/docs
Measured on the public test corpus (291 files from 56 PRIDE datasets).
target_mz and selected_mz are 0.5 while the
scan filter and the reaction hold the real precursor (for example 652.9).lock token: scan_filter() renders lock only on a
scan whose trailer reports at least one found lock mass. A scan that
reports zero found but keeps the previous scan's nonzero correction
renders no lock. This is the case for 24,273 of 27,832 scans in the
public Q Exactive HF-X acquisition PXD071477 and 35,221 of 51,254 in the
Exploris 480 acquisition PXD064947. The files do not show whether such a
scan counts as lock-corrected: on the Q Exactive Plus and HF-X files a
preamble byte separates it from both a found lock mass and a method with
no lock mass, but the byte has no public documentation and is constant on
Exploris 480, so it is not used.data_size - 1,
else data_size - 2) against the scan index: finite and ascending m/z, an
intensity sum equal to the total current, m/z inside the indexed range
(with a total current of 0 an agreeing read cannot be told from an all-zero
misaligned one). When the default count disagrees, every count from data_size - 1 down to
data_size - 12 is tried. If exactly one agrees the scan is
recovered: its peaks use that count and the spectrum carries
opentfraw.peak_count_recovered (1,969 of the 35,098 scans of PXD020246,
none of the other public files).
If none agrees, or more than one does (a tie is never broken), the scan is
unverified: the default peaks are returned unchanged, may hold NaN or
descending m/z, and the spectrum carries opentfraw.peak_count_unverified
(none in the public corpus). A true count of zero is never tried, so a
scan with data_size of 2 or more and no peaks is unverified, not empty.
Recovered and unverified scans are counted wherever they are read:
OpenTfRawSource::recovered_peak_count_scans() and
unverified_peak_count_scans(), RawFileReader::peak_counts_recovered()
and peak_counts_unverified() (decodes since open), the peak_count field
of extract_spectrum / iter_spectra records, a UserWarning from Python
peaks(), scan() and to_mzml, and a warning from the to_mzml
example. A record that matches no layout raises an error, and
to_mzml(..., skip_unreadable=True) (Python) or the to_mzml example's
--skip-unreadable flag writes the other scans and reports how many were
left out.opentfraw.unconverted_profile_bins.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
Rust:
use std::{fs::File, io::BufReader};
use opentfraw::RawFileReader;
let raw = RawFileReader::open_path("sample.raw")?;
// Buffer the scan reads: an unbuffered File is about 11x slower.
let mut file = BufReader::new(File::open("sample.raw")?);
let info = &raw.run_header.sample_info;
for scan_num in info.first_scan_number..=info.last_scan_number {
let peaks = raw.read_scan_peaks(&mut file, scan_num)?;
println!("scan {scan_num}: {} peaks", peaks.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.
| Project | Description |
|---|---|
| Mascope by Ultra Trace | Mass spectrometry data analysis platform using OpenTFRaw to ingest Thermo .raw files. |
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.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.