Hi,
I have used BWA mem to map paired-end reads to different references.
I am looking for mapped and unmapped reads percentages (e.g. mapped reads 96 %) and I don't know if samtools has such an option.
I actually know that this command line here
samtools view -c -f 4 -S filename.sam
outputs the unmapped reads and with a capital (-F) the number of mapped reads. Do I have to calculate the percentages by my own or is there a fancy option in samtools ?
Best,
Flo
I have used BWA mem to map paired-end reads to different references.
I am looking for mapped and unmapped reads percentages (e.g. mapped reads 96 %) and I don't know if samtools has such an option.
I actually know that this command line here
samtools view -c -f 4 -S filename.sam
outputs the unmapped reads and with a capital (-F) the number of mapped reads. Do I have to calculate the percentages by my own or is there a fancy option in samtools ?
Best,
Flo
Comment