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

LeftAlignIndels Alignments added out of order issue when reads are fed in coordinate sorted order. #8975

Open
gokalpcelik opened this issue Sep 9, 2024 · 0 comments

Comments

@gokalpcelik
Copy link
Contributor

Hi team.
This is an old topic from the forum

LeftAlignIndels Alignments added out of order... Offending records are at [chr7:55268881] and [chr7:55268881]

java.lang.IllegalArgumentException: Alignments added out of order in SAMFileWriterImpl.addAlignment for file:///Users/jcovino/Desktop/PLAA_2390/broken.bam. Sort order is coordinate. Offending records are at [chr7:55268881] and [chr7:55268881]
at htsjdk.samtools.SAMFileWriterImpl.assertPresorted(SAMFileWriterImpl.java:212)
at htsjdk.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:199)
at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:36)
at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:16)
at htsjdk.samtools.util.AbstractAsyncWriter$WriterRunnable.run(AbstractAsyncWriter.java:123)
at java.base/java.lang.Thread.run(Thread.java:840)

The only current solution to this problem is feeding reads in queryname sorted way. When reads are coordinate sorted this error occurs.

There is a request from users that this tool should be able to work with coordinate sorted reads.

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

No branches or pull requests

1 participant