changeset 1:4b4f4c252e34 draft

Uploaded
author jbrayet
date Wed, 18 Nov 2015 05:30:51 -0500
parents 6328b3006888
children a8fc8940bea3
files samtools_sort.xml
diffstat 1 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/samtools_sort.xml	Wed Nov 18 05:30:51 2015 -0500
@@ -0,0 +1,30 @@
+<tool id="samtools_sort" name="Sort" version="2.0">
+    <description>BAM dataset</description>
+    <macros>
+    <import>macros.xml</import>
+  </macros>
+  <expand macro="requirements"></expand>
+    <expand macro="stdio"></expand>
+    <expand macro="version_command"></expand>
+    <command>samtools sort $sort_mode -@ \${GALAXY_SLOTS:-1} -o "${output1}" -O bam -T dataset "${input1}"</command>
+    <inputs>
+        <param name="input1" type="data" format="bam" label="BAM File" />
+        <param name="sort_mode" type="select" label="Sort by ">
+            <option value="" selected="True">Chromosomal coordinates</option>
+            <option value="-n">Read names (-n)</option>
+        </param>
+    </inputs>
+    <outputs>
+        <data name="output1" format="bam" />
+    </outputs>
+
+    <help>
+
+**What it does**
+
+This tool uses ``samtools sort`` command to sort BAM datasets in coordinate or read name order.
+
+
+    </help>
+    <expand macro="citations"></expand>
+</tool>