Skip to content

Feat/grep on sequence headers - #200

Merged
noamteyssier merged 4 commits into
dev-0.5.12from
feat/grep-on-sequence-headers
Jul 23, 2026
Merged

Feat/grep on sequence headers#200
noamteyssier merged 4 commits into
dev-0.5.12from
feat/grep-on-sequence-headers

Conversation

@noamteyssier

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new --header/-H flag to bqtools grep, allowing users to match patterns against sequence headers instead of the sequences themselves. It handles conflicts with --rc and --range, disables colorized output in header-matching mode, and updates both the filter and pattern count processors. Feedback on the changes suggests optimizing FilterProcessor::process_record by deferring sequence decoding (sbuf and xbuf) until after checking self.header, matching the deferred decoding pattern already implemented in PatternCountProcessor.

Comment thread src/commands/grep/filter/processor.rs
@noamteyssier
noamteyssier merged commit a15e1c7 into dev-0.5.12 Jul 23, 2026
8 checks passed
@noamteyssier
noamteyssier deleted the feat/grep-on-sequence-headers branch July 23, 2026 06:00
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