Mercurial > repos > bgruening > text_processing
annotate head.xml @ 29:4f7cade041cb draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
author | bgruening |
---|---|
date | Wed, 04 Jun 2025 15:11:51 +0000 |
parents | f22a309187a3 |
children |
rev | line source |
---|---|
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
14
diff
changeset
|
1 <tool id="tp_head_tool" name="Select first" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
0 | 2 <description>lines from a dataset (head)</description> |
4 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
14
diff
changeset
|
6 <expand macro="creator"/> |
4 | 7 <expand macro="requirements" /> |
8 <version_command>head --version | head -n 1</version_command> | |
0 | 9 <command> |
4 | 10 <![CDATA[ |
11 head | |
12 --lines | |
13 $complement$count | |
14 '${infile}' | |
15 > '${outfile}' | |
16 ]]> | |
0 | 17 </command> |
18 <inputs> | |
4 | 19 <param name="infile" type="data" format="txt" label="File to select" /> |
0 | 20 <param name="complement" type="select" label="Operation"> |
21 <option value="">Keep first lines</option> | |
22 <option value="-">Remove last lines</option> | |
23 </param> | |
10
c78b1767db2b
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 10052765d6b712cf7d38356af4251fcc38a339b6-dirty
bgruening
parents:
7
diff
changeset
|
24 <param name="count" type="integer" value="10" |
6 | 25 label="Number of lines" help="These will be kept/discarded depending on 'operation'. (--lines)" /> |
0 | 26 </inputs> |
27 <outputs> | |
6 | 28 <data name="outfile" format_source="infile" metadata_source="infile"/> |
0 | 29 </outputs> |
1 | 30 <tests> |
31 <test> | |
32 <param name="count" value="10"/> | |
33 <param name="infile" value="1.bed"/> | |
4 | 34 <output name="outfile" file="head_results1.bed"/> |
1 | 35 </test> |
36 </tests> | |
0 | 37 <help> |
4 | 38 <![CDATA[ |
0 | 39 **What it does** |
40 | |
1 | 41 This tool outputs specified number of lines from the **beginning** of a dataset |
42 | |
43 ----- | |
44 | |
45 **Example** | |
46 | |
47 Selecting 2 lines from this:: | |
48 | |
49 chr7 56632 56652 D17003_CTCF_R6 310 + | |
50 chr7 56736 56756 D17003_CTCF_R7 354 + | |
51 chr7 56761 56781 D17003_CTCF_R4 220 + | |
52 chr7 56772 56792 D17003_CTCF_R7 372 + | |
53 chr7 56775 56795 D17003_CTCF_R4 207 + | |
54 | |
55 will produce:: | |
56 | |
57 chr7 56632 56652 D17003_CTCF_R6 310 + | |
58 chr7 56736 56756 D17003_CTCF_R7 354 + | |
59 | |
4 | 60 ]]> |
0 | 61 </help> |
14
7725ab6dab67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
10
diff
changeset
|
62 <expand macro="citations" /> |
0 | 63 </tool> |