annotate picard_MergeBamAlignment.xml @ 15:197ec26418ab draft

Uploaded
author devteam
date Tue, 04 Feb 2014 13:16:26 -0500
parents ad8b197f7d3a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
1 <tool id="picard_mergeBAMAlignment" name="Merge BAM Alignment" version="1.106.0">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
2 <!-- Documentation: http://picard.sourceforge.net/command-line-overview.shtml#MergeBamAlignment
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
3 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'
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
4
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
5 OUTPUT=File Merged SAM or BAM file to write to. Required.
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
6 REFERENCE_SEQUENCE=File Path to the fasta file for the reference sequence. Required.
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
7 -->
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
8 <description>Merges alignment data from a SAM or BAM file with additional data stored in an unmapped BAM file</description>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
9 <requirements><requirement type="package" version="1.106.0">picard</requirement></requirements>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
10 <command interpreter="bash">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
11 mergebamalignment_wrapper.sh $output1 $outformat $REFERENCE_SEQUENCE UNMAPPED_BAM=$UNMAPPED_BAM PAIRED_RUN=$PAIRED_RUN
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
12
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
13 ## optional arguments from here
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
14
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
15 #if str( $ALIGNED_BAM ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
16 ALIGNED_BAM=$ALIGNED_BAM
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
17 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
18 #for $i in $ALIGNED_BAMs
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
19 ALIGNED_BAM=${i.ALIGNED_BAM_file}
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
20 #end for
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
21
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
22 #if str( $READ1_ALIGNED_BAM ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
23 READ1_ALIGNED_BAM=$READ1_ALIGNED_BAM
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
24 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
25 #for $i in $READ1_ALIGNED_BAMs
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
26 READ1_ALIGNED_BAM=${i.READ1_ALIGNED_BAM_file}
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
27 #end for
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
28
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
29 #if str( $ATTRIBUTES_TO_RETAIN ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
30 ATTRIBUTES_TO_RETAIN=$ATTRIBUTES_TO_RETAIN
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
31 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
32 #for $i in $ATTRIBUTES_TO_RETAINs
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
33 ATTRIBUTES_TO_RETAIN=${i.ATTRIBUTES_TO_RETAIN_extra}
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
34 #end for
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
35
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
36 #if str( $READ2_ALIGNED_BAM ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
37 READ2_ALIGNED_BAM=$READ2_ALIGNED_BAM
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
38 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
39 #for $i in $READ2_ALIGNED_BAMs
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
40 READ2_ALIGNED_BAM=${i.READ2_ALIGNED_BAM_file}
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
41 #end for
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
42
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
43 #if str( $PROGRAM_RECORD_ID ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
44 PROGRAM_RECORD_ID=$PROGRAM_RECORD_ID
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
45 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
46
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
47 #if str( $PROGRAM_GROUP_VERSION ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
48 PROGRAM_GROUP_VERSION=$PROGRAM_GROUP_VERSION
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
49 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
50
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
51 #if str( $PROGRAM_GROUP_COMMAND_LINE ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
52 PROGRAM_GROUP_COMMAND_LINE=$PROGRAM_GROUP_COMMAND_LINE
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
53 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
54
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
55 #if str( $PROGRAM_GROUP_NAME ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
56 PROGRAM_GROUP_NAME=$PROGRAM_GROUP_NAME
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
57 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
58
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
59 #if str( $CLIP_ADAPTERS ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
60 CLIP_ADAPTERS=$CLIP_ADAPTERS
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
61 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
62
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
63 #if str( $IS_BISULFITE_SEQUENCE ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
64 IS_BISULFITE_SEQUENCE=$IS_BISULFITE_SEQUENCE
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
65 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
66
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
67 #if str( $ALIGNED_READS_ONLY ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
68 ALIGNED_READS_ONLY=$ALIGNED_READS_ONLY
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
69 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
70
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
71 #if str( $MAX_INSERTIONS_OR_DELETIONS ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
72 MAX_INSERTIONS_OR_DELETIONS=$MAX_INSERTIONS_OR_DELETIONS
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
73 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
74
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
75 #if str( $READ1_TRIM ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
76 READ1_TRIM=$READ1_TRIM
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
77 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
78
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
79 #if str( $READ2_TRIM ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
80 READ2_TRIM=$READ2_TRIM
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
81 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
82
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
83 #if str( $EXPECTED_ORIENTATIONS ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
84 EXPECTED_ORIENTATIONS=$EXPECTED_ORIENTATIONS
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
85 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
86
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
87 #if str( $SORT_ORDER ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
88 SORT_ORDER=$SORT_ORDER
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
89 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
90
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
91 #if str( $PRIMARY_ALIGNMENT_STRATEGY ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
92 PRIMARY_ALIGNMENT_STRATEGY=$PRIMARY_ALIGNMENT_STRATEGY
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
93 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
94
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
95 #if str( $CLIP_OVERLAPPING_READS ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
96 CLIP_OVERLAPPING_READS=$CLIP_OVERLAPPING_READS
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
97 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
98
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
99 #if str( $INCLUDE_SECONDARY_ALIGNMENTS ):
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
100 INCLUDE_SECONDARY_ALIGNMENTS=$INCLUDE_SECONDARY_ALIGNMENTS
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
101 #end if
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
102
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
103 VALIDATION_STRINGENCY=LENIENT TMP_DIR=$__new_file_path__
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
104 2&gt; $outlog
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
105 ##|| echo "Error running Picard MergeBamAlignment" >&amp;2
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
106 </command>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
107 <inputs>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
108 <!-- required arguments below -->
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
109 <param name="title" label="Name for the output merged BAM or SAM file" type="text" default="Merged.bam" help="This name will appear in your history so use it to remember what the new file in your history contains" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
110 <param name="outformat" type="select" label="Output format" >
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
111 <option value="bam" selected="True">BAM</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
112 <option value="sam">SAM</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
113 </param>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
114 <param name="UNMAPPED_BAM" label="Original SAM or BAM file of unmapped reads, which must be in queryname order. Required." type="data" format="bam,sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
115 <param name="REFERENCE_SEQUENCE" label="Path to the fasta file for the reference sequence. Required." type="data" format="fasta" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
116 <param name="PAIRED_RUN" value="true" type="boolean" label="Whether this is a paired-end run. Required." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
117
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
118 <!-- optional arguments below -->
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
119
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
120 <param name="ALIGNED_BAM" label="SAM or BAM file(s) with alignment data. This option may be specified 0 or more times. Cannot be used in conjuction with option(s) READ1_ALIGNED_BAM (R1_ALIGNED) READ2_ALIGNED_BAM (R2_ALIGNED)" type="data" format="bam,sam" help="Need to add more files? Use controls below." />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
121 <repeat name="ALIGNED_BAMs" title="More ALIGNED_BAMs">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
122 <param name="ALIGNED_BAM_file" label="ALIGNED_BAM" type="data" format="bam,sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
123 </repeat>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
124 <param name="READ1_ALIGNED_BAM" label="SAM or BAM file(s) with alignment data from the first read of a pair. This option may be specified 0 or more times. Cannot be used in conjuction with option(s) ALIGNED_BAM (ALIGNED)" type="data" format="bam,sam" help="Need to add more files? Use controls below." />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
125 <repeat name="READ1_ALIGNED_BAMs" title="More READ1_ALIGNED_BAMs">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
126 <param name="READ1_ALIGNED_BAM_file" label="READ1_ALIGNED_BAM" type="data" format="bam,sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
127 </repeat>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
128 <param name="READ2_ALIGNED_BAM" label="SAM or BAM file(s) with alignment data from the second read of a pair. This option may be specified 0 or more times. Cannot be used in conjuction with option(s) ALIGNED_BAM (ALIGNED)" type="data" format="bam,sam" help="Need to add more files? Use controls below." />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
129 <repeat name="READ2_ALIGNED_BAMs" title="More READ2_ALIGNED_BAMs">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
130 <param name="READ2_ALIGNED_BAM_file" label="READ2_ALIGNED_BAM" type="data" format="bam,sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
131 </repeat>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
132
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
133 <param name="PROGRAM_RECORD_ID" label="The program group ID of the aligner (if not supplied by the aligned file)." type="text" default=""
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
134 <param name="PROGRAM_GROUP_VERSION" label="The version of the program group (if not supplied by the aligned file)." type="text" default="">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
135 <param name="PROGRAM_GROUP_COMMAND_LINE" label="The command line of the program group (if not supplied by the aligned file)." type="text" default="">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
136 <param name="PROGRAM_GROUP_NAME" label="The name of the program group (if not supplied by the aligned file)." type="text" default="">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
137 <param name="CLIP_ADAPTERS" value="true" type="boolean" label="Whether to clip adapters where identified. Default value: true." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
138 <param name="IS_BISULFITE_SEQUENCE" value="false" type="boolean" label="Whether the lane is bisulfite sequence (used when caculating the NM tag)." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
139 <param name="ALIGNED_READS_ONLY" value="false" type="boolean" label="Whether to output only aligned reads." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
140 <param name="MAX_INSERTIONS_OR_DELETIONS" value="1" type="integer"
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
141 label="The maximum number of insertions or deletions permitted for an alignment to be included."
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
142 help="Alignments with more than this many insertions or deletions will be ignored. Set to -1 to allow any number of insertions or deletions. Default value: 1." />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
143
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
144 <param name="ATTRIBUTES_TO_RETAIN" label="Reserved alignment attributes (tags starting with X, Y, or Z) that should be brought over from the alignment data when merging. This option may be specified 0 or more times." type="text" default="">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
145 <repeat name="ATTRIBUTES_TO_RETAINs" title="More ATTRIBUTES_TO_RETAIN">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
146 <param name="ATTRIBUTES_TO_RETAIN_extra" label="ATTRIBUTES_TO_RETAIN" type="text" default="" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
147 </repeat>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
148 <param name="READ1_TRIM" value="0" type="integer" label="The number of bases trimmed from the beginning of read 1 prior to alignment"/>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
149 <param name="READ2_TRIM" value="0" type="integer" label="The number of bases trimmed from the beginning of read 2 prior to alignment"/>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
150 <param name="EXPECTED_ORIENTATIONS" label="The name of the program group (if not supplied by the aligned file)." type="select">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
151 <option value="null" selected="True">null</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
152 <option value="FR">FR</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
153 <option value="RF">RF</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
154 <option value="TANDEM">TANDEM</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
155 </param>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
156 <param name="SORT_ORDER" label="The order in which the merged reads should be output. Default value: coordinate." type="select">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
157 <option value="coordinate" selected="True">coordinate</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
158 <option value="queryname">queryname</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
159 <option value="unsorted">unsorted</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
160 </param>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
161 <param name="PRIMARY_ALIGNMENT_STRATEGY" label="Strategy for selecting primary alignment when the aligner has provided more than one alignment for a pair or fragment, and none are marked as primary, more than one is marked as primary, or the primary alignment is filtered out for some reason." type="select" help="BestMapq expects that multiple alignments will be correlated with HI tag, and prefers the pair of
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
162 alignments with the largest MAPQ, in the absence of a primary selected by the aligner. EarliestFragment prefers the alignment which maps the earliest base in the read. Note that EarliestFragment may not be used for paired reads. BestEndMapq is appropriate for cases in which the aligner is not pair-aware, and does not output the HI tag. It simply picks the alignment for each end with the highest MAPQ, and makes those alignments primary, regardless of whether the two alignments make sense together.MostDistant is also for a non-pair-aware aligner, and picks the alignment pair with the largest insert size. If all alignments would be chimeric, it picks the alignments for each end with the best MAPQ. For all algorithms, ties are resolved arbitrarily. Default value: BestMapq.">
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
163 <option value="BestMapq" selected="True">BestMapq</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
164 <option value="EarliestFragment">EarliestFragment</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
165 <option value="BestEndMapq">BestEndMapq</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
166 <option value="MostDistant">MostDistant</option>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
167 </param>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
168
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
169 <param name="CLIP_OVERLAPPING_READS" value="true" type="boolean" label="For paired reads, soft clip the 3' end of each read if necessary so that it does not extend past the 5' end of its mate." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
170 <param name="INCLUDE_SECONDARY_ALIGNMENTS" value="true" type="boolean" label="If false, do not write secondary alignments to output." truevalue="true" falsevalue="false" checked="yes" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
171 </inputs>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
172
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
173 <outputs>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
174 <data format="bam" name="output1" label="${title}.${outformat}" >
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
175 <change_format>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
176 <when input="outformat" value="sam" format="sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
177 </change_format>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
178 </data>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
179 </outputs>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
180 <tests>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
181 <!-- note: this test is untested :) -->
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
182 <test>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
183 <param name="REFERENCE_SEQUENCE" value="merger.fasta" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
184 <param name="UNMAPPED_BAM" value="unmapped.sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
185 <param name="PAIRED_RUN" value="false" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
186 <param name="outformat" value="sam" />
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
187 <output name="output1" file="output_mergebamalignment" lines_diff="1"/>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
188 </test>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
189 </tests>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
190 <help>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
191
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
192 **What it does**
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
193
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
194 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'
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
195 metadata such as read groups
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
196
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
197 .. _Picard: http://picard.sourceforge.net/command-line-overview.shtml#MergeBamAlignment
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
198
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
199
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
200 </help>
ad8b197f7d3a Uploaded
devteam
parents:
diff changeset
201 </tool>