Difference between revisions of "BamUtil: splitBam"
From Genome Analysis Wiki
Jump to navigationJump to searchm (moved SplitBam to BamUtil: splitBam: Now part of BamUtil) |
|||
Line 9: | Line 9: | ||
<pre> | <pre> | ||
− | Usage : ./bam | + | Usage : ./bam splitBam [-v] -i <inputBAMFile> -o <outPrefix> [-L logFile] |
</pre> | </pre> | ||
Revision as of 13:53, 12 March 2012
Overview of the splitBam
function of bamUtil
The splitBam
option on the bamUtil executable split a BAM file into multiple BAM files based on ReadGroup according to the following details.
- Creates multiple output files named [outprefix].[RGID].bam, for each ReadGroup ID (RGID) existing in the bam file
- Headers are a copy of the original file, removing @RG and @PG headers where IDs match with the other ReadGroup IDs.
- Copy each of the original file's BAM record to one of the output file where the ReadGroup ID matches
Usage
Usage : ./bam splitBam [-v] -i <inputBAMFile> -o <outPrefix> [-L logFile]
Parameters
Required arguments: -i/--in [inputBAMFile] : Original BAM file containing readGroup info -o/--out [outPrefix] : prefix of output bam files of [outprefix].[RGID].bam Optional arguments: -L/--log [logFile] : log file name. default is listFile.log -v/--verbose : turn on verbose mode