bgzf_blocked error when using samtools
0
0
Entering edit mode
6.4 years ago
milanlove • 0

when i used samtools sort for sorting .bam file, following error was appeared. any body know that how i can solve it?

[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes

samtools sort: truncated file. Aborting

samtools BGZF software error • 6.3k views
ADD COMMENT
0
Entering edit mode

error message is here: https://github.com/samtools/htslib/blob/44c6a36f2894b45ad6cb491833d27c6a2106410f/bgzf.c#L854 it an error with the way the file was compressed.

the input or output bam file looks corrupted.

try to check your input file is valid with

gunzip -t input.bam && echo "VALID"

furthermore the command

ADD REPLY

Login before adding your answer.

Traffic: 2520 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6