Skip to content

Give vg surject opinions about paired-end input - #5021

Merged
adamnovak merged 4 commits into
masterfrom
surject-demand-pairing
Aug 26, 2026
Merged

Give vg surject opinions about paired-end input#5021
adamnovak merged 4 commits into
masterfrom
surject-demand-pairing

Conversation

@adamnovak

Copy link
Copy Markdown
Member

Changelog Entry

To be copied to the draft changelog by merger:

  • vg surject now requires either -i/--interleaved or -U/--force-unpaired if it thinks the input smells like paired-end data.
  • vg giraffe now uses the GAM fragment length distribution built-in field, like vg map, instead of a "fragment_length_distribution" annotation.

Description

This should help with #4563 by making it impossible to accidentally surject paired-end reads as single-ended, and by warning the user if the default unlimited fragment length limit is used.

This will not help you if you forget to map your reads as paired-end, because it specifically doesn't check for things like /1 and /2 in your read names, but we expect users to be wise to that subtlety already if they have experience with linear-reference mapping tools. If we want to complain about mapping reads wrong, we should separately add that check to the mappers.

@adamnovak
adamnovak merged commit 48ec2ad into master Aug 26, 2026
2 checks passed
@faithokamoto
faithokamoto deleted the surject-demand-pairing branch August 26, 2026 16:37
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.

2 participants