diff head.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/head.xml	Thu Sep 05 04:58:21 2013 -0400
+++ b/head.xml	Thu Sep 05 11:42:27 2013 -0400
@@ -8,7 +8,7 @@
     </command>
 
     <inputs>
-        <param format="txt" name="infile" type="data" label="file to cut" />
+        <param format="txt" name="infile" type="data" label="File to select" />
 
         <param name="complement" type="select" label="Operation">
             <option value="">Keep first lines</option>
@@ -27,11 +27,36 @@
     <outputs>
         <data format="input" name="outfile" metadata_source="infile"/>
     </outputs>
+    <tests>
+        <test>
+            <param name="count" value="10"/>
+            <param name="infile" value="1.bed"/>
+            <output name="out_file1" file="eq-showbeginning.dat"/>
+        </test>
+    </tests>
     <help>
 
 **What it does**
 
-This tool runs the **head** unix command, which discards lines from the end of a file.
+This tool outputs specified number of lines from the **beginning** of a dataset
+
+-----
+
+**Example**
+
+Selecting 2 lines from this::
+
+    chr7  56632  56652  D17003_CTCF_R6  310  +
+    chr7  56736  56756  D17003_CTCF_R7  354  +
+    chr7  56761  56781  D17003_CTCF_R4  220  +
+    chr7  56772  56792  D17003_CTCF_R7  372  +
+    chr7  56775  56795  D17003_CTCF_R4  207  +
+
+will produce::
+
+    chr7  56632  56652  D17003_CTCF_R6  310  +
+    chr7  56736  56756  D17003_CTCF_R7  354  +
+
 
     </help>
 </tool>