Changes

From Genome Analysis Wiki
Jump to navigationJump to search
173 bytes added ,  17:44, 16 January 2012
Add SplitBam to Bamutil
Line 1: Line 1: −
== SplitBam ==
+
= Overview of the <code>splitBam</code> function of <code>bamUtil</code> =
Split a BAM file into multiple BAM files based on ReadGroup according to the following details.
+
The <code>splitBam</code> 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
 
# 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.
 
# 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
 
# Copy each of the original file's BAM record to one of the output file where the ReadGroup ID matches
 +
 +
 +
= Usage =
 +
 
<pre>
 
<pre>
  Usage : splitBAM [-v] -i <inputBAMFile> -o <outPrefix> [-L logFile]
+
  Usage : ./bam splitBAM [-v] -i <inputBAMFile> -o <outPrefix> [-L logFile]
 +
</pre>
 +
 
 +
 
 +
= Parameters =
 
  Required arguments:
 
  Required arguments:
 
     -i/--in [inputBAMFile] : Original BAM file containing readGroup info
 
     -i/--in [inputBAMFile] : Original BAM file containing readGroup info
Line 14: Line 22:  
</pre>
 
</pre>
    +
[[Category:BamUtil|splitChromosome]]
 +
[[Category:BAM Software]]
 
[[Category:Software]]
 
[[Category:Software]]
[[Category:StatGen Download]]
  −
[[Category:BAM Software]]
 

Navigation menu