# HG changeset patch # User devteam # Date 1377014255 14400 # Node ID 2a36d975b360b815c8c91a78642b74c0d060c7d6 Uploaded tool tarball. diff -r 000000000000 -r 2a36d975b360 sam_merge.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sam_merge.xml Tue Aug 20 11:57:35 2013 -0400 @@ -0,0 +1,62 @@ + + merges BAM files together + + picard + + +java -Xmx2G -jar \$JAVA_JAR_PATH/MergeSamFiles.jar MSD=$mergeSD VALIDATION_STRINGENCY=LENIENT O=$output1 I=$input1 I=$input2 TMP_DIR=$__new_file_path__ + #for $i in $inputs + I=${i.input} + #end for + 2> $outlog + || echo "Error running Picard MergeSamFiles" >&2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +This tool uses the Picard_ merge command to merge any number of BAM files together into one BAM file while preserving the BAM +metadata such as read groups + +.. _Picard: http://picard.sourceforge.net/command-line-overview.shtml#MergeSamFiles + + + diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_in1.bam Binary file test-data/sam_merge_in1.bam has changed diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_in2.bam Binary file test-data/sam_merge_in2.bam has changed diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_in3.bam Binary file test-data/sam_merge_in3.bam has changed diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_out1.bam Binary file test-data/sam_merge_out1.bam has changed diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_out1.log --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/sam_merge_out1.log Tue Aug 20 11:57:35 2013 -0400 @@ -0,0 +1,5 @@ +[Thu Aug 04 13:48:49 EST 2011] net.sf.picard.sam.MergeSamFiles INPUT=[/data/tmp/tmpjnE9mC/database/files/000/dataset_1.dat, /data/tmp/tmpjnE9mC/database/files/000/dataset_2.dat, /data/tmp/tmpjnE9mC/database/files/000/dataset_2.dat] OUTPUT=/data/tmp/tmpjnE9mC/database/files/000/dataset_3.dat MERGE_SEQUENCE_DICTIONARIES=true VALIDATION_STRINGENCY=LENIENT SORT_ORDER=coordinate ASSUME_SORTED=false USE_THREADING=false TMP_DIR=/tmp/rlazarus VERBOSITY=INFO QUIET=false COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false +INFO 2011-08-04 13:48:49 MergeSamFiles Sorting input files using temp directory /tmp/rlazarus +INFO 2011-08-04 13:48:49 MergeSamFiles Finished reading inputs. +[Thu Aug 04 13:48:49 EST 2011] net.sf.picard.sam.MergeSamFiles done. +Runtime.totalMemory()=2028732416 diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_out2.bam Binary file test-data/sam_merge_out2.bam has changed diff -r 000000000000 -r 2a36d975b360 test-data/sam_merge_out2.log --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/sam_merge_out2.log Tue Aug 20 11:57:35 2013 -0400 @@ -0,0 +1,5 @@ +[Thu Aug 04 13:49:53 EST 2011] net.sf.picard.sam.MergeSamFiles INPUT=[/data/tmp/tmpjnE9mC/database/files/000/dataset_5.dat, /data/tmp/tmpjnE9mC/database/files/000/dataset_6.dat, /data/tmp/tmpjnE9mC/database/files/000/dataset_7.dat] OUTPUT=/data/tmp/tmpjnE9mC/database/files/000/dataset_8.dat MERGE_SEQUENCE_DICTIONARIES=true VALIDATION_STRINGENCY=LENIENT SORT_ORDER=coordinate ASSUME_SORTED=false USE_THREADING=false TMP_DIR=/tmp/rlazarus VERBOSITY=INFO QUIET=false COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false +INFO 2011-08-04 13:49:54 MergeSamFiles Sorting input files using temp directory /tmp/rlazarus +INFO 2011-08-04 13:49:54 MergeSamFiles Finished reading inputs. +[Thu Aug 04 13:49:54 EST 2011] net.sf.picard.sam.MergeSamFiles done. +Runtime.totalMemory()=2028732416 diff -r 000000000000 -r 2a36d975b360 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Tue Aug 20 11:57:35 2013 -0400 @@ -0,0 +1,6 @@ + + + + + +