Entering edit mode
13.5 years ago
KCC
★
4.1k
I created a sam file by aligning reads, using bwa. I want to create a new sam file that contains all reads except ones that are on a particular chromosome or have an alternative alignment on that chromosome.
How can I do it?
I ended up writing my own python script that filters lines in the SAM based on what chromosome they map to. So, your answer is best.