diff tail.xml @ 1:a4ad586d1403 draft

Uploaded
author bgruening
date Thu, 05 Sep 2013 11:42:27 -0400
parents ec66f9d90ef0
children 7068d1548234
line wrap: on
line diff
--- a/tail.xml	Thu Sep 05 04:58:21 2013 -0400
+++ b/tail.xml	Thu Sep 05 11:42:27 2013 -0400
@@ -4,22 +4,46 @@
         <requirement type="package" version="8.21">gnu_coreutils</requirement>
     </requirements>
     <command>
-        tail --lines $count '$input1' &gt; '$output'
+        tail --lines $count '$input' &gt; '$output'
     </command>
 
     <inputs>
-        <param format="txt" name="input1" type="data" label="file to cut" />
+        <param format="txt" name="input" type="data" label="file to cut" />
         <param name="count" type="integer" size="5"  value="10" label="Output last X lines" help="" />
     </inputs>
 
     <outputs>
-        <data format="input" name="output" metadata_source="input1"/>
+        <data format="input" name="output" metadata_source="input"/>
     </outputs>
+    <tests>
+        <test>
+            <param name="count" value="10"/>
+            <param name="infile" value="1.bed"/>
+        <output name="out_file1" file="eq-showtail.dat"/>
+        </test>
+    </tests>
     <help>
 
 **What it does**
 
-This tool runs the **tail** unix command, which discards lines from the beginning of a file.
+This tool outputs specified number of lines from the **end** of a dataset
+
+-----
+
+**Example**
+
+- Input File::
+
+    chr7    57134   57154   D17003_CTCF_R7  356     -
+    chr7    57247   57267   D17003_CTCF_R4  207     +
+    chr7    57314   57334   D17003_CTCF_R5  269     +
+    chr7    57341   57361   D17003_CTCF_R7  375     +
+    chr7    57457   57477   D17003_CTCF_R3  188     +
+
+- Show last two lines of above file. The result is::
+
+    chr7    57341   57361   D17003_CTCF_R7  375     +
+    chr7    57457   57477   D17003_CTCF_R3  188     +
 
     </help>
 </tool>