This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Is it necessary to convert the aligned bam file to unmapped bam file before converting it to fastq files?

I was doing mitochondrial analysis using Gatk, in that they first converted bam file to unmapped and then converted it to fastq files for further processing.

So is it necessary to convert the bam to ubam first before converting it to fastq files? If yes, then why? Does it makes any difference if we convert bam to fastq?

fastq unmapped bam

1 answer

If you are only interested in getting reads that were unmapped then you should filter the BAM flle (see samtools extract unmapped reads ) before converting the filtered file to fastq data.

Log in to answer this question.