Convert BAM files to FastQ
1
0
Entering edit mode
2.8 years ago
nrk_02 • 0

Hello!

I was wondering about the consequences of converting BAM files to FastQ (maybe with bedtools or samtools). Is there any significant downside of using the FastQ files that are obtained by converting BAMs to FastQ?

Thanks!

fastq bedtools samtools bam • 1.1k views
ADD COMMENT
2
Entering edit mode
2.8 years ago
GenoMax 141k

No downsides but some points to consider below.

After conversion, your fastq data

  1. May not contain reads that were not aligned (if unaligned reads were excluded in your BAM). So you can't recreate original full data.
  2. May contain some reads multiple times (unless you exclude secondary alignments when you do the conversion)
  3. May be hard-clipped in original BAM. So you can't recreate full/original reads.
ADD COMMENT
0
Entering edit mode

May contain some reads multiple times (unless you exclude secondary alignments when you do the conversion)

Is this true when using samtools fastq? I never thought about it!

ADD REPLY
0
Entering edit mode

I think samtools fastq is smart enough to know to ignore reads flagged as secondary and supplemental.

ADD REPLY

Login before adding your answer.

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