Hi,
I want to extract both pairs from a SAM file where at least one pair mapped (or both). The ideal solution would be to get 2 fastq files where either both reads mapped, or only one pair mapped and the unmapped pair is also extracted.
I tried various flag combination with "samtools view" but didn't get the desired result. So far I know how to get all mapped reads, but the unmapped second pair is missing.
Thanks, Stephan
I want to extract both pairs from a SAM file where at least one pair mapped (or both). The ideal solution would be to get 2 fastq files where either both reads mapped, or only one pair mapped and the unmapped pair is also extracted.
I tried various flag combination with "samtools view" but didn't get the desired result. So far I know how to get all mapped reads, but the unmapped second pair is missing.
Thanks, Stephan
Comment