Skip to content

Spectral detection needs more than one raw detector, and the keep rule matches the detection's case - #60

Open
david-priest wants to merge 1 commit into
mainfrom
fix/spectral-detection-follow-up
Open

david-priest wants to merge 1 commit into
mainfrom
fix/spectral-detection-follow-up

Conversation

@david-priest

Copy link
Copy Markdown
Owner

Two follow-ups to #56, mirroring GateLab-dev #198 so the R app and the browser classify a file the same way.

More than one raw detector. A conventional file with a single unlabelled fluorescence channel — an unstained or spare detector — satisfied "at least one raw detector" and was classified as spectral-unmixed, which dropped its -H/-W channels and changed every gate's channel identity between files of one panel that differed only in that label. The rule now needs more than one raw detector; a spectral file carries dozens.

The keep rule matches the detection's case. Detection tested the -A suffix case-insensitively, the keep rule did not, so a marker written -a counted towards making the file unmixed and then fell through to the drop branch, losing the channel.

Tests: two raw detectors still trigger filtering (and a -a marker survives it); one unlabelled channel keeps a conventional file whole.

Finding 14 of the 2026-09-11 review of the wsp-testing PRs.

🤖 Generated with Claude Code

…e matches the detection's case

A conventional file with one unlabelled fluorescence channel was classified as
spectral-unmixed, which dropped its -H/-W channels and changed every gate's
channel identity between files of a panel that differed only in that label.
The rule now needs more than one raw detector, as GateLab's channels.ts does.
The keep rule tested the "-A" suffix case-sensitively while the detection did
not, so a marker written "-a" made the file unmixed and was then dropped.

Co-Authored-By: Claude Fable 5.1 <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