diff g_frequency.xml @ 0:e991d4e60c17 draft

planemo upload commit 0203cb3a0b40d9348674b2b098af805e2986abca-dirty
author stevecassidy
date Wed, 12 Oct 2016 22:17:53 -0400
parents
children 0df72a8ab095
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/g_frequency.xml	Wed Oct 12 22:17:53 2016 -0400
@@ -0,0 +1,34 @@
+<tool id="Frequency" name="Frequency List" version="1.0">
+    <description>Takes a text input and generates a frequency list</description>
+
+    <requirements>
+        <requirement type="package" version="3.2.1">nltk</requirement>
+    </requirements>
+
+    <command interpreter="python">
+        g_frequency.py --input $input1 --output $frequency_table
+    </command>
+
+    <inputs>
+        <param name="input1" type="data" format="txt"
+               label="Select a suitable input file from your history"/>
+
+        <param name="job_name" type="text" size="25"
+               label="Supply a name for the outputs to remind you what they contain"
+               value="Frequency List"/>
+    </inputs>
+    <outputs>
+        <data format="tabular" name="frequency_table" label="${job_name}"/>
+    </outputs>
+
+    <tests>
+        <test>
+            <param name='input1' value='sample_text.txt'/>
+            <param name='job_name' value='testfrequency'/>
+            <output name='testfrequency' file='sample_text_frequency.dat'/>
+        </test>
+    </tests>
+    <help>
+        Generate a frequency list from a text ordered by word frequency.
+    </help>
+</tool>