Question: 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?
0
gravatar for jonessara770
11 months ago by
jonessara770170
jonessara770170 wrote:

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 • 388 views
ADD COMMENTlink modified 11 months ago by Pierre Lindenbaum122k • written 11 months ago by jonessara770170
1
gravatar for Pierre Lindenbaum
11 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum122k wrote:

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 COMMENTlink modified 11 months ago • written 11 months ago by Pierre Lindenbaum122k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1572 users visited in the last hour