Skip to content

Add scikit-image as a required dependency#13

Open
an-altosian wants to merge 1 commit intoCOMBINE-lab:mainfrom
an-altosian:add-scikit-image
Open

Add scikit-image as a required dependency#13
an-altosian wants to merge 1 commit intoCOMBINE-lab:mainfrom
an-altosian:add-scikit-image

Conversation

@an-altosian
Copy link
Copy Markdown
Contributor

Summary

  • Adds scikit-image>=0.24 as an explicit dependency in pyproject.toml
  • Required for doublet detection: scanpy.pp.scrublet() calls skimage.filters.threshold_minimum for automatic threshold calculation
  • Without this dependency, --remove_doublets fails with ValueError: threshold is None and thus scrublet requires skimage, but skimage is not installed

Version constraint rationale

  • >=0.24: required for numpy 2.x compatibility (QCatch pins numpy>=2.1.3)
  • Aligns with scanpy's [scrublet] extra which requires scikit-image>=0.23.1

Test plan

  • Verified --remove_doublets fails without scikit-image installed
  • Confirmed scikit-image>=0.24 resolves correctly with existing dependency constraints
  • Tested QCatch pipeline run with --remove_doublets --visualize_doublets flags

`scanpy.pp.scrublet()` requires `scikit-image` for automatic threshold
calculation when `--remove_doublets` is used. Without it, the call fails:

  ValueError: threshold is None and thus scrublet requires skimage,
  but skimage is not installed.

The lower bound of >=0.24 ensures compatibility with numpy>=2.x
(required by qcatch).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant