Mercurial > repos > bgruening > text_processing
annotate tail.xml @ 11:e6d48dc4e6ba draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit d48f42b1c267c8ebfc50161ea764baed8ee66701-dirty
author | bgruening |
---|---|
date | Fri, 18 Mar 2016 15:18:21 -0400 |
parents | c78b1767db2b |
children | 7725ab6dab67 |
rev | line source |
---|---|
4 | 1 <tool id="tp_tail_tool" name="Select last" version="@BASE_VERSION@.0"> |
0 | 2 <description>lines from a dataset (tail)</description> |
4 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <version_command>tail --version | head -n 1</version_command> | |
0 | 8 <command> |
4 | 9 <![CDATA[ |
10 tail | |
11 --lines $complement$num_lines | |
12 '$infile' | |
13 > '$outfile' | |
14 ]]> | |
0 | 15 </command> |
16 <inputs> | |
4 | 17 <param name="infile" format="txt" type="data" label="Text file" /> |
18 <param name="complement" type="select" label="Operation"> | |
19 <option value="">Keep last lines</option> | |
20 <option value="+">Keep everything from this line on</option> | |
21 </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
|
22 <param name="num_lines" type="integer" value="10" |
4 | 23 label="Number of lines" help="These will be kept (depending on 'operation'). (--lines)" /> |
0 | 24 </inputs> |
25 <outputs> | |
6 | 26 <data name="outfile" format_source="infile" metadata_source="infile" /> |
0 | 27 </outputs> |
1 | 28 <tests> |
29 <test> | |
30 <param name="infile" value="1.bed"/> | |
4 | 31 <param name="num_lines" value="10"/> |
32 <output name="outfile" file="tail_results1.bed"/> | |
33 </test> | |
34 <test> | |
35 <param name="infile" value="1.bed"/> | |
36 <param name="num_lines" value="10"/> | |
37 <param name="complement" value="+"/> | |
38 <output name="outfile" file="tail_results2.bed"/> | |
1 | 39 </test> |
40 </tests> | |
0 | 41 <help> |
4 | 42 <![CDATA[ |
0 | 43 **What it does** |
44 | |
1 | 45 This tool outputs specified number of lines from the **end** of a dataset |
46 | |
47 ----- | |
48 | |
49 **Example** | |
50 | |
51 - Input File:: | |
52 | |
53 chr7 57134 57154 D17003_CTCF_R7 356 - | |
54 chr7 57247 57267 D17003_CTCF_R4 207 + | |
55 chr7 57314 57334 D17003_CTCF_R5 269 + | |
56 chr7 57341 57361 D17003_CTCF_R7 375 + | |
57 chr7 57457 57477 D17003_CTCF_R3 188 + | |
58 | |
59 - Show last two lines of above file. The result is:: | |
60 | |
61 chr7 57341 57361 D17003_CTCF_R7 375 + | |
62 chr7 57457 57477 D17003_CTCF_R3 188 + | |
0 | 63 |
4 | 64 @REFERENCES@ |
65 ]]> | |
0 | 66 </help> |
67 </tool> |