Hi all,
I've already done some googling on this and I haven't been able to find an answer to this incredibly infuriating problem!
So I have 12 sam files, which I need to convert to bam, then sort, index etc. All 12 were processed in the same way, but samtools is having difficulty with 3 of them, specifically it gives this error when I try to sort
-bash-3.2$ samtools sort x.bam x.sorted
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[bam_sort_core] truncated file. Continue anyway.
Segmentation fault
Samtools was used to generate the bam files so it's strange that it can't recognize a file that it's generated itself. I've tried remaking the sam file using samtools view, same problem. I've tried regenerating the sam file (bowtie2) same problem again.
Anyone got any advice? this has been driving me a bit mad for the past 2 days.
I've already done some googling on this and I haven't been able to find an answer to this incredibly infuriating problem!
So I have 12 sam files, which I need to convert to bam, then sort, index etc. All 12 were processed in the same way, but samtools is having difficulty with 3 of them, specifically it gives this error when I try to sort
-bash-3.2$ samtools sort x.bam x.sorted
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[bam_sort_core] truncated file. Continue anyway.
Segmentation fault
Samtools was used to generate the bam files so it's strange that it can't recognize a file that it's generated itself. I've tried remaking the sam file using samtools view, same problem. I've tried regenerating the sam file (bowtie2) same problem again.
Anyone got any advice? this has been driving me a bit mad for the past 2 days.
Comment