/tools/filters/headWrapper.xml

https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 42 lines · 33 code · 9 blank · 0 comment · 0 complexity · 65d95c1aceef2157205169911fa8b9e4 MD5 · raw file

  1. <tool id="Show beginning1" name="Select first">
  2. <description>lines from a dataset</description>
  3. <command interpreter="perl">headWrapper.pl $input $lineNum $out_file1</command>
  4. <inputs>
  5. <param name="lineNum" size="5" type="integer" value="10" label="Select first" help="lines"/>
  6. <param format="txt" name="input" type="data" label="from"/>
  7. </inputs>
  8. <outputs>
  9. <data format="input" name="out_file1" metadata_source="input"/>
  10. </outputs>
  11. <tests>
  12. <test>
  13. <param name="lineNum" value="10"/>
  14. <param name="input" value="1.bed"/>
  15. <output name="out_file1" file="eq-showbeginning.dat"/>
  16. </test>
  17. </tests>
  18. <help>
  19. **What it does**
  20. This tool outputs specified number of lines from the **beginning** of a dataset
  21. -----
  22. **Example**
  23. Selecting 2 lines from this::
  24. chr7 56632 56652 D17003_CTCF_R6 310 +
  25. chr7 56736 56756 D17003_CTCF_R7 354 +
  26. chr7 56761 56781 D17003_CTCF_R4 220 +
  27. chr7 56772 56792 D17003_CTCF_R7 372 +
  28. chr7 56775 56795 D17003_CTCF_R4 207 +
  29. will produce::
  30. chr7 56632 56652 D17003_CTCF_R6 310 +
  31. chr7 56736 56756 D17003_CTCF_R7 354 +
  32. </help>
  33. </tool>