Reduce self-pairing for some paired-end read data in breakpoint split view #4667
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
some paired end BAM files, e.g. from GIAB have a weird thing where there is a duplication of the reads at each position. There is no BAM flag indicating it is a duplicate, so there's no real way to distinguish these. Our Breakpoint split view tries to connect features that have the same QNAME (read name) to match pairs (pairs share the same read name) but this weird duplicate reads also share the same QNAME.
This PR filters makes it so paired end reads specifically don't connect with features at the same position
before
after
focus on the 'problematic reads'
I filtered out just one qname which shows that it matches 4 boxes...typically it should be two (left and right side of pair) and any other matches to the qname should at least be distinguished by something but these aren't
https://jbrowse.org/code/jb2/main/?config=test_data%2Fconfig_demo.json&session=share-8ybk_-VNx0&password=5ww3R
all four of those boxes share the same QNAME