Bam to fastq conversion
I have a bam file from a cancer dataset and I want to convert it to FASTQ to check its quality. So I use this command samtools fastq #bamfile > cancer.fa. I intend to use this fastq file as an input to the FASTQC tool and get an idea about its quality. But these are paired end reads. So how can I get two read files (fastq) separately,(from a bam file) ? Is it ok to proceed with only one fastq file instead of two(for paired end reads) for quality analysis?
• 3,092 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello banerjeeshayantan!
Questions similar to yours can already be found at:
We have closed your question to allow us to keep similar content in the same thread.
If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.
Cheers!
FASTQC can not handle paired-end data, and thus only works on separate files (treating forward and reverse read as two independent reads)
see also here: Is Paired End analysis possible with FASTQC