annotate tools/samtools/sam_merge.xml @ 2:c2a356708570

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:42 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="sam_merge2" name="Merge BAM Files" version="1.1.2">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>merges BAM files together</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <requirement type="package">picard</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 java -Xmx2G -jar ${GALAXY_DATA_INDEX_DIR}/shared/jars/MergeSamFiles.jar MSD=$mergeSD VALIDATION_STRINGENCY=LENIENT O=$output1 I=$input1 I=$input2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 #for $i in $inputs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 I=${i.input}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 2&gt; $outlog
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="title" label="Name for the output merged bam file" type="text" default="Merged.bam"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 help="This name will appear in your history so use it to remember what the new file in your history contains" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="mergeSD" value="true" type="boolean" label="Merge all component bam file headers into the merged bam file"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 truevalue="true" falsevalue="false" checked="yes"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 help="Control the MERGE_SEQUENCE_DICTIONARIES flag for Picard MergeSamFiles. Default (true) correctly propagates read groups and other important metadata" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="input1" label="First file" type="data" format="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <param name="input2" label="with file" type="data" format="bam" help="Need to add more files? Use controls below." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <repeat name="inputs" title="Input Files">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <param name="input" label="Add file" type="data" format="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <data format="bam" name="output1" label="${title}.bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <data format="txt" name="outlog" label="${title}_${tool.name}.log" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <!-- TODO: add ability to test framework to test without at least
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 one repeat element value
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="title" value="test1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="mergeSD" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <param name="input1" value="sam_merge_in1.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <param name="input2" value="sam_merge_in2.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <output name="output1" file="sam_merge_out1.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <output name="outlog" file="sam_merge_out1.log" ftype="txt" lines_diff="10"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <param name="title" value="test2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param name="mergeSD" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <param name="input1" value="sam_merge_in1.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <param name="input2" value="sam_merge_in2.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <param name="input" value="sam_merge_in3.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <output name="output1" file="sam_merge_out2.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <output name="outlog" file="sam_merge_out2.log" ftype="txt" lines_diff="10"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 This tool uses the Picard_ merge command to merge any number of BAM files together into one BAM file while preserving the BAM
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 metadata such as read groups
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 .. _Picard: http://picard.sourceforge.net/command-line-overview.shtml#MergeSamFiles
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 </tool>