# HG changeset patch # User devteam # Date 1393392752 18000 # Node ID 0c7d738f5c44be33b388d7b1e8b676628ca6a23d # Parent b7f09b994fd0b0864c61e3fa943eaa0ac221319a Deleted selected files diff -r b7f09b994fd0 -r 0c7d738f5c44 mergebamalignment_wrapper.sh --- a/mergebamalignment_wrapper.sh Wed Feb 26 00:29:14 2014 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/bash -reference_without_extension=${3%.*} -java -jar $JAVA_JAR_PATH/CreateSequenceDictionary.jar R=$3 O=$reference_without_extension.dict -eval java -Xmx2G -jar $JAVA_JAR_PATH/MergeBamAlignment.jar O=$1.$2 R=$3 ${*:4} -mv $1.$2 $1 diff -r b7f09b994fd0 -r 0c7d738f5c44 picard_MergeBamAlignment.xml --- a/picard_MergeBamAlignment.xml Wed Feb 26 00:29:14 2014 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,198 +0,0 @@ - - - Merges alignment data from a SAM or BAM file with additional data stored - picard - - mergebamalignment_wrapper.sh $output1 $outformat $REFERENCE_SEQUENCE UNMAPPED_BAM=$UNMAPPED_BAM PAIRED_RUN=$PAIRED_RUN - - ## optional arguments from here - - #if str( $ALIGNED_BAM ): - ALIGNED_BAM=$ALIGNED_BAM - #end if - #for $i in $ALIGNED_BAMs - ALIGNED_BAM=${i.ALIGNED_BAM_file} - #end for - - #if str( $READ1_ALIGNED_BAM ): - READ1_ALIGNED_BAM=$READ1_ALIGNED_BAM - #end if - #for $i in $READ1_ALIGNED_BAMs - READ1_ALIGNED_BAM=${i.READ1_ALIGNED_BAM_file} - #end for - - #if str( $ATTRIBUTES_TO_RETAIN ): - ATTRIBUTES_TO_RETAIN=$ATTRIBUTES_TO_RETAIN - #end if - #for $i in $ATTRIBUTES_TO_RETAINs - ATTRIBUTES_TO_RETAIN=${i.ATTRIBUTES_TO_RETAIN_extra} - #end for - - #if str( $READ2_ALIGNED_BAM ): - READ2_ALIGNED_BAM=$READ2_ALIGNED_BAM - #end if - #for $i in $READ2_ALIGNED_BAMs - READ2_ALIGNED_BAM=${i.READ2_ALIGNED_BAM_file} - #end for - - #if str( $PROGRAM_RECORD_ID ): - PROGRAM_RECORD_ID=$PROGRAM_RECORD_ID - #end if - - #if str( $PROGRAM_GROUP_VERSION ): - PROGRAM_GROUP_VERSION=$PROGRAM_GROUP_VERSION - #end if - - #if str( $PROGRAM_GROUP_COMMAND_LINE ): - PROGRAM_GROUP_COMMAND_LINE=$PROGRAM_GROUP_COMMAND_LINE - #end if - - #if str( $PROGRAM_GROUP_NAME ): - PROGRAM_GROUP_NAME=$PROGRAM_GROUP_NAME - #end if - - #if str( $CLIP_ADAPTERS ): - CLIP_ADAPTERS=$CLIP_ADAPTERS - #end if - - #if str( $IS_BISULFITE_SEQUENCE ): - IS_BISULFITE_SEQUENCE=$IS_BISULFITE_SEQUENCE - #end if - - #if str( $ALIGNED_READS_ONLY ): - ALIGNED_READS_ONLY=$ALIGNED_READS_ONLY - #end if - - #if str( $MAX_INSERTIONS_OR_DELETIONS ): - MAX_INSERTIONS_OR_DELETIONS=$MAX_INSERTIONS_OR_DELETIONS - #end if - - #if str( $READ1_TRIM ): - READ1_TRIM=$READ1_TRIM - #end if - - #if str( $READ2_TRIM ): - READ2_TRIM=$READ2_TRIM - #end if - - #if str( $EXPECTED_ORIENTATIONS ): - EXPECTED_ORIENTATIONS=$EXPECTED_ORIENTATIONS - #end if - - #if str( $SORT_ORDER ): - SORT_ORDER=$SORT_ORDER - #end if - - #if str( $PRIMARY_ALIGNMENT_STRATEGY ): - PRIMARY_ALIGNMENT_STRATEGY=$PRIMARY_ALIGNMENT_STRATEGY - #end if - - #if str( $CLIP_OVERLAPPING_READS ): - CLIP_OVERLAPPING_READS=$CLIP_OVERLAPPING_READS - #end if - - #if str( $INCLUDE_SECONDARY_ALIGNMENTS ): - INCLUDE_SECONDARY_ALIGNMENTS=$INCLUDE_SECONDARY_ALIGNMENTS - #end if - - VALIDATION_STRINGENCY=LENIENT TMP_DIR=$__new_file_path__ - 2> $outlog - ##|| echo "Error running Picard MergeBamAlignment" >&2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -**What it does** - -Merges alignment data from a SAM or BAM file with additional data stored in an unmapped BAM file and produces a third SAM or BAM file of aligned and unaligned reads. NOTE that this program expects to find a sequence dictionary in the same directory as REFERENCE_SEQUENCE and expects it to have the same base name as the reference fasta except with the extension '.dict' -metadata such as read groups - -.. _Picard: http://picard.sourceforge.net/command-line-overview.shtml#MergeBamAlignment - - - -