# HG changeset patch # User modencode-dcc # Date 1358538482 18000 # Node ID cdd25df4b51d248c768058ef03ce35be608279e4 # Parent c77fbfdf4d4577852b12dd7a62a05db53f98908e Uploaded diff -r c77fbfdf4d45 -r cdd25df4b51d bamedit.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bamedit.xml Fri Jan 18 14:48:02 2013 -0500 @@ -0,0 +1,123 @@ + + + + SCRIPT_PATH + samtools + + Merging, splitting, filtering, and QC of BAM files + bamedit.py $options_file \$SCRIPT_PATH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + input_type['input_type_selector'] == 'merge' + + + input_type['input_type_selector'] == 'filter' + + + input_type['input_type_selector'] == 'split' + + + input_type['input_type_selector'] == 'split' + + + input_type['input_type_selector'] == 'pileup' + + + + + <% +import simplejson +%> +#if str($input_type.input_type_selector) == 'merge': +#if str($input_type.input3) != 'None': +#set $__options = { 'action':str("merge"), 'bamout':str($bamoutm), 'input1':str($input1), 'input2':str($input2), 'input3':str($input3) } +#else: +#set $__options = { 'action':str("merge"), 'bamout':str($bamoutm), 'input1':str($input1), 'input2':str($input2) } +#end if +#end if +#if str($input_type.input_type_selector) == 'split': +#set $__options = { 'action':str("split"), 'bamout':str($bamouts1), 'bamout2':str($bamouts2), 'input1':str($input1) } +#end if +#if str($input_type.input_type_selector) == 'filter': +#set $__options = { 'action':str("filter"), 'bamout':str($bamoutf), 'input1':str($input1), 'quality':int($input_type.quality) } +#end if +#if str($input_type.input_type_selector) == 'pileup': +#set $__options = { 'action':str("pileup"), 'bamout':str($bamoutp), 'input1':str($input1), 'input2':str($input2), 'bamname':str($input1.name), 'refname':str($input2.name) } +#end if +${ simplejson.dumps( __options )} + + + + + + + + + +**What it does** + +Simple interface to manipulate BAM files through the use of SAMtools. + +View the original SAMtools documentation: http://samtools.sourceforge.net/ + +------ + +**Usage** + +**Merge BAM files**: Merges 2 or 3 input BAM files into a single BAM file. + +**Split BAM file**: Randomly split input BAM file into 2 BAM files. + +**Filter BAM file**: Removes aligned reads from input BAM files with mapping quality lower than entered Minimum Mapping Quality (MMQ) value. + +**Calculate coverage QC**: Calculates QC metrics such as percentage of genome covered and average coverage of bases covered for the input BAM and reference files. + + +------ + +**Citation** + +Li H.*, Handsaker B.*, Wysoker A., Fennell T., Ruan J., Homer N., Marth G., Abecasis G., Durbin R. and 1000 Genome Project Data Processing Subgroup (2009) The Sequence alignment/map (SAM) format and SAMtools. Bioinformatics, 25, 2078-9. [PMID: 19505943] + +Written by Ziru Zhou ( ziruzhou@gmail.com ). Please send your comments/questions to modENCODE DCC at help@modencode.org. + + + \ No newline at end of file