So I know there is a lot of info out there but I can't really work out who is "right". I am running bowtie 1 using small RNA-Seq data and I don't have a problem getting only the unique mappers, bowtie can do that by adding the -m 1 option. However I still can't work out how to extract the multi mappers, when using another option like -best, or -m 5 for instance. Any suggestion will be appreciated.
Thanks!
I will try that, thanks for the answer !
Hi Carlo, Thanks for your answer, but all my short RNA reads from bowtie 1 does not have mapping quality score (all of them have 255). In addition, there is no NH value in the output sam file.
If bowtie1 didn't assign mapping quality, then the easiest/best way might be to remap the reads using a more modern aligner, then filter as suggested above. If for some reason you do not want to do that, another solution would be to extract alignments whose read name occur more than once in the .bam file (because if it occurs more than once, then it is a multimapper). Here is how I would do it (code untested).