Skip to content

Fix IndexError / loss of data for large numbers of lanes#12

Merged
ewels merged 1 commit into
mainfrom
claude/investigate-old-bug-UaEb8
Dec 18, 2025
Merged

Fix IndexError / loss of data for large numbers of lanes#12
ewels merged 1 commit into
mainfrom
claude/investigate-old-bug-UaEb8

Conversation

@ewels
Copy link
Copy Markdown
Member

@ewels ewels commented Dec 18, 2025

The previous code would silently drop data for lanes >= 8 because the Dark2 color palette only has 8 colors (indices 0-7) and lanes are 1-indexed. This fix uses modulo arithmetic to cycle through colors for any number of lanes, preventing data loss.

Fixes #4

The previous code would silently drop data for lanes >= 8 because
the Dark2 color palette only has 8 colors (indices 0-7) and lanes
are 1-indexed. This fix uses modulo arithmetic to cycle through
colors for any number of lanes, preventing data loss.

Fixes #4
@ewels ewels requested a review from matthdsm December 18, 2025 11:31
@ewels ewels changed the title Investigate and validate old bug report Fix IndexError / loss of data for large numbers of lanes Dec 18, 2025
@ewels ewels merged commit 661c041 into main Dec 18, 2025
3 checks passed
@ewels ewels deleted the claude/investigate-old-bug-UaEb8 branch December 18, 2025 11:35
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.

Novaseq X plus runs

3 participants