Skip to content

Fix/cellsam combine membrane channels - #32

Merged
mikemcka merged 3 commits into
WEHI-SODA-Hub:mainfrom
mikemcka:fix/cellsam-combine-membrane-channels
Jul 19, 2026
Merged

mikemcka merged 3 commits into
WEHI-SODA-Hub:mainfrom
mikemcka:fix/cellsam-combine-membrane-channels

Conversation

@mikemcka

Copy link
Copy Markdown
Collaborator

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

mikemcka and others added 3 commits June 29, 2026 14:49
cellSAM previously received only the first matching membrane channel
(first-match-and-break in extract_channels), silently discarding any
additional markers. Wire COMBINECHANNELS into the CELLSAM_SEGMENT
subworkflow (mirroring the SOPA/Cellpose path) so all listed membrane
markers are max-combined into a single 'combined_membrane' channel
before segmentation. The background-subtraction variant inherits the
fix via its call to CELLSAM_SEGMENT.

Because cellSAM now only sees the single combined channel, log which
channels were combined in combine_channels.py so that information stays
visible in the process log.

Add multi-membrane nf-test cases to the combinechannels module and the
cellsam_segment subworkflow (reusing synthetic_multichannel.tif with
CD45:TRITC). Snapshots still need blessing on a GPU node; the existing
cellsam_segment / cellsam_segment_wbacksub snapshots also change because
COMBINECHANNELS now runs within those workflows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mikemcka
mikemcka merged commit e7c4498 into WEHI-SODA-Hub:main Jul 19, 2026
4 of 5 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

This PR is against the main branch ❌

  • Do not close this PR
  • Click Edit and change the base to dev
  • This CI test will remain failed until you push a new commit

Hi @mikemcka,

It looks like this pull-request is has been made against the mikemcka/sp_segment main branch.
The main branch on nf-core repositories should always contain code from the latest release.
Because of this, PRs to main are only allowed if they come from the mikemcka/sp_segment dev branch.

You do not need to close this PR, you can change the target branch to dev by clicking the "Edit" button at the top of this page.
Note that even after this, the test will continue to show as failing until you push a new commit.

Thanks again for your contribution!

@mikemcka
mikemcka deleted the fix/cellsam-combine-membrane-channels branch July 19, 2026 23:54
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.

2 participants