Mercurial > repos > bgruening > text_processing
annotate cut.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 | 08cdbfffce67 |
children |
rev | line source |
---|---|
27
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
1 <tool id="tp_cut_tool" name="Advanced Cut" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
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
|
2 <description>columns from a table (cut)</description> |
4 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <version_command>cut --version | head -n 1</version_command> | |
0 | 8 <command> |
4 | 9 <![CDATA[ |
10 cut | |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
11 $complement |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
12 $cut_type_options.cut_element |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
13 #if $cut_type_options.cut_element != '-f' |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
14 '$cut_type_options.list' |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
15 #else |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
16 '$cut_type_options.colnames_option.list' |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
17 #if str($cut_type_options.delimiter) != '': |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
18 -d"$cut_type_options.delimiter" |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
19 #end if |
4 | 20 #end if |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
21 '$input' |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
22 > '$output' |
4 | 23 ]]> |
0 | 24 </command> |
25 <inputs> | |
4 | 26 <param name="input" format="txt" type="data" label="File to cut" /> |
0 | 27 <param name="complement" type="select" label="Operation"> |
28 <option value="">Keep</option> | |
29 <option value="--complement">Discard</option> | |
30 </param> | |
4 | 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"> | |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
37 <param name="delimiter" type="select" label="Delimited by"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
38 <option value="">Tab</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
39 <option value=" ">Whitespace</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
40 <option value=".">Dot</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
41 <option value=",">Comma</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
42 <option value="-">Dash</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
43 <option value="_">Underscore</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
44 <option value="|">Pipe</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
45 </param> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
46 <conditional name="colnames_option"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
47 <param name="header" type="select" label="Is there a header for the data's columns ?"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
48 <option value="Y">Yes</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
49 <option value="N" selected="true">No</option> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
50 </param> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
51 <when value="Y"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
52 <param name="list" type="data_column" data_ref="input" use_header_names="true" multiple="true" label="List of Fields" help="(-f)" /> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
53 </when> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
54 <when value="N"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
55 <param name="list" type="data_column" data_ref="input" multiple="true" label="List of Fields" help="(-f)" /> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
56 </when> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
57 </conditional> |
4 | 58 </when> |
59 <when value="-c"> | |
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
|
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"> |
4 | 61 <sanitizer> |
62 <valid initial="string.printable"> | |
63 <remove value="'"/> | |
64 </valid> | |
65 </sanitizer> | |
66 </param> | |
67 </when> | |
68 </conditional> | |
0 | 69 </inputs> |
1 | 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"> | |
4 | 74 <actions> |
75 <conditional name="cut_type_options.cut_element"> | |
76 <!-- fields --> | |
77 <when value="-f"> | |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
78 <conditional name="cut_type_options.delimiter"> |
4 | 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 --> | |
1 | 87 |
4 | 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" /> | |
1 | 94 |
4 | 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" /> | |
1 | 101 |
4 | 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" /> | |
1 | 108 |
4 | 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> | |
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
|
114 </when> |
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
|
115 </conditional> |
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
|
116 </when> |
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
|
117 </conditional> |
1 | 118 <conditional name="output"> |
4 | 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"/> | |
7 | 128 <filter type="boolean" column="1" cast="int" /> |
4 | 129 <filter type="metadata_value" ref="input" name="chromCol" column="1" /> |
130 </option> | |
131 </action> | |
7 | 132 |
4 | 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> | |
7 | 145 |
4 | 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> | |
7 | 158 |
4 | 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> | |
7 | 171 |
4 | 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> | |
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
|
184 </when> |
1 | 185 </conditional> |
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
|
186 </when> |
1 | 187 </conditional> |
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
|
188 </actions> |
1 | 189 </data> |
190 </outputs> | |
0 | 191 <tests> |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
192 <test expect_num_outputs="1"> |
6 | 193 <param name="input" value="cut1.txt"/> |
27
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
194 <conditional name="cut_type_options"> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
195 <param name="cut_element" value="-f"/> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
196 <param name="delimiter" value="" /> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
197 <conditional name="colnames_option"> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
198 <param name="header" value="Y"/> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
199 <param name="list" value="1,3,4"/> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
200 </conditional> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
201 </conditional> |
6 | 202 <output name="output" file="cut_results1.txt"/> |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
203 <assert_command> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
204 <has_text text="-f '1,3,4'"/> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
205 </assert_command> |
0 | 206 </test> |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
207 <test expect_num_outputs="1"> |
6 | 208 <param name="input" value="cut1.txt"/> |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
209 <conditional name="cut_type_options"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
210 <param name="delimiter" value="" /> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
211 <conditional name="colnames_option"> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
212 <param name="header" value="Y"/> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
213 <!-- in the test we can (apparently) not select by header name --> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
214 <param name="list" value="2" /> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
215 </conditional> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
216 </conditional> |
6 | 217 <param name="complement" value="--complement" /> |
218 <output name="output" file="cut_results2.txt"/> | |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
219 <assert_command> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
220 <has_text text="-f '2'"/> |
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
221 </assert_command> |
6 | 222 </test> |
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
23
diff
changeset
|
223 <test expect_num_outputs="1"> |
6 | 224 <param name="input" value="cut1.txt"/> |
27
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
225 <conditional name="cut_type_options"> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
226 <param name="cut_element" value="-c" /> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
227 <param name="list" value="-3" /> |
08cdbfffce67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 2dc2df988bd2dde9f8d7f629b594186dbd4fdc2b
bgruening
parents:
26
diff
changeset
|
228 </conditional> |
6 | 229 <output name="output" file="cut_results3.txt"/> |
0 | 230 </test> |
231 </tests> | |
232 <help> | |
4 | 233 <![CDATA[ |
0 | 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 | |
4 | 280 @REFERENCES@ |
281 ]]> | |
0 | 282 </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
|
283 <expand macro="citations" /> |
0 | 284 </tool> |