How to extract unique mapped reads from sam alignment file of pair end reads
The mapping was done using bowtie2.
There is different posts for the same topic suggesting to use the 11 , 12 columns AS and XS
Others say Unique alignments in bowtie2 have MAPQ>=2
And which option shall I use for bowtie2 to get an option like -m
from bowtie?
So there is no way for bowtie2 to map the unique reads from the start " and
-k
option also will not do the job"Yeah,
-k
isn't really a substitute, since if it has more than what you specify with-k
then it'll just won't report some of them, rather than suppressing all of them. Perhaps bowtie2 sets NH appropriately in that case, but I rather doubt it.Actually, you probably could just post-process the output of
-a
, though that's likely going to be slow.