I aligned reads with bwa and I want to get a set of the reads that mapped uniquely to the genome.
I understood from samtools faq that they suggest to look at 'reliable' rather than `unique' by :
samtools view -bq 1 aln.bam > aln-reliable.bam
http://sourceforge.net/apps/mediawik...?title=SAM_FAQ
However, I am interested to get the subset of the uniquely mapped reads, in order to do some calculations on it.
How can one do it?
I understood from samtools faq that they suggest to look at 'reliable' rather than `unique' by :
samtools view -bq 1 aln.bam > aln-reliable.bam
http://sourceforge.net/apps/mediawik...?title=SAM_FAQ
However, I am interested to get the subset of the uniquely mapped reads, in order to do some calculations on it.
How can one do it?
Comment