Skip to content

Trim trailing rows from Adapter Content when --min_length is used#187

Open
ewels wants to merge 3 commits intos-andrews:masterfrom
ewels:feature/kmer-skip-empty-rows
Open

Trim trailing rows from Adapter Content when --min_length is used#187
ewels wants to merge 3 commits intos-andrews:masterfrom
ewels:feature/kmer-skip-empty-rows

Conversation

@ewels
Copy link
Copy Markdown
Contributor

@ewels ewels commented Apr 13, 2026

When --min_length inflates the X-axis beyond the actual adapter position data, the Adapter Content module produced trailing rows of all zeros.

These positions have no adapter data (adapter positions only extend to sequence_length - adapter_length + 1) so the extra rows add no information.

This PR trims them after computing enrichments.

ewels and others added 2 commits April 13, 2026 18:09
… used

When --min_length inflates the X-axis beyond the actual adapter position
data, the Adapter Content module produced trailing rows of all zeros.
These positions have no adapter data (adapter positions only extend to
sequence_length - adapter_length + 1) so the extra rows add no
information. Trim them after computing enrichments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Regenerate approved output to reflect the adapter content trailing-zero
trimming and the current 0.12.2.devel version string.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ewels ewels marked this pull request as draft April 13, 2026 16:17
The previous approach trimmed all trailing all-zero rows, which
incorrectly removed legitimate zero-data positions when no adapters
were found. Now only trim when --min_length actually inflated the
X-axis beyond the real adapter position data, and trim to the exact
boundary of real data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ewels ewels marked this pull request as ready for review April 13, 2026 16:20
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