/tools/filters/tailWrapper.xml

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

  1. <tool id="Show tail1" name="Select last">
  2. <description>lines from a dataset</description>
  3. <command interpreter="perl">tailWrapper.pl $input $lineNum $out_file1</command>
  4. <inputs>
  5. <param name="lineNum" size="5" type="integer" value="10" label="Select last" 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-showtail.dat"/>
  16. </test>
  17. </tests>
  18. <help>
  19. **What it does**
  20. This tool outputs specified number of lines from the **end** of a dataset
  21. -----
  22. **Example**
  23. - Input File::
  24. chr7 57134 57154 D17003_CTCF_R7 356 -
  25. chr7 57247 57267 D17003_CTCF_R4 207 +
  26. chr7 57314 57334 D17003_CTCF_R5 269 +
  27. chr7 57341 57361 D17003_CTCF_R7 375 +
  28. chr7 57457 57477 D17003_CTCF_R3 188 +
  29. - Show last two lines of above file. The result is::
  30. chr7 57341 57361 D17003_CTCF_R7 375 +
  31. chr7 57457 57477 D17003_CTCF_R3 188 +
  32. </help>
  33. </tool>