Skip to content

add --interleaved support for paired input#85

Open
nrminor wants to merge 1 commit intobede:mainfrom
nrminor:interleaved-pair-support
Open

add --interleaved support for paired input#85
nrminor wants to merge 1 commit intobede:mainfrom
nrminor:interleaved-pair-support

Conversation

@nrminor
Copy link
Copy Markdown

@nrminor nrminor commented Apr 21, 2026

Summary

  • add an explicit --interleaved flag so paired reads can be consumed from a single file path or stdin as one ordered stream
  • preserve the existing paired-file behavior and the current "- -" stdin form as a non-breaking way to request interleaved processing
  • allow interleaved input to write split paired outputs and add coverage for file-backed interleaved input and invalid CLI combinations

Testing

  • all tests pass locally

This commit adds an explicit --interleaved flag so paired reads can be consumed from a single file path or from stdin as one ordered stream. To preserve backwards compat, it keeps the existing paired-file behavior unchanged and preserves the current "- -" stdin form as an alternative way to request interleaved processing.

Interleaved inputs can be written either as interleaved output or split across --output and --output2, matching the existing paired-output behavior.

To coach the user toward correct usage, we use clap to reject invalid CLI combinations by erroring when --interleaved is used together with a second input file, and avoid warning on --output2 when interleaved mode is explicitly requested.

And finally, the commit also adds tests covering interleaved paired input from a file, split output for interleaved input, and invalid use of --interleaved with a second input file.
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