annotate tail.xml @ 1:43b1f073b693 draft

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