Hi
I have a two alignments of unpaired reads, and I am trying to find out how many reads aligned uniquely from each sample. I keep reading that I should use the command
samtools view -f 0
But when I look at the out put there is still other SAM FLAGS in the list.
any help would be appreciated but please keep it simple I'm a molecular biologist that's only just started Bioinformatics.
First what aligner you used?
There are two posts first here will discuss what is sam flag meaning
SAM flags meaning
and the second here about filtering sam
How To Filter Mapped Reads With Samtools
SAM and BAM filtering oneliners
It is better to filter based on MAPQ (map quality)