annotate tac.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_tac" name="tac" version="@BASE_VERSION@.0">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
2 <description>reverse a file (reverse cat)</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>tac --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 tac
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
11 #if str($separator.separator_select) == "yes":
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
12 $separator.before
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
13 $separator.regex
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
14 #if $separator.separator_string:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
15 "$separator.separator_string"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
16 #end if
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
17 #end if
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
18 "$infile"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
19 > "$outfile"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
20 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
21 </command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
22 <inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
23 <param name="infile" type="data" format="txt" label="Input file"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
24 <conditional name="separator">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
25 <param name="separator_select" type="select" label="Do you want to use a separator other than newline?">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
26 <option value="no">No</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
27 <option value="yes">Yes</option>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
28 </param>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
29 <when value="no" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
30 <when value="yes">
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
31 <param name="before" type="boolean" truevalue="-b" falsevalue="" checked="True"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
32 label="Attach the separator before instead of after" help="(--before)"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
33 <param name="regex" type="boolean" truevalue="-r" falsevalue="" checked="True"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
34 label="Interpret the separator as a regular expression" help="(--regex)"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
35 <param name="separator_string" size="5" type="text" value=""
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
36 label="Separator to use" help="(--separator)" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
37 </when>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
38 </conditional>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
39 </inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
40 <outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
41 <data name="outfile" format_source="infile" metadata_source="infile"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
42 </outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
43 <tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
44 <test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
45 <param name="infile" value="1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
46 <output name="outfile" file="tac_result1.txt"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
47 </test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
48 <test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
49 <param name="infile" value="1.bed"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
50 <param name="separator_select" value="yes"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
51 <param name="before" value="True"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
52 <output name="outfile" file="tac_result2.txt"/>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
53 </test>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
54 </tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
55 <help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
56 <![CDATA[
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
57 **What it does**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
58
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
59 tac is a Linux command that allows you to see a file line-by-line backwards. It is named by analogy with cat.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
60
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
61 Mandatory arguments to long options are mandatory for short options too:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
62
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
63 -b, --before attach the separator before instead of after
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
64 -r, --regex interpret the separator as a regular expression
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
65 -s, --separator=STRING use STRING as the separator instead of newline
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
66
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
67 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
68
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
69 **Example**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
70
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
71 Input file:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
72
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
73 0 1 2 3 4 5 # 6 7 8 9
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
74
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
75
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
76 default settings:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
77
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
78 9 8 7 6 # 5 4 3 2 1 0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
79
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
80 with option -s 5:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
81 # 6 7 8 9 0 1 2 3 4 5
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
82
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
83 with option -b and -s 5:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
84
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
85 5 # 6 7 8 9 0 1 2 3 4
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
86
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
87 @REFERENCES@
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
88 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
89 </help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
90 </tool>