
Anyway -
You can split into mouse and non-mouse reads with BBMap like this:
bbmap.sh ref=mm9.fa in=reads.fq outm=mouse.fq outu=nonmouse.fq
For more elaborate splitting into one set of reads per organism (specifically, per reference file), you can use BBSplit:
bbsplit.sh ref=mm9.fa,virus1.fa,virus2.fa in=reads.fq basename=out_%.fq outu=unmapped.fq
Each organism needs to be represented by a single file (using cat, as Genomax mentioned).
Aligners have limits to the difference between a read and a reference for successful aligning. The higher the identity of the alignment, the more likely it is to be correct; so, aligners generally focus on alignments with 90% similarity or higher. You can adjust this in BBMap using the "idfilter" flag. There is no real concept of 0% similarity; even a random sequence will align to the mouse genome with at least 25% identity or so. "map" just means "The aligner thinks it came from this location", so it varies by aligner. Bowtie rejects any alignments with any indels or more than 3 mismatches.

Leave a comment: