Extracting Reads from paired end data in SAM file that map to a list of contig IDs
I have paired end data in a SAM file and I want to extract all the reads which correspond to specific contig ids. My contig ids are in a text file with one ID per line.
Output of SAM/BAM is preferred.
Thanks for your help.