Mercurial > repos > bgruening > text_processing
annotate cut.xml @ 22:3dc70b59608c draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
author | bgruening |
---|---|
date | Fri, 07 Mar 2025 20:44:20 +0000 |
parents | 86755160afbf |
children |
rev | line source |
---|---|
22
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
1 <tool id="tp_cut_tool" name="Advanced Cut" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
3
37e1eb05b1b4
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 10052765d6b712cf7d38356af4251fcc38a339b6-dirty
bgruening
parents:
0
diff
changeset
|
2 <description>columns from a table (cut)</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <version_command>cut --version | head -n 1</version_command> | |
8 <command> | |
9 <![CDATA[ | |
10 cut | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
11 $complement |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
12 $cut_type_options.cut_element |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
13 #if $cut_type_options.cut_element != '-f' |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
14 '$cut_type_options.list' |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
15 #else |
21
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
16 '$cut_type_options.colnames_option.list' |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
17 #if str($cut_type_options.delimiter) != '': |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
18 -d"$cut_type_options.delimiter" |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
19 #end if |
0 | 20 #end if |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
21 '$input' |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
22 > '$output' |
0 | 23 ]]> |
24 </command> | |
25 <inputs> | |
26 <param name="input" format="txt" type="data" label="File to cut" /> | |
27 <param name="complement" type="select" label="Operation"> | |
28 <option value="">Keep</option> | |
29 <option value="--complement">Discard</option> | |
30 </param> | |
31 <conditional name="cut_type_options"> | |
32 <param name="cut_element" type="select" label="Cut by"> | |
33 <option value="-f">fields</option> | |
34 <option value="-c">characters</option> | |
35 </param> | |
36 <when value="-f"> | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
37 <param name="delimiter" type="select" label="Delimited by"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
38 <option value="">Tab</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
39 <option value=" ">Whitespace</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
40 <option value=".">Dot</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
41 <option value=",">Comma</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
42 <option value="-">Dash</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
43 <option value="_">Underscore</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
44 <option value="|">Pipe</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
45 </param> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
46 <conditional name="colnames_option"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
47 <param name="header" type="select" label="Is there a header for the data's columns ?"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
48 <option value="Y">Yes</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
49 <option value="N" selected="true">No</option> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
50 </param> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
51 <when value="Y"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
52 <param name="list" type="data_column" data_ref="input" use_header_names="true" multiple="true" label="List of Fields" help="(-f)" /> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
53 </when> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
54 <when value="N"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
55 <param name="list" type="data_column" data_ref="input" multiple="true" label="List of Fields" help="(-f)" /> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
56 </when> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
57 </conditional> |
0 | 58 </when> |
59 <when value="-c"> | |
3
37e1eb05b1b4
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 10052765d6b712cf7d38356af4251fcc38a339b6-dirty
bgruening
parents:
0
diff
changeset
|
60 <param name="list" type="text" value="" label="List of characters" help="These will be kept/discarded (depending on 'operation'). <BR /> Examples: 1,3,4 or 2-5"> |
0 | 61 <sanitizer> |
62 <valid initial="string.printable"> | |
63 <remove value="'"/> | |
64 </valid> | |
65 </sanitizer> | |
66 </param> | |
67 </when> | |
68 </conditional> | |
69 </inputs> | |
70 <outputs> | |
71 <!--<data format="tabular" name="output" />--> | |
72 <!-- WIP, not sure that will work with the complement option --> | |
73 <data format="tabular" name="output"> | |
74 <actions> | |
75 <conditional name="cut_type_options.cut_element"> | |
76 <!-- fields --> | |
77 <when value="-f"> | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
78 <conditional name="cut_type_options.delimiter"> |
0 | 79 <when value="T"> |
80 <conditional name="input"> | |
81 <when datatype_isinstance="interval"> | |
82 <action type="format" default="tabular"> | |
83 <option type="from_param" name="list" column="0" offset="0"> <!-- chromCol is 1--> | |
84 <filter type="insert_column" column="0" value="interval"/> | |
85 <filter type="insert_column" ref="list" /> <!-- startCol --> | |
86 <filter type="insert_column" ref="list" /> <!-- endCol --> | |
87 | |
88 <filter type="multiple_splitter" column="1" separator=","/> | |
89 <filter type="column_strip" column="1"/> <!-- get rid of all external whitespace --> | |
90 <filter type="string_function" column="1" name="lower" /> | |
91 <filter type="param_value" column="1" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
92 <filter type="column_strip" column="1" strip="c"/> <!-- get rid of c's --> | |
93 <filter type="boolean" column="1" cast="int" /> | |
94 | |
95 <filter type="multiple_splitter" column="2" separator=","/> | |
96 <filter type="column_strip" column="2"/> <!-- get rid of all external whitespace --> | |
97 <filter type="string_function" column="2" name="lower" /> | |
98 <filter type="param_value" column="2" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
99 <filter type="column_strip" column="2" strip="c"/> <!-- get rid of c's --> | |
100 <filter type="boolean" column="2" cast="int" /> | |
101 | |
102 <filter type="multiple_splitter" column="3" separator=","/> | |
103 <filter type="column_strip" column="3"/> <!-- get rid of all external whitespace --> | |
104 <filter type="string_function" column="3" name="lower" /> | |
105 <filter type="param_value" column="3" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
106 <filter type="column_strip" column="3" strip="c"/> <!-- get rid of c's --> | |
107 <filter type="boolean" column="3" cast="int" /> | |
108 | |
109 <filter type="metadata_value" ref="input" name="chromCol" column="1" /> | |
110 <filter type="metadata_value" ref="input" name="startCol" column="2" /> | |
111 <filter type="metadata_value" ref="input" name="endCol" column="3" /> | |
112 </option> | |
113 </action> | |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
114 </when> |
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
115 </conditional> |
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
116 </when> |
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
117 </conditional> |
0 | 118 <conditional name="output"> |
119 <when datatype_isinstance="interval"> | |
120 <action type="metadata" name="chromCol"> | |
121 <option type="from_param" name="list" column="0" offset="0"> <!-- chromCol is 0--> | |
122 <filter type="multiple_splitter" column="0" separator=","/> | |
123 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace --> | |
124 <filter type="string_function" column="0" name="lower" /> | |
125 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
126 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's --> | |
127 <filter type="insert_column" value="1" iterate="True" column="0"/> | |
128 <filter type="boolean" column="1" cast="int" /> | |
129 <filter type="metadata_value" ref="input" name="chromCol" column="1" /> | |
130 </option> | |
131 </action> | |
132 | |
133 <action type="metadata" name="startCol"> | |
134 <option type="from_param" name="list" column="0" offset="0"> <!-- startCol is 0--> | |
135 <filter type="multiple_splitter" column="0" separator=","/> | |
136 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace --> | |
137 <filter type="string_function" column="0" name="lower" /> | |
138 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
139 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's --> | |
140 <filter type="insert_column" value="1" iterate="True" column="0"/> | |
141 <filter type="boolean" column="1" cast="int" /> | |
142 <filter type="metadata_value" ref="input" name="startCol" column="1" /> | |
143 </option> | |
144 </action> | |
145 | |
146 <action type="metadata" name="endCol"> | |
147 <option type="from_param" name="list" column="0" offset="0"> <!-- endCol is 0--> | |
148 <filter type="multiple_splitter" column="0" separator=","/> | |
149 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace --> | |
150 <filter type="string_function" column="0" name="lower" /> | |
151 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
152 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's --> | |
153 <filter type="insert_column" value="1" iterate="True" column="0"/> | |
154 <filter type="boolean" column="1" cast="int" /> | |
155 <filter type="metadata_value" ref="input" name="endCol" column="1" /> | |
156 </option> | |
157 </action> | |
158 | |
159 <action type="metadata" name="nameCol" default="0"> | |
160 <option type="from_param" name="list" column="0" offset="0"> <!-- nameCol is 0--> | |
161 <filter type="multiple_splitter" column="0" separator=","/> | |
162 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace --> | |
163 <filter type="string_function" column="0" name="lower" /> | |
164 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
165 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's --> | |
166 <filter type="insert_column" value="1" iterate="True" column="0"/> | |
167 <filter type="boolean" column="1" cast="int" /> | |
168 <filter type="metadata_value" ref="input" name="nameCol" column="1" /> | |
169 </option> | |
170 </action> | |
171 | |
172 <action type="metadata" name="strandCol" default="0"> | |
173 <option type="from_param" name="list" column="0" offset="0"> <!-- strandCol is 0--> | |
174 <filter type="multiple_splitter" column="0" separator=","/> | |
175 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace --> | |
176 <filter type="string_function" column="0" name="lower" /> | |
177 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/> | |
178 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's --> | |
179 <filter type="insert_column" value="1" iterate="True" column="0"/> | |
180 <filter type="boolean" column="1" cast="int" /> | |
181 <filter type="metadata_value" ref="input" name="strandCol" column="1" /> | |
182 </option> | |
183 </action> | |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
184 </when> |
0 | 185 </conditional> |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
186 </when> |
0 | 187 </conditional> |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
188 </actions> |
0 | 189 </data> |
190 </outputs> | |
191 <tests> | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
192 <test expect_num_outputs="1"> |
0 | 193 <param name="input" value="cut1.txt"/> |
22
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
194 <conditional name="cut_type_options"> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
195 <param name="cut_element" value="-f"/> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
196 <param name="delimiter" value="" /> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
197 <conditional name="colnames_option"> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
198 <param name="header" value="Y"/> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
199 <param name="list" value="1,3,4"/> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
200 </conditional> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
201 </conditional> |
0 | 202 <output name="output" file="cut_results1.txt"/> |
21
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
203 <assert_command> |
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
204 <has_text text="-f '1,3,4'"/> |
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
205 </assert_command> |
0 | 206 </test> |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
207 <test expect_num_outputs="1"> |
0 | 208 <param name="input" value="cut1.txt"/> |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
209 <conditional name="cut_type_options"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
210 <param name="delimiter" value="" /> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
211 <conditional name="colnames_option"> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
212 <param name="header" value="Y"/> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
213 <!-- in the test we can (apparently) not select by header name --> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
214 <param name="list" value="2" /> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
215 </conditional> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
216 </conditional> |
0 | 217 <param name="complement" value="--complement" /> |
218 <output name="output" file="cut_results2.txt"/> | |
21
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
219 <assert_command> |
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
220 <has_text text="-f '2'"/> |
86755160afbf
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
19
diff
changeset
|
221 </assert_command> |
0 | 222 </test> |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
15
diff
changeset
|
223 <test expect_num_outputs="1"> |
0 | 224 <param name="input" value="cut1.txt"/> |
22
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
225 <conditional name="cut_type_options"> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
226 <param name="cut_element" value="-c" /> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
227 <param name="list" value="-3" /> |
3dc70b59608c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
21
diff
changeset
|
228 </conditional> |
0 | 229 <output name="output" file="cut_results3.txt"/> |
230 </test> | |
231 </tests> | |
232 <help> | |
233 <![CDATA[ | |
234 **What it does** | |
235 | |
236 This tool runs the **cut** unix command, which extract or delete columns from a file. | |
237 | |
238 ----- | |
239 | |
240 Field List Example: | |
241 | |
242 **1,3,7** - Cut specific fields/characters. | |
243 | |
244 **3-** - Cut from the third field/character to the end of the line. | |
245 | |
246 **2-5** - Cut from the second to the fifth field/character. | |
247 | |
248 **-8** - Cut from the first to the eight field/characters. | |
249 | |
250 | |
251 Input Example:: | |
252 | |
253 fruit color price weight | |
254 apple red 1.4 0.5 | |
255 orange orange 1.5 0.3 | |
256 banana yellow 0.9 0.3 | |
257 | |
258 | |
259 Output Example ( **Keeping fields 1,3,4** ):: | |
260 | |
261 fruit price weight | |
262 apple 1.4 0.5 | |
263 orange 1.5 0.3 | |
264 banana 0.9 0.3 | |
265 | |
266 Output Example ( **Discarding field 2** ):: | |
267 | |
268 fruit price weight | |
269 apple 1.4 0.5 | |
270 orange 1.5 0.3 | |
271 banana 0.9 0.3 | |
272 | |
273 Output Example ( **Keeping 3 characters** ):: | |
274 | |
275 fru | |
276 app | |
277 ora | |
278 ban | |
279 | |
280 @REFERENCES@ | |
281 ]]> | |
282 </help> | |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
3
diff
changeset
|
283 <expand macro="citations" /> |
0 | 284 </tool> |