my bam file contains both single-end and paired-end. How can I convert bam to fastq so that fastq contains only paired-end reads?
1
0
Entering edit mode
5.6 years ago
jonessara770 ▴ 240

Hi

I have a bam file that contains both single and paired-reads. How can I convert bam to fastq so that fastq contains only paired-end reads?

Thanks

WES • 1.1k views
ADD COMMENT
1
Entering edit mode
5.6 years ago

filter-in the single ends with samtools view -f 1 in.bam

1 is "read paired" https://broadinstitute.github.io/picard/explain-flags.html

ADD COMMENT

Login before adding your answer.

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