Skip to content

SigProfilerExtractor v1.5.0

Choose a tag to compare

@mishugeb mishugeb released this 07 Nov 22:26
· 33 commits to master since this release

SigProfilerExtractor v1.5.0

This release improves NMF numerical stability, aligns CPU and GPU execution behavior, adds COSMIC v3.6 as the default reference version, and resolves several reproducibility, validation, and output-handling issues.

Highlights

  • Updated the default COSMIC reference signature version from v3.5 to v3.6.
  • Updated the minimum required SigProfilerAssignment version to >=1.1.5.
  • Fixed NMF zero-locking by applying a numerical floor of 1e-16 to W, H, and W @ H.
  • Added detection of non-finite NMF factors instead of allowing NaN or infinity values to enter clustering.
  • Aligned batched GPU replicates with CPU and single-replicate GPU behavior.
  • Improved reproducibility by deriving all run generators from one root seed.

NMF and GPU Improvements

  • Corrected KL-loss handling when the mutation matrix contains zero values.
  • Each GPU replicate now has independent resampling, initialization, sample totals, and convergence stopping.
  • CPU extraction now runs the requested number of replicates when batch_size > 1.
  • CPU and GPU diagnostics are calculated consistently from the matrices fitted by NMF.
  • Double precision now preserves input values as float64 throughout NMF.

These numerical changes can produce different results from previous releases, particularly with NNDSVD initialization. The changes are expected to improve fit quality and prevent premature convergence caused by zero-locking.

Reproducibility and Validation

  • Seeds.txt now contains exactly one root seed.
  • The Gaussian mixture model used for normalization is seeded reproducibly.
  • Added clear validation for missing Seed columns and invalid seed files.
  • Added validation for matrix_normalization.
  • Samples containing partial missing values now produce a clear error.
  • Runs fail clearly when none of the requested mutation contexts can be analyzed.
  • Invalid higher-rank silhouette calculations no longer count as perfect stability.

Additional Fixes

  • Changed the CLI default for --maximum_signatures from 10 to 25, matching the Python API.
  • Forwarded NNLS penalty parameters and collapse_to_SBS96 to SigProfilerAssignment.
  • Recomputed the signature-rank range independently for each mutation context.
  • Removed large unused per-replicate arrays to reduce memory usage.
  • Corrected labels for matrices with unrecognized channel counts.
  • Rounded exported NMF activities instead of truncating them.
  • Made the SV_Matrices location independent of trailing slashes in BEDPE paths.
  • Existing context results are now moved to a timestamped backup before rerunning.
  • Importing SigProfilerExtractor no longer suppresses warnings globally or changes the multiprocessing start method.

Installation

After publication to PyPI:

pip install --upgrade SigProfilerExtractor==1.5.0

### Compatibility Notice

This release requires Python 3.9 or later and installs:

SigProfilerAssignment>=1.1.5