Files
galaxy/tools/filters/headWrapper.xml
T
Nicola Soranzo f865e8359f Deprecate size attribute of <param/> and remove it from tools
Also:
- dos2unix test/functional/tools/for_workflows/head.xml
- Single-quote text and data params in `<command/>`
- Remove deprecated `interpreter` attribute of `<command />`
2018-09-10 11:34:37 +01:00

43 lines
1.2 KiB
XML

<tool id="Show beginning1" name="Select first" version="1.0.0">
<description>lines from a dataset</description>
<command>
perl '$__tool_directory__/headWrapper.pl' '$input' $lineNum '$out_file1'
</command>
<inputs>
<param name="lineNum" type="integer" value="10" label="Select first" help="lines"/>
<param name="input" type="data" format="txt" label="from"/>
</inputs>
<outputs>
<data name="out_file1" format="input" metadata_source="input"/>
</outputs>
<tests>
<test>
<param name="lineNum" value="10"/>
<param name="input" value="1.bed"/>
<output name="out_file1" file="eq-showbeginning.dat"/>
</test>
</tests>
<help>
**What it does**
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>