Question: bgzf_blocked error when using samtools
gravatar for milanlove
18 months ago by
milanlove0 wrote:

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 • 1.6k views
ADD COMMENTlink written 18 months ago by milanlove0

error message is here: 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 REPLYlink written 18 months ago by Pierre Lindenbaum120k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2188 users visited in the last hour