# HG changeset patch # User devteam # Date 1393392809 18000 # Node ID f2604c713ebdbc763aa7058fa3324fbf2115f4fa # Parent 4f83d10e21792caf508e34860369e9364ddf059c Uploaded diff -r 4f83d10e2179 -r f2604c713ebd picard_MergeBamAlignment.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/picard_MergeBamAlignment.xml Wed Feb 26 00:33:29 2014 -0500 @@ -0,0 +1,198 @@ + + + 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 + + + +