Entering edit mode
10.5 years ago
crysis405
▴
30
I need to revert a BAM file back to FastQ. Based on the GATK guide I need to shuffle first and then convert: http://www.broadinstitute.org/gatk/guide/article?id=2908
However, they don't mention anything about merged BAM files.
How do you split a BAM file by read group information? (Is it possible with Picardtools or samtools?)
Is there a more general utility? Like if I need to split a merged file from GATK BQSR by read group when I want to run reducedreads? Are there any alternatives to BamUtils splitBam (I am sure there must by something that the GATK team use to do this).
So you are not asking for something more general, you are asking for something in GATK package.
By more general I meant something that doesn't require me to convert SamToFastq
I am sorry, I dont understand. You wanted to revert a BAM file back to FastQ and SamToFastq can work with BAM files instead of SAM files as well.
Two independent things. I have merged BAMs so I want to split them and I want to convert BAMs to Fastq.