Hi everyone.
I have paired-end sam file without header. Unfortunately I removed it earlier as I didn't suppose I will need it. Now I am trying to select only concordantly mapped reads using the following command:
samtools view -f 0x2 myfile.sam > myfile_concordant.sam
But I get an error:
[main_samview] truncated file.[E::sam_parse1] missing SAM header
[W::sam_read1] parse error at line 1
[main_samview] truncated file.
Is there any possibility to select only concordant reads? Maybe somehow filter sam file without samtools view?
Thanks!