Thank you for response.
Before answering, I am using the paired end reads.
My goal is that I would like to calculate the ratio between uniquely mapped reads and unmapped reads at specific positions. For example, at chr1:1000, there are total # of uniquely mapped reads are 50 while unmapped reads are 5, then the ratio should be 5/50 = 0.1
Anyway, I got to know that by using samtools -f options, I am able to get the unmapped reads...but I don't know how to check the reads are uniquely mapped or not.
Could you give me any advice for me?