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?
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
• 1,499 views
•
link
1 answer
filter-in the single ends with samtools view -f 1 in.bam
1 is "read paired" https://broadinstitute.github.io/picard/explain-flags.html
• 1 views
•
link
Log in to answer this question.