annotate picard_MergeSam.xml @ 98:a1657d0eca21 draft

Deleted selected files
author devteam
date Mon, 24 Feb 2014 17:27:22 -0500
parents bc997d1de208
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84
bc997d1de208 Uploaded
devteam
parents:
diff changeset
1 <tool id="picard_mergesam" name="Merge SAM or BAM files" version="1.106.0">
bc997d1de208 Uploaded
devteam
parents:
diff changeset
2 <!-- Documentation: http://picard.sourceforge.net/command-line-overview.shtml#MergeSamFiles
bc997d1de208 Uploaded
devteam
parents:
diff changeset
3 Merges multiple SAM/BAM files into one file.
bc997d1de208 Uploaded
devteam
parents:
diff changeset
4 -->
bc997d1de208 Uploaded
devteam
parents:
diff changeset
5 <description>merges SAM or BAM files together</description>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
6 <requirements><requirement type="package" version="1.106.0">picard</requirement></requirements>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
7 <command interpreter="bash">
bc997d1de208 Uploaded
devteam
parents:
diff changeset
8 mergesam_wrapper.sh $output1 $outformat I=$input1 I=$input2
bc997d1de208 Uploaded
devteam
parents:
diff changeset
9 #for $i in $inputs
bc997d1de208 Uploaded
devteam
parents:
diff changeset
10 I=${i.input}
bc997d1de208 Uploaded
devteam
parents:
diff changeset
11 #end for
bc997d1de208 Uploaded
devteam
parents:
diff changeset
12 MSD=$mergeSD VALIDATION_STRINGENCY=LENIENT TMP_DIR=$__new_file_path__
bc997d1de208 Uploaded
devteam
parents:
diff changeset
13 2&gt; /dev/null
bc997d1de208 Uploaded
devteam
parents:
diff changeset
14 ##|| echo "Error running Picard MergeSamFiles" >&amp;2
bc997d1de208 Uploaded
devteam
parents:
diff changeset
15 </command>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
16 <inputs>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
17 <param name="title" label="Name for the output merged bam file" type="text" default="Merged.bam"
bc997d1de208 Uploaded
devteam
parents:
diff changeset
18 help="This name will appear in your history so use it to remember what the new file in your history contains" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
19 <param name="outformat" type="select" label="Output format" >
bc997d1de208 Uploaded
devteam
parents:
diff changeset
20 <option value="bam" selected="True">BAM</option>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
21 <option value="sam">SAM</option>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
22 </param>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
23 <param name="mergeSD" value="true" type="boolean" label="Merge all component bam file headers into the merged bam file"
bc997d1de208 Uploaded
devteam
parents:
diff changeset
24 truevalue="true" falsevalue="false" checked="yes"
bc997d1de208 Uploaded
devteam
parents:
diff changeset
25 help="Control the MERGE_SEQUENCE_DICTIONARIES flag for Picard MergeSamFiles. Default (true) correctly propagates read groups and other important metadata" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
26 <param name="input1" label="First file" type="data" format="bam,sam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
27 <param name="input2" label="with file" type="data" format="bam,sam" help="Need to add more files? Use controls below." />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
28 <repeat name="inputs" title="Input Files">
bc997d1de208 Uploaded
devteam
parents:
diff changeset
29 <param name="input" label="Add file" type="data" format="bam,sam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
30 </repeat>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
31 </inputs>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
32 <outputs>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
33 <data format="bam" name="output1" label="${title}.${outformat}" >
bc997d1de208 Uploaded
devteam
parents:
diff changeset
34 <change_format>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
35 <when input="outformat" value="sam" format="sam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
36 </change_format>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
37 </data>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
38 </outputs>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
39 <tests>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
40 <test>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
41 <!-- command: java -jar MergeSamFiles.jar O=mergesie.bam I=picard_output_fixmate_tiny.bam I=picard_RS_output1.bam MSD=True VALIDATION_STRINGENCY=LENIENT -->
bc997d1de208 Uploaded
devteam
parents:
diff changeset
42 <param name="title" value="test1" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
43 <param name="mergeSD" value="True" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
44 <param name="input1" value="picard_output_fixmate_tiny.bam" ftype="bam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
45 <param name="input2" value="picard_RS_output1.bam" ftype="bam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
46 <output name="output1" file="mergesie.bam" ftype="bam" />
bc997d1de208 Uploaded
devteam
parents:
diff changeset
47 </test>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
48 </tests>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
49 <help>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
50
bc997d1de208 Uploaded
devteam
parents:
diff changeset
51 **What it does**
bc997d1de208 Uploaded
devteam
parents:
diff changeset
52
bc997d1de208 Uploaded
devteam
parents:
diff changeset
53 This tool uses the Picard_ merge command to merge any number of BAM files together into one BAM file while preserving the BAM
bc997d1de208 Uploaded
devteam
parents:
diff changeset
54 metadata such as read groups
bc997d1de208 Uploaded
devteam
parents:
diff changeset
55
bc997d1de208 Uploaded
devteam
parents:
diff changeset
56 .. _Picard: http://picard.sourceforge.net/command-line-overview.shtml#MergeSamFiles
bc997d1de208 Uploaded
devteam
parents:
diff changeset
57
bc997d1de208 Uploaded
devteam
parents:
diff changeset
58 </help>
bc997d1de208 Uploaded
devteam
parents:
diff changeset
59 </tool>