1
|
1 <tool id="sam_merge2" name="Merge BAM Files" version="1.2.0">
|
|
2 <description>merges BAM files together</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.56.0">picard</requirement>
|
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <exit_code range="1:" />
|
|
8 <exit_code range=":-1" />
|
|
9 <regex match="Error:" />
|
|
10 <regex match="Exception:" />
|
|
11 </stdio>
|
|
12 <command>
|
|
13 <![CDATA[
|
|
14 java -Xmx2G
|
|
15 -jar \$JAVA_JAR_PATH/MergeSamFiles.jar
|
|
16 MSD=$mergeSD
|
|
17 VALIDATION_STRINGENCY=LENIENT
|
|
18 O="$output1"
|
|
19 TMP_DIR=$__new_file_path__
|
|
20 #for $input in $inputs
|
|
21 I="${input}"
|
|
22 #end for
|
|
23 ]]>
|
|
24 </command>
|
|
25 <inputs>
|
|
26 <param name="inputs" type="data" format="bam,sam" multiple="True" label="Files to merge" />
|
|
27 <param name="mergeSD" type="boolean" label="Merge all component bam file headers into the merged bam file"
|
|
28 truevalue="true" falsevalue="false" checked="yes"
|
|
29 help="Control the MERGE_SEQUENCE_DICTIONARIES flag for Picard MergeSamFiles. Default (true) correctly propagates read groups and other important metadata" />
|
|
30 </inputs>
|
|
31 <outputs>
|
|
32 <data format="bam" name="output1" />
|
|
33 </outputs>
|
|
34 <tests>
|
|
35 <test>
|
|
36 <param name="mergeSD" value="true" />
|
|
37 <param name="inputs" value="sam_merge_in1.bam,sam_merge_in2.bam" ftype="bam" />
|
|
38 <output name="output1" file="sam_merge_out1.bam" ftype="bam" />
|
|
39 </test>
|
|
40 <test>
|
|
41 <param name="mergeSD" value="true" />
|
|
42 <param name="inputs" value="sam_merge_in1.bam,sam_merge_in2.bam,sam_merge_in3.bam" ftype="bam" />
|
|
43 <output name="output1" file="sam_merge_out2.bam" ftype="bam" />
|
|
44 </test>
|
0
|
45 </tests>
|
|
46 <help>
|
1
|
47 <![CDATA[
|
0
|
48 **What it does**
|
|
49
|
|
50 This tool uses the Picard_ merge command to merge any number of BAM files together into one BAM file while preserving the BAM
|
1
|
51 metadata such as read groups.
|
0
|
52
|
1
|
53 .. _Picard: http://broadinstitute.github.io/picard/
|
|
54 ]]>
|
0
|
55 </help>
|
|
56 </tool>
|