hi, I used Bwa tool for mapping to get .sam file in output.Now I used samtools view to convert this .sam file into .bam file but it is not running.It gets exit within a second. Can anyone suugest why this is happening?
The command I am using is
samtools view -bS newoutputERX676467.sam > newoutputERX676467.bam
the head of the output is
head newoutputERX676467.bam [W::sam_read1] parse error at line 1 [main_samview] truncated file.