[main_samview] fail to read the header from sample.bam

0

Hi all,
I get the following error when reading the sample.bam. The file was converted from sam to bam using the following command:

 samtools view -bS sample.sam > sample.bam.

[E::bgzf_read] bgzf_read_block error -1 after 194938 of 8572040 bytes
[E::bam_hdr_read] error reading BGZF stream
[main_samview] fail to read the header from sample.bam

Looking forward to get your suggestion.

thanks in advance

sam


alignment

• 8.9k views



Source link