Hi I have a sam file that looks like this
head SRR062634.bwaSampe.sam
@SQ SN:chr1 LN:249250621
@SQ SN:chr2 LN:243199373
@SQ SN:chr3 LN:198022430
@SQ SN:chr4 LN:191154276
@SQ SN:chr5 LN:180915260
@SQ SN:chr6 LN:171115067
@SQ SN:chr7 LN:159138663
@SQ SN:chr8 LN:146364022
@SQ SN:chr9 LN:141213431
@SQ SN:chr10 LN:135534747
I have the sorted bam file of that as well. Now when am trying to index the bam file I am getting the below error. I need to index it so that I can do the variant calling with the bam file for my exome sequencing analysis
samtools index SRR062634.sorted.bam
[bam_header_read] EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
Segmentation fault
Can anyone tell me if you have ever faced this situation? And if so how to get rid of it or do I have to skip the indexing step? But I don't think that's advisable. Any suggestions?
samtools
exome-sequencing