Hi,
I have several sam output files, where each file contains forward AND reverse reads for an experimental sample. These output files were generated using bowtie2, where I created an index of all my negative controls and aligned this index with each sample. The reads found in my negative controls where though to be background noise/contamination. Any sample's reads which aligned to the index reads where then omitted, and bowtie2 generated an output file of all the unaligned sample reads (an output file for each sample). This output file contains forward and reverse reads.
I am looking for a method to separate this file into two; one file for forward reads and one file for reverse reads. However, this method has to be smart enough to only include matching pairs of forward and reverse reads.
Any help would be greatly appreciated! Thanks!