diff picard_SortSam.xml @ 0:b76a4f17bbbb draft

Uploaded
author devteam
date Thu, 23 Oct 2014 11:31:30 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/picard_SortSam.xml	Thu Oct 23 11:31:30 2014 -0400
@@ -0,0 +1,69 @@
+<tool id="picard_SortSam" name="SortSam" version="1.122.0">
+    
+  <description>sort SAM/BAM dataset</description>
+  
+  <requirements>
+    <requirement type="package" version="1.122.0">picard</requirement>
+  </requirements>
+  
+  <macros>
+    <import>picard_macros.xml</import>
+  </macros>
+  
+  <command>
+    @java_options@
+    java -jar \$JAVA_JAR_PATH/SortSam.jar
+    INPUT="${inputFile}"
+    OUTPUT="${outFile}"
+    SORT_ORDER="${sort_order}"
+    QUIET=true
+    VERBOSITY=ERROR
+    VALIDATION_STRINGENCY=${validation_stringency}
+  </command>
+  
+  <inputs>
+    <param name="inputFile" type="data" format="sam,bam" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
+    <param name="sort_order" type="select" display="radio" label="Sort order" help="SORT_ORDER; default=coordinate">
+      <option value="coordinate" selected="True">Coordinate</option>
+      <option value="queryname">Queryname</option>
+      <option value="unsorted">Unsorted</option>
+    </param>
+    <expand macro="VS" />
+  </inputs>
+  
+  <outputs>
+    <data name="outFile" format="bam" label="${tool.name} on ${on_string}: BAM sorted in ${sort_order} order">
+    </data>
+  </outputs>
+  
+  <stdio>
+    <exit_code range="1:"  level="fatal"/>
+  </stdio>
+  
+  <tests>
+    <test>
+      <param name="inputFile" ftype="bam" value="picard_SortSam.bam" />
+      <param name="sort_order" value="queryname"/>
+      <output name="outFile" file="picard_SortSam_test1.bam" ftype="bam" lines_diff="2"/>
+    </test>
+  </tests>
+  
+  <help>
+
+.. class:: infomark
+
+**Purpose**
+
+Sorts the input SAM or BAM.
+
+@dataset_collections@
+
+@description@
+
+  SORT_ORDER=SortOrder
+  SO=SortOrder                  Sort order of output file  Required. Possible values: {unsorted, queryname, coordinate} 
+ 
+ @more_info@
+
+  </help>
+</tool>
\ No newline at end of file