Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect soft clipped region after insertion (one off error?) #4401

Closed
Maarten-vd-Sande opened this issue May 29, 2024 · 2 comments · Fixed by #4402
Closed

Incorrect soft clipped region after insertion (one off error?) #4401

Maarten-vd-Sande opened this issue May 29, 2024 · 2 comments · Fixed by #4402
Labels
bug Something isn't working

Comments

@Maarten-vd-Sande
Copy link
Contributor

Describe the bug

I have two reads in the same region. They both have the same last 9 nucleotides, and they are soft-clipped. One of the two has an insertion earlier in the sequence. This is how jbrowse shows them:

image

When I show soft-clipped nucleotides, it shows 9 nucleotides for both reads. Yet, the soft-clipped sequences are identical in the bam file, but I think jbrowse2 introduces a one-off error here by duplicating the last C nucleotide:

image

I think it has to do with the fact that one of the two sequences has an insertion earlier.

To Reproduce

This is the config, reference genome and bam file:

example.zip

It contains only one contig. To see the effect the clearest you will have to color per nucleotide, and show soft clipping. When you click on the two reads, you can see that the last 9 nucleotides are identical between them.

Version:

2.10.2 browser version (firefox)

Additional context

@Maarten-vd-Sande Maarten-vd-Sande added the bug Something isn't working label May 29, 2024
@cmdcolin
Copy link
Collaborator

thanks for reporting this. I can confirm and it affects both bam and cram. will try to whip up a fix

@Maarten-vd-Sande
Copy link
Contributor Author

Thanks for fixing this! Awesome! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants