Patch Notes

Patch Notes

Patch notes for v1.2.23

This maintenance release fixes security and data-processing issues.

Security

  • Replaced unrestricted pickle loading with restricted readers that allow only explicitly supported data classes and reconstruction helpers. This covers MS/MS libraries (including embedded spectrum metadata), RT correction models, aligned features, saved workflow objects, .mzpkl files, classifier/scaler artifacts, and bundled resources.
  • Malicious or unsupported pickle objects are rejected before their code can execute. Malformed library data now produces consistent loading errors, including errors encountered while reading individual spectrum metadata.

Bug fixes

  • Fixed PQN normalization when no blank samples are present. Missing usable reference features and invalid normalization factors now raise explicit errors instead of silently producing invalid results.
  • Corrected the LOWESS fallback condition so that a correction that increases QC relative standard deviation is discarded.
  • Corrected gap-filled peak areas to use the same time units as detected peaks. Feature merging now preserves per-sample detection records and updates detection rates, preventing detected peaks from being treated as missing.
  • Fixed RT correction when no suitable anchor features are available.
  • Alignment reuse now checks sample metadata, processed feature files, processing parameters, and annotation inputs before accepting cached results.
  • JSON and MSP libraries now use the same entropy weighting as the standard PKL database builder. Existing PKL libraries retain their stored weighting.
  • Fixed classifier prediction to use the correct workflow entry point, identify QC/blank samples consistently, and select sample columns by name. Saved scalers now match the features selected for the model. Missing required features and incompatible legacy scalers produce explicit errors rather than substituting an unrelated peak or failing with a dimension mismatch.
  • Fixed t-tests and ANOVA with Python-list group labels, sample-flag parsing in workflow evaluation, and the output-path argument in the mirror-plot wrapper.

Compatibility

  • Pickles containing custom or unsupported classes are rejected. Supported legacy workflow and scan aliases remain readable.
  • Projects without an alignment-input record rebuild alignment on their first resumed run. Classifiers with incompatible legacy scalers must be rebuilt.
  • PQN remains the only implemented sample-normalization method. Unsupported method names now raise an explicit error.

Patch notes for v1.2.20 and v1.2.21

  • Added structured file metadata and consistent extension-free filenames.
  • Replaced scan id with the clearer raw_file_id, with compatibility for older mzpkl files.
  • Improved MS/MS library loading and annotation error handling. Empty experimental MS/MS spectra can now be correctly handled. We thank Kruttika for reporting the issue.
  • Refined feature finalization, peak boundaries, and visualization.

Patch notes for v1.2.19

  • Improved the alignment accuracy by optimizing the alignment strategy. RT and m/z errors were considered together for better alignment results.
  • The finally reported m/z value for aligned feature is now the median m/z value across all samples instead of the m/z value in the reference sample.
  • Upper limits for mz_tol_ms1 and mz_tol_ms2 were set to 5.0 Da (0.02 Da before) for low-resolution MS data.
  • Code updates for database loading.
  • Default centroid_mz_tol (i.e. MS1 ions with m/z difference lower than this value will be combined before processing, designed for bad data deconvolution from Orbitrap MS) is changed from 5 mDa to 2 mDa.
  • Other minor changes of code notes.
  • New safe float function for better raw data loading.
  • Better indicators for error handling in the workflow.

Patch notes for v1.2.17 and v1.2.18

  • Minor code and note edits.

Patch notes for v1.2.16

  • Bug fix: now the scan number and precursor ion fraction values are correctly assigned based on the reference MS/MS - spectrum (i.e. the spectrum used for annotation)
  • Empty adduct is now allowed for calculating the isotope distribution.
  • Other minor changes of code notes.

Patch notes for v1.2.15

  • Scan-to-scan correlation values are now reported for annotated adducts and in-source fragments.
  • Isotope state is clearly specified in the feature table (e.g. M+2 instead of “isotope”)
  • Isotope recognition accuracy has been improved for high-resolution MS data: C and S isotopes can be better distinguished
  • Feature grouping speed is now improved by 10-fold
  • Bug fix: mzXML file may not correctly specify the isolation window for DDA, which can trigger an error for precursor ion fraction calculation
  • Bug fix: in very rare cases, feature segmentation may fail
  • Feature alignment speed is improved.
  • Scan index (the index of the MS/MS scan in the raw reference file) is now provided for the MS/MS spectrum in the feature table that is used for annotation.

Patch notes for v1.2.14

  • Added precursor ion fraction (PIF) as an indicative metric for MS/MS spectrum quality. The PIF value is calculated based on isolation window and all ions present in the window that may contribute to the MS/MS spectrum. The PIF value is available in the aligned feature table in the “precursor_ion_fraction” column.

  • Added precursor window as an attribute in the Scan object (Scan.isolation_window).

  • Bug fix: now MassCube can correctly handle mzXML files without timestamps. Explanation: timestamps are automatically acquired in MassCube for signal drift normalization (if enabled). However, some mzXML files may not contain timestamps, which may lead to errors during data processing. This bug has been fixed in this version.

  • Updated formula_to_isotope_distribution function.

  • Minor text edits for the untargeted metabolomics workflow command line application.

v1.2.13

  • Fixed a bug that may cause failed MS/MS parsing.

v1.2.12

  • Split the feature segmentation method into a standalone module.

  • Re-optimized parameters for gf-prominence method (sigma = 0.6, prom_ratio = 0.02).

  • Fixed overly long peak shape output in the aligned feature table.

  • Updated formula_to_isotope_distribution function.

  • Minor text and code edits.