Extract mapped SE and properly paired PE reads from a bam file
0
0
Entering edit mode
23 months ago
Jautis ▴ 560

Hello, I have paired end (PE) sequencing data performed on primarily small fragments of DNA. During the trimming/filtering process, we merged overlapping reads such that the resulting bam file contains a mix of now single-end and PE reads. I'd like to filter the mapped output for properly mapped read pairs or mapped single reads, can anybody help me figure out how to do that rather than just extract all mapped reads?

Thanks!

properly single bam end mapped paired • 449 views
ADD COMMENT
0
Entering edit mode

one option is to use samtools view to pull out alignments with different alignment flags.

For more info on alignment flags see https://broadinstitute.github.io/picard/explain-flags.html

ADD REPLY

Login before adding your answer.

Traffic: 1388 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6