ryanlayer / samplot

Plot structural variant signals from many BAMs and CRAMs
MIT License
511 stars 67 forks source link

Split view coordinates annotated incorrectly #195

Open Y-Pei opened 6 months ago

Y-Pei commented 6 months ago

Hi,

I have noticed an issue where the coordinates for split view plots seem to be incorrect.

For instance, in one of your examples here https://layerlab.org/2019/06/04/Samplot-improvement.html:

The deletion was generated with coordinate "-c 1 -s 72766323 -e 72811839", which is correctly annotated in normal view: image

but seems incorrectly annotated in the split view image

As you can see in the figure, the 45 kb DEL starts just after 72,765,723 and before 72,766,123. However, the actual start is 72,766,323, which is after 72,766,123. Similarly, the end of the DEL in the split view is after 72,812,039, but the provided SV ends before that at 72,811,839.

I have noticed similar issues in my own images, particularly for larger SVs (~1 Mb) where split view is the default. Any chance you could please look into this? Alternatively, is there a way to force normal view on larger SVs?

Many thanks!

ManavalanG commented 5 months ago

This issue is same as #163