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

Checking for truncated BAM files #125

Open
lamortenera opened this issue Apr 22, 2016 · 0 comments
Open

Checking for truncated BAM files #125

lamortenera opened this issue Apr 22, 2016 · 0 comments

Comments

@lamortenera
Copy link

Hello and thanks for the great tool.

This is more a feature request than an issue. We used bamtools 2.4 with a BAM file that happened to be truncated. We used both the GetNextAlignment function and the command-line:

bamtools convert -in truncated.bam -format sam

In both cases there is no warning or exception raised by bamtools. This could be dangerous in clinical application where data integrity is paramount.

I am not sure how this could be implemented, but when using samtools a warning is raised with truncated BAM files. Samtools checks that a certain sequence of bytes occurs at the end of a BAM file.

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