Repository navigation
Fix/cellsam combine membrane channels - #32
Merged
mikemcka merged 3 commits intoJul 19, 2026
Merged
Conversation
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>
Contributor
This PR is against the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).