Samtools flagstat unpaired reads
1
0
Entering edit mode
6.8 years ago
rbronste ▴ 420

Trying to quickly remove reads samtools flagstat deems as unpaired from BAM file? Thanks.

samtools BAM Bowtie2 • 3.3k views
ADD COMMENT
0
Entering edit mode

Have you searched Biostars (use external google search) for past threads? There has to be something available already.

ADD REPLY
1
Entering edit mode
6.8 years ago

remove unpaired files = reads that are not part of a paired-end experiment ?

samtools view -f 1 -b -o out.bam in.bam
ADD COMMENT
0
Entering edit mode

Yes just for BAM files already processed for removal of duplicates (Picard) and ChrM and ChrUN reads.

ADD REPLY

Login before adding your answer.

Traffic: 2113 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