GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
209 stars 62 forks source link

Reduce self-pairing for some paired-end read data in breakpoint split view #4667

Closed cmdcolin closed 3 days ago

cmdcolin commented 3 days ago

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

image

after

image

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

image

all four of those boxes share the same QNAME