Skip to content

FASTag v1.5.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 16:28
· 1307 commits to main since this release

FASTag v1.5.0: mzPeak performance release

Reading mzPeak is 3.9× faster at 128 threads and uses a quarter of the memory. Tag output is byte-identical to v1.4.3.

CPTAC breast cancer, merged fractions — 931,325 MS2 spectra, 3.6 GB archive, 37,599,162 tags in every run — on two AMD EPYC 9654, at default parameters:

v1.4.3 v1.5.0
16 threads 71.1 s / 7.9 GB 26.6 s / 1.8 GB
128 threads 18.8 s / 11.4 GB 4.8 s / 2.8 GB

Reading mzPeak is now faster than reading mzML at every thread count, and the run scales from 406 s on one thread to 4.0 s on 256. The README has the full ladder and the same measurement for five more public data sets.

What changed

  • Tagging kernel:
    • peak lookups use a prebuilt grid and residue-difference table instead of binary searches;
    • the averagine deisotoper is a local port, bit-identical to OpenMS 3.5.0;
    • the Fisher score is closed-form;
    • numbers are formatted with std::to_chars;
    • per-thread scratch memory is reused.
  • Parallel loop:
    • one parallel region with a resident writer and chunked output;
    • threads decode row groups ahead instead of waiting on each other.
  • mzPeak reading (mzpeak-openms a4345f7):
    • decode memory is recycled across threads instead of stranding in per-thread allocator arenas;
    • the per-point spectrum_index column is held as verified runs rather than decoded;
    • spectrum metadata is read into a compact record;
    • array access avoids a process-wide lock in Arrow;
    • archive open is 3× faster.
  • Library update: the mzPeak library also brings trunk's work. Written archives now carry SHA-512 member checksums, and scan_start_time is stored as double, as the specification now prefers. Promoted activation columns are read.
  • mzML with a missing or stale index: such a file used to be loaded whole into memory, serially. A stale index is common: any tool that patches an mzML in place without rewriting the index leaves it stale. FASTag now finds the spectra with a parallel scan and reads the file as usual. On a 6 GB file the scan takes 0.26 s, and the run takes 2.9 s and 0.5 GB instead of 52.9 s and 7.2 GB. FASTag prints a warning when it rebuilt an index.
  • An unreadable file is now an error, not a crash. An archive FASTag could open but not decode reached std::terminate: the process aborted with no exit code and the message buried in a runtime banner, which from the desktop app looked like the tool vanishing. Such a run now exits with an error code and prints the reason. The same applies to a failure inside a worker thread.
  • Stricter stale-index check: an index shifted by only a few bytes used to pass the check, and about half the spectra then decoded empty, silently. The check now requires offsets to point exactly at a spectrum tag, and samples 33 of them instead of 3.
  • Packaging: the launchers on every platform and the desktop app default OPENBLAS_NUM_THREADS=1. libOpenMS loads OpenBLAS, which otherwise starts a spinning thread per core (~2 s of CPU on a 128-thread machine, even for --help). A value you set yourself still wins.

Documentation

The README now carries FASTag's own scaling and runtime/memory figures for selected public data sets instead of comparisons with other tools, and the documents that only tracked the development process (backlogs, plans, readiness and review notes) are gone. What remains — the algorithm, install, options, formats, outputs, validation — was checked against the code.

Also in this release

  • The ported deisotoper is built without fused multiply-add, so it reproduces OpenMS's arithmetic on arm64 exactly as it already did on x86-64.
  • Roughly 1,400 lines of code removed, with output unchanged.

Compatibility

  • macOS 13.3 or later is now required (was 12). The new number formatting needs libc++'s floating-point std::to_chars, which macOS ships from 13.3.
  • Tag output is unchanged. Files written with -out_spectra differ from v1.4.3 only in the software version, in mzPeak's added checksums and in the double-precision scan start time.