diff presto_partition.xml @ 0:0b103d43a2c7 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/presto commit 5d4da3eb59439ce5b1eea211b4ad1d47807d7acb
author iuc
date Wed, 30 May 2018 15:35:32 -0400
parents
children c3bf9c466305
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/presto_partition.xml	Wed May 30 15:35:32 2018 -0400
@@ -0,0 +1,53 @@
+<tool id="presto_partition" name="pRESTO Partition" version="@PRESTO_VERSION@">
+    <description>Partition a file in two</description>
+    
+    <macros>
+        <import>presto_macros.xml</import>
+    </macros>
+    
+    <expand macro="requirements"/>
+    
+    <version_command>SplitSeq.py --version</version_command>
+    <command detect_errors="exit_code"><![CDATA[
+        ln -s '$fastq_in' in.fastq &&
+        SplitSeq.py group
+          -s in.fastq
+          -f '$field'
+          --num '$threshold'
+          --outname=tmp_group &&
+        mv './tmp_group_under-${threshold}.fastq' '$lower_out' &&
+        mv './tmp_group_atleast-${threshold}.fastq' '$upper_out'
+    ]]></command>
+
+    <inputs>
+        <param argument="-s" name="fastq_in" type="data" format="fastq" label="Input FASTQ file" help="FASTQ file of sequences with barcodes/UMIs in an annotation."/>
+        <param argument="-f" name="field" type="text" value="" label="Annotation Field" help="Name of the numeric annotation field to partition by."/>
+        <param argument="--num" name="threshold" type="integer" value="0" label="Threshold" help="Numeric threshold. File will be partitions be into n &lt; threshold and n &gt;= threshold."/>
+    </inputs>
+
+    <outputs>
+        <data name="lower_out" format="fastq" label="Sequences with $field &lt; $threshold"/>
+        <data name="upper_out" format="fastq" label="Sequences with $field &gt;= $threshold"/>
+    </outputs>
+    
+    <tests>
+        <test>
+            <param  name="fastq_in" value="presto_splitseq_partition_test_in.fastq"/>
+            <param  name="field" value="CONSCOUNT"/>
+            <param  name="threshold" value="3"/>
+            <output name="lower_out" file="presto_splitseq_partition_test_out_under.fastq" sort="true"/>
+            <output name="upper_out" file="presto_splitseq_partition_test_out_atleast.fastq" sort="true"/>
+        </test>
+    </tests>
+    
+    <help><![CDATA[
+Uses pRESTO SplitSeq.py group to partition a file of sequences into two files. The input file is split based on a numeric
+annotation field to yield one file which contains all sequences with the field value less than the provided threshold and
+a second file with all sequences with the field value greater than or equal to the threshold.
+
+See the `pRESTO online help <@PRESTO_URL_BASE@/SplitSeq.html>`_ for more information.
+
+@HELP_NOTE@
+    ]]></help>
+    <expand macro="citations" />
+</tool>