Hi I am getting a message while converting sam to bam. I used this comand for mapping:
bwa mem -M -R '@RG\tID:sample1' -t 2 ref.fa sample1_R1.fastq sample1_R2.fastq > sample1.sam
Now I tried to convert sam to bam, using:
samtools view -hSb PI200492.sam > PI200492.bam
and I got an Error
[W::sam_read1] parse error at line 1 [main_samview] truncated file
It looks the aligment worked!
Could someone help me please?