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).
Split merged BAM file
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?)
• 3,138 views
•
link
1 answer
Use SamToFastq command and set
OUTPUT_PER_RG=TRUE
http://picard.sourceforge.net/command-line-overview.shtml#SamToFastq
• 3 views
•
link
Log in to answer this question.