Mercurial > repos > bgruening > text_processing
view head.xml @ 19:12615d397df7 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
author | bgruening |
---|---|
date | Thu, 29 Feb 2024 22:15:20 +0000 |
parents | 60edf2f8c28f |
children |
line wrap: on
line source
<tool id="tp_head_tool" name="Select first" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> <description>lines from a dataset (head)</description> <macros> <import>macros.xml</import> </macros> <expand macro="creator"/> <expand macro="requirements" /> <version_command>head --version | head -n 1</version_command> <command> <![CDATA[ head --lines $complement$count '${infile}' > '${outfile}' ]]> </command> <inputs> <param name="infile" type="data" format="txt" label="File to select" /> <param name="complement" type="select" label="Operation"> <option value="">Keep first lines</option> <option value="-">Remove last lines</option> </param> <param name="count" type="integer" value="10" label="Number of lines" help="These will be kept/discarded depending on 'operation'. (--lines)" /> </inputs> <outputs> <data name="outfile" format_source="infile" metadata_source="infile"/> </outputs> <tests> <test> <param name="count" value="10"/> <param name="infile" value="1.bed"/> <output name="outfile" file="head_results1.bed"/> </test> </tests> <help> <![CDATA[ **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> <expand macro="citations" /> </tool>