Hi,
I have a list of sequences that are contaminant. I would like to map my reads to these contaminants and then extract the unmapped reads .
For that I want to use BWA. But I have a doubt with an option.
Should I use the -M option (mark shorter alignment as secondary) ? because I use the flag -f 4 and -f 12 to extract unmapped reads so I am wondering if the secondary flag will be treat as unmapped.
A read with secondary alignment is mapped more than once, meaning that secondary alignment and unmapped are by definition not compatible.