Mercurial > repos > bgruening > split_file_to_collection
comparison split_file_to_collection.xml @ 10:2dae863c8f42 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_to_collection commit 5d21f3d6a3a84b4737a2091ae0d772471eb389dd
author | bgruening |
---|---|
date | Thu, 23 May 2024 15:03:47 +0000 |
parents | baabc30154cd |
children |
comparison
equal
deleted
inserted
replaced
9:baabc30154cd | 10:2dae863c8f42 |
---|---|
1 <tool id="split_file_to_collection" name="Split file" version="0.5.1"> | 1 <tool id="split_file_to_collection" name="Split file" version="0.5.2"> |
2 <description>to dataset collection</description> | 2 <description>to dataset collection</description> |
3 <macros> | 3 <macros> |
4 <xml name="regex_sanitizer"> | 4 <xml name="regex_sanitizer"> |
5 <sanitizer> | 5 <sanitizer> |
6 <valid> | 6 <valid> |
188 <expand macro="numnew_fname"/> | 188 <expand macro="numnew_fname"/> |
189 </when> | 189 </when> |
190 </conditional> | 190 </conditional> |
191 </inputs> | 191 </inputs> |
192 <outputs> | 192 <outputs> |
193 <collection name="list_output_tab" type="list" label="${tool.name} on ${on_string}"> | 193 <collection name="list_output_tab" type="list" label="${tool.name} on ${on_string}: tabular"> |
194 <discover_datasets pattern="__name__" directory="out" visible="false" format="tabular"/> | 194 <discover_datasets pattern="__name__" directory="out" visible="false" format="tabular"/> |
195 <filter>split_parms['select_ftype'] == "tabular"</filter> | 195 <filter>split_parms['select_ftype'] == "tabular"</filter> |
196 </collection> | 196 </collection> |
197 <collection name="list_output_mgf" type="list" label="${tool.name} on ${on_string}"> | 197 <collection name="list_output_mgf" type="list" label="${tool.name} on ${on_string}: mgf"> |
198 <discover_datasets pattern="__name__" directory="out" visible="false" format="mgf"/> | 198 <discover_datasets pattern="__name__" directory="out" visible="false" format="mgf"/> |
199 <filter>split_parms['select_ftype'] == "mgf"</filter> | 199 <filter>split_parms['select_ftype'] == "mgf"</filter> |
200 </collection> | 200 </collection> |
201 <collection name="list_output_fasta" type="list" label="${tool.name} on ${on_string}"> | 201 <collection name="list_output_fasta" type="list" label="${tool.name} on ${on_string}: fasta"> |
202 <discover_datasets pattern="__name__" directory="out" visible="false" format="fasta"/> | 202 <discover_datasets pattern="__name__" directory="out" visible="false" format="fasta"/> |
203 <filter>split_parms['select_ftype'] == "fasta"</filter> | 203 <filter>split_parms['select_ftype'] == "fasta"</filter> |
204 </collection> | 204 </collection> |
205 <collection name="list_output_fastq" type="list" label="${tool.name} on ${on_string}"> | 205 <collection name="list_output_fastq" type="list" label="${tool.name} on ${on_string}: fastq"> |
206 <discover_datasets pattern="__name__" directory="out" visible="false" format="fastq"/> | 206 <discover_datasets pattern="__name__" directory="out" visible="false" format="fastq"/> |
207 <filter>split_parms['select_ftype'] == "fastq"</filter> | 207 <filter>split_parms['select_ftype'] == "fastq"</filter> |
208 </collection> | 208 </collection> |
209 <collection name="list_output_sdf" type="list" label="${tool.name} on ${on_string}"> | 209 <collection name="list_output_sdf" type="list" label="${tool.name} on ${on_string}: sdf"> |
210 <discover_datasets pattern="__name__" directory="out" visible="false" format="sdf"/> | 210 <discover_datasets pattern="__name__" directory="out" visible="false" format="sdf"/> |
211 <filter>split_parms['select_ftype'] == "sdf"</filter> | 211 <filter>split_parms['select_ftype'] == "sdf"</filter> |
212 </collection> | 212 </collection> |
213 <collection name="list_output_txt" type="list" label="${tool.name} on ${on_string}"> | 213 <collection name="list_output_txt" type="list" label="${tool.name} on ${on_string}: txt"> |
214 <discover_datasets pattern="__name__" directory="out" visible="false" format="txt"/> | 214 <discover_datasets pattern="__name__" directory="out" visible="false" format="txt"/> |
215 <filter>split_parms['select_ftype'] == "txt"</filter> | 215 <filter>split_parms['select_ftype'] == "txt"</filter> |
216 </collection> | 216 </collection> |
217 <collection name="list_output_generic" type="list" label="${tool.name} on ${on_string}"> | 217 <collection name="list_output_generic" type="list" label="${tool.name} on ${on_string}: generic"> |
218 <discover_datasets pattern="__name_and_ext__" directory="out" visible="false"/> | 218 <discover_datasets pattern="__name_and_ext__" directory="out" visible="false"/> |
219 <filter>split_parms['select_ftype'] == "generic"</filter> | 219 <filter>split_parms['select_ftype'] == "generic"</filter> |
220 </collection> | 220 </collection> |
221 </outputs> | 221 </outputs> |
222 <tests> | 222 <tests> |
223 <!-- 1 --> | 223 <!-- 1 --> |
224 <test> | 224 <test expect_num_outputs="1"> |
225 <param name="input" value="test.tabular" ftype="tabular"/> | 225 <param name="input" value="test.tabular" ftype="tabular"/> |
226 <param name="select_ftype" value="tabular"/> | 226 <param name="select_ftype" value="tabular"/> |
227 <param name="select_split_by" value="col"/> | 227 <param name="select_split_by" value="col"/> |
228 <param name="id_col" value="1"/> | 228 <param name="id_col" value="1"/> |
229 <param name="match_regex" value="(.*)\.mgf"/> | 229 <param name="match_regex" value="(.*)\.mgf"/> |
234 <element name="foo2.tab" file="foo2.tab" ftype="tabular"/> | 234 <element name="foo2.tab" file="foo2.tab" ftype="tabular"/> |
235 <element name="foo3.tab" file="foo3.tab" ftype="tabular"/> | 235 <element name="foo3.tab" file="foo3.tab" ftype="tabular"/> |
236 </output_collection> | 236 </output_collection> |
237 </test> | 237 </test> |
238 <!-- 2 --> | 238 <!-- 2 --> |
239 <test> | 239 <test expect_num_outputs="1"> |
240 <param name="input" value="test.tabular" ftype="tabular"/> | 240 <param name="input" value="test.tabular" ftype="tabular"/> |
241 <param name="select_ftype" value="tabular"/> | 241 <param name="select_ftype" value="tabular"/> |
242 <param name="select_split_by" value="row"/> | 242 <param name="select_split_by" value="row"/> |
243 <param name="top" value="2"/> | 243 <param name="top" value="2"/> |
244 <param name="mode" value="numnew"/> | 244 <param name="mode" value="numnew"/> |
248 <element name="test_000000.tabular" file="test_0.tabular" ftype="tabular"/> | 248 <element name="test_000000.tabular" file="test_0.tabular" ftype="tabular"/> |
249 <element name="test_000001.tabular" file="test_1.tabular" ftype="tabular"/> | 249 <element name="test_000001.tabular" file="test_1.tabular" ftype="tabular"/> |
250 </output_collection> | 250 </output_collection> |
251 </test> | 251 </test> |
252 <!-- 3 --> | 252 <!-- 3 --> |
253 <test> | 253 <test expect_num_outputs="1"> |
254 <param name="input" value="test.tabular" ftype="tabular"/> | 254 <param name="input" value="test.tabular" ftype="tabular"/> |
255 <param name="select_ftype" value="tabular"/> | 255 <param name="select_ftype" value="tabular"/> |
256 <param name="select_split_by" value="row"/> | 256 <param name="select_split_by" value="row"/> |
257 <param name="top" value="2"/> | 257 <param name="top" value="2"/> |
258 <param name="mode" value="numnew"/> | 258 <param name="mode" value="numnew"/> |
263 <element name="batch_tab_000000.tabular" file="batch_tab_0.tabular" ftype="tabular"/> | 263 <element name="batch_tab_000000.tabular" file="batch_tab_0.tabular" ftype="tabular"/> |
264 <element name="batch_tab_000001.tabular" file="batch_tab_1.tabular" ftype="tabular"/> | 264 <element name="batch_tab_000001.tabular" file="batch_tab_1.tabular" ftype="tabular"/> |
265 </output_collection> | 265 </output_collection> |
266 </test> | 266 </test> |
267 <!-- 4 --> | 267 <!-- 4 --> |
268 <test> | 268 <test expect_num_outputs="1"> |
269 <param name="input" value="test.tabular" ftype="tabular"/> | 269 <param name="input" value="test.tabular" ftype="tabular"/> |
270 <param name="select_ftype" value="tabular"/> | 270 <param name="select_ftype" value="tabular"/> |
271 <param name="select_split_by" value="row"/> | 271 <param name="select_split_by" value="row"/> |
272 <param name="top" value="2"/> | 272 <param name="top" value="2"/> |
273 <param name="mode" value="chunk"/> | 273 <param name="mode" value="chunk"/> |
278 <element name="batch_tab_000000.tabular" file="batch_tab_0.tabular" ftype="tabular"/> | 278 <element name="batch_tab_000000.tabular" file="batch_tab_0.tabular" ftype="tabular"/> |
279 <element name="batch_tab_000001.tabular" file="batch_tab_1.tabular" ftype="tabular"/> | 279 <element name="batch_tab_000001.tabular" file="batch_tab_1.tabular" ftype="tabular"/> |
280 </output_collection> | 280 </output_collection> |
281 </test> | 281 </test> |
282 <!-- 5 --> | 282 <!-- 5 --> |
283 <test> | 283 <test expect_num_outputs="1"> |
284 <param name="select_ftype" value="txt"/> | 284 <param name="select_ftype" value="txt"/> |
285 <param name="input" value="karyotype.txt" ftype="txt"/> | 285 <param name="input" value="karyotype.txt" ftype="txt"/> |
286 <param name="mode" value="numnew"/> | 286 <param name="mode" value="numnew"/> |
287 <param name="numnew" value="24"/> | 287 <param name="numnew" value="24"/> |
288 <param name="newfilenames" value="chr"/> | 288 <param name="newfilenames" value="chr"/> |
314 <element name="chr_000022.txt" file="chr_000022.txt" ftype="txt"/> | 314 <element name="chr_000022.txt" file="chr_000022.txt" ftype="txt"/> |
315 <element name="chr_000023.txt" file="chr_000023.txt" ftype="txt"/> | 315 <element name="chr_000023.txt" file="chr_000023.txt" ftype="txt"/> |
316 </output_collection> | 316 </output_collection> |
317 </test> | 317 </test> |
318 <!-- 6 --> | 318 <!-- 6 --> |
319 <test> | 319 <test expect_num_outputs="1"> |
320 <param name="input" value="psm.tabular" ftype="tabular"/> | 320 <param name="input" value="psm.tabular" ftype="tabular"/> |
321 <param name="select_ftype" value="tabular"/> | 321 <param name="select_ftype" value="tabular"/> |
322 <param name="select_split_by" value="col"/> | 322 <param name="select_split_by" value="col"/> |
323 <param name="id_col" value="10"/> | 323 <param name="id_col" value="10"/> |
324 <param name="match_regex" value="(.*)\.mgf"/> | 324 <param name="match_regex" value="(.*)\.mgf"/> |
330 <element name="file3.tab" file="file3.tab" ftype="tabular"/> | 330 <element name="file3.tab" file="file3.tab" ftype="tabular"/> |
331 <element name="file4.tab" file="file4.tab" ftype="tabular"/> | 331 <element name="file4.tab" file="file4.tab" ftype="tabular"/> |
332 </output_collection> | 332 </output_collection> |
333 </test> | 333 </test> |
334 <!-- 7 splitting of mgf --> | 334 <!-- 7 splitting of mgf --> |
335 <test> | 335 <test expect_num_outputs="1"> |
336 <param name="input" value="demo758Dacentroid.mgf" ftype="mgf"/> | 336 <param name="input" value="demo758Dacentroid.mgf" ftype="mgf"/> |
337 <param name="select_ftype" value="mgf"/> | 337 <param name="select_ftype" value="mgf"/> |
338 <param name="mode" value="numnew"/> | 338 <param name="mode" value="numnew"/> |
339 <param name="numnew" value="3"/> | 339 <param name="numnew" value="3"/> |
340 <param name="newfilenames" value="demo"/> | 340 <param name="newfilenames" value="demo"/> |
343 <element name="demo_000001.mgf" file="demo_1.mgf" ftype="mgf"/> | 343 <element name="demo_000001.mgf" file="demo_1.mgf" ftype="mgf"/> |
344 <element name="demo_000002.mgf" file="demo_2.mgf" ftype="mgf"/> | 344 <element name="demo_000002.mgf" file="demo_2.mgf" ftype="mgf"/> |
345 </output_collection> | 345 </output_collection> |
346 </test> | 346 </test> |
347 <!-- 8 splitting of fasta + desired number of files--> | 347 <!-- 8 splitting of fasta + desired number of files--> |
348 <test> | 348 <test expect_num_outputs="1"> |
349 <param name="input" value="test.fasta" ftype="fasta"/> | 349 <param name="input" value="test.fasta" ftype="fasta"/> |
350 <param name="select_ftype" value="fasta"/> | 350 <param name="select_ftype" value="fasta"/> |
351 <param name="mode" value="numnew"/> | 351 <param name="mode" value="numnew"/> |
352 <param name="numnew" value="2"/> | 352 <param name="numnew" value="2"/> |
353 <param name="newfilenames" value="test"/> | 353 <param name="newfilenames" value="test"/> |
355 <element name="test_000000.fasta" file="test_0.fasta" ftype="fasta"/> | 355 <element name="test_000000.fasta" file="test_0.fasta" ftype="fasta"/> |
356 <element name="test_000001.fasta" file="test_1.fasta" ftype="fasta"/> | 356 <element name="test_000001.fasta" file="test_1.fasta" ftype="fasta"/> |
357 </output_collection> | 357 </output_collection> |
358 </test> | 358 </test> |
359 <!-- 9 splitting of fasta + desired chunksize --> | 359 <!-- 9 splitting of fasta + desired chunksize --> |
360 <test> | 360 <test expect_num_outputs="1"> |
361 <param name="input" value="test.fasta" ftype="fasta"/> | 361 <param name="input" value="test.fasta" ftype="fasta"/> |
362 <param name="select_ftype" value="fasta"/> | 362 <param name="select_ftype" value="fasta"/> |
363 <param name="mode" value="chunk"/> | 363 <param name="mode" value="chunk"/> |
364 <param name="chunksize" value="3"/> | 364 <param name="chunksize" value="3"/> |
365 <param name="newfilenames" value="test"/> | 365 <param name="newfilenames" value="test"/> |
367 <element name="test_000000.fasta" file="test_0.fasta" ftype="fasta"/> | 367 <element name="test_000000.fasta" file="test_0.fasta" ftype="fasta"/> |
368 <element name="test_000001.fasta" file="test_1.fasta" ftype="fasta"/> | 368 <element name="test_000001.fasta" file="test_1.fasta" ftype="fasta"/> |
369 </output_collection> | 369 </output_collection> |
370 </test> | 370 </test> |
371 <!-- 10 splitting of fastq, specify desired number of files --> | 371 <!-- 10 splitting of fastq, specify desired number of files --> |
372 <test> | 372 <test expect_num_outputs="1"> |
373 <param name="input" value="test.fastq" ftype="fastq"/> | 373 <param name="input" value="test.fastq" ftype="fastq"/> |
374 <param name="select_ftype" value="fastq"/> | 374 <param name="select_ftype" value="fastq"/> |
375 <param name="mode" value="numnew"/> | 375 <param name="mode" value="numnew"/> |
376 <param name="numnew" value="2"/> | 376 <param name="numnew" value="2"/> |
377 <param name="newfilenames" value="test"/> | 377 <param name="newfilenames" value="test"/> |
381 </output_collection> | 381 </output_collection> |
382 </test> | 382 </test> |
383 <!-- 11 splitting of fastq, specify desired number of files | 383 <!-- 11 splitting of fastq, specify desired number of files |
384 same as previous test, but by specifying the number of lines per record | 384 same as previous test, but by specifying the number of lines per record |
385 explicitely (not using the preset of the python script) --> | 385 explicitely (not using the preset of the python script) --> |
386 <test> | 386 <test expect_num_outputs="1"> |
387 <param name="input" value="test.fastq" ftype="fastq"/> | 387 <param name="input" value="test.fastq" ftype="fastq"/> |
388 <param name="select_ftype" value="generic"/> | 388 <param name="select_ftype" value="generic"/> |
389 <param name="select_split_method" value="number"/> | 389 <param name="select_split_method" value="number"/> |
390 <param name="record_length" value="4"/> | 390 <param name="record_length" value="4"/> |
391 <param name="mode" value="numnew"/> | 391 <param name="mode" value="numnew"/> |
395 <element name="test_000000" file="test_0.fastq" ftype="fastq"/> | 395 <element name="test_000000" file="test_0.fastq" ftype="fastq"/> |
396 <element name="test_000001" file="test_1.fastq" ftype="fastq"/> | 396 <element name="test_000001" file="test_1.fastq" ftype="fastq"/> |
397 </output_collection> | 397 </output_collection> |
398 </test> | 398 </test> |
399 <!-- splitting of fasta w random assignment and specific filename prefix --> | 399 <!-- splitting of fasta w random assignment and specific filename prefix --> |
400 <test> | 400 <test expect_num_outputs="1"> |
401 <param name="input" value="test.fasta" ftype="fasta"/> | 401 <param name="input" value="test.fasta" ftype="fasta"/> |
402 <param name="select_ftype" value="fasta"/> | 402 <param name="select_ftype" value="fasta"/> |
403 <param name="mode" value="numnew"/> | 403 <param name="mode" value="numnew"/> |
404 <param name="numnew" value="2"/> | 404 <param name="numnew" value="2"/> |
405 <param name="newfilenames" value="rand"/> | 405 <param name="newfilenames" value="rand"/> |
409 <element name="rand_000000.fasta" file="rand_0.fasta" ftype="fasta"/> | 409 <element name="rand_000000.fasta" file="rand_0.fasta" ftype="fasta"/> |
410 <element name="rand_000001.fasta" file="rand_1.fasta" ftype="fasta"/> | 410 <element name="rand_000001.fasta" file="rand_1.fasta" ftype="fasta"/> |
411 </output_collection> | 411 </output_collection> |
412 </test> | 412 </test> |
413 <!-- splitting of fasta w batch assignment and specific filename prefix --> | 413 <!-- splitting of fasta w batch assignment and specific filename prefix --> |
414 <test> | 414 <test expect_num_outputs="1"> |
415 <param name="input" value="test.fasta" ftype="fasta"/> | 415 <param name="input" value="test.fasta" ftype="fasta"/> |
416 <param name="select_ftype" value="fasta"/> | 416 <param name="select_ftype" value="fasta"/> |
417 <param name="mode" value="numnew"/> | 417 <param name="mode" value="numnew"/> |
418 <param name="numnew" value="2"/> | 418 <param name="numnew" value="2"/> |
419 <param name="newfilenames" value="fasta_batch"/> | 419 <param name="newfilenames" value="fasta_batch"/> |
422 <element name="fasta_batch_000000.fasta" file="fasta_batch_0.fasta" ftype="fasta"/> | 422 <element name="fasta_batch_000000.fasta" file="fasta_batch_0.fasta" ftype="fasta"/> |
423 <element name="fasta_batch_000001.fasta" file="fasta_batch_1.fasta" ftype="fasta"/> | 423 <element name="fasta_batch_000001.fasta" file="fasta_batch_1.fasta" ftype="fasta"/> |
424 </output_collection> | 424 </output_collection> |
425 </test> | 425 </test> |
426 <!-- splitting of txt w default (alternating assignment) --> | 426 <!-- splitting of txt w default (alternating assignment) --> |
427 <test> | 427 <test expect_num_outputs="1"> |
428 <param name="input" value="test.tabular" ftype="txt"/> | 428 <param name="input" value="test.tabular" ftype="txt"/> |
429 <param name="select_ftype" value="txt"/> | 429 <param name="select_ftype" value="txt"/> |
430 <param name="mode" value="numnew"/> | 430 <param name="mode" value="numnew"/> |
431 <param name="numnew" value="2"/> | 431 <param name="numnew" value="2"/> |
432 <param name="newfilenames" value="test"/> | 432 <param name="newfilenames" value="test"/> |
434 <element name="test_000000.txt" file="test_0.tabular" ftype="txt" lines_diff="1"/> | 434 <element name="test_000000.txt" file="test_0.tabular" ftype="txt" lines_diff="1"/> |
435 <element name="test_000001.txt" file="test_1.tabular" ftype="txt" lines_diff="1"/> | 435 <element name="test_000001.txt" file="test_1.tabular" ftype="txt" lines_diff="1"/> |
436 </output_collection> | 436 </output_collection> |
437 </test> | 437 </test> |
438 <!-- generic-regex splitting (of txt) w default assignement (alternating) --> | 438 <!-- generic-regex splitting (of txt) w default assignement (alternating) --> |
439 <test> | 439 <test expect_num_outputs="1"> |
440 <param name="input" value="test.tabular" ftype="txt"/> | 440 <param name="input" value="test.tabular" ftype="txt"/> |
441 <param name="select_ftype" value="generic"/> | 441 <param name="select_ftype" value="generic"/> |
442 <param name="select_split_method" value="regex"/> | 442 <param name="select_split_method" value="regex"/> |
443 <param name="generic_regex" value="^.*"/> | 443 <param name="generic_regex" value="^.*"/> |
444 <param name="mode" value="numnew"/> | 444 <param name="mode" value="numnew"/> |
448 <element name="test_000000" file="test_0.tabular" ftype="txt" lines_diff="1"/> | 448 <element name="test_000000" file="test_0.tabular" ftype="txt" lines_diff="1"/> |
449 <element name="test_000001" file="test_1.tabular" ftype="txt" lines_diff="1"/> | 449 <element name="test_000001" file="test_1.tabular" ftype="txt" lines_diff="1"/> |
450 </output_collection> | 450 </output_collection> |
451 </test> | 451 </test> |
452 <!-- generic-regex splitting (of a fasta) w random assignment --> | 452 <!-- generic-regex splitting (of a fasta) w random assignment --> |
453 <test> | 453 <test expect_num_outputs="1"> |
454 <param name="input" value="test.fasta" ftype="fasta"/> | 454 <param name="input" value="test.fasta" ftype="fasta"/> |
455 <param name="select_ftype" value="generic"/> | 455 <param name="select_ftype" value="generic"/> |
456 <param name="select_split_method" value="regex"/> | 456 <param name="select_split_method" value="regex"/> |
457 <param name="generic_regex" value="^>.*"/> | 457 <param name="generic_regex" value="^>.*"/> |
458 <param name="mode" value="numnew"/> | 458 <param name="mode" value="numnew"/> |
464 <element name="rand_000000" file="rand_0.fasta" ftype="fasta"/> | 464 <element name="rand_000000" file="rand_0.fasta" ftype="fasta"/> |
465 <element name="rand_000001" file="rand_1.fasta" ftype="fasta"/> | 465 <element name="rand_000001" file="rand_1.fasta" ftype="fasta"/> |
466 </output_collection> | 466 </output_collection> |
467 </test> | 467 </test> |
468 <!-- sdf + specify desired number of files --> | 468 <!-- sdf + specify desired number of files --> |
469 <test> | 469 <test expect_num_outputs="1"> |
470 <param name="input" value="3_molecules.sdf" ftype="sdf"/> | 470 <param name="input" value="3_molecules.sdf" ftype="sdf"/> |
471 <param name="select_ftype" value="sdf"/> | 471 <param name="select_ftype" value="sdf"/> |
472 <param name="mode" value="numnew"/> | 472 <param name="mode" value="numnew"/> |
473 <param name="numnew" value="10"/> | 473 <param name="numnew" value="10"/> |
474 <param name="newfilenames" value="mol"/> | 474 <param name="newfilenames" value="mol"/> |
478 <element name="mol_000001.sdf" file="mol_1.sdf" ftype="sdf"/> | 478 <element name="mol_000001.sdf" file="mol_1.sdf" ftype="sdf"/> |
479 <element name="mol_000002.sdf" file="mol_2.sdf" ftype="sdf"/> | 479 <element name="mol_000002.sdf" file="mol_2.sdf" ftype="sdf"/> |
480 </output_collection> | 480 </output_collection> |
481 </test> | 481 </test> |
482 <!-- sdf + specify desired number of records per file (chunksize) --> | 482 <!-- sdf + specify desired number of records per file (chunksize) --> |
483 <test> | 483 <test expect_num_outputs="1"> |
484 <param name="input" value="3_molecules.sdf" ftype="sdf"/> | 484 <param name="input" value="3_molecules.sdf" ftype="sdf"/> |
485 <param name="select_ftype" value="sdf"/> | 485 <param name="select_ftype" value="sdf"/> |
486 <param name="mode" value="chunk"/> | 486 <param name="mode" value="chunk"/> |
487 <param name="chunksize" value="1"/> | 487 <param name="chunksize" value="1"/> |
488 <param name="newfilenames" value="mol"/> | 488 <param name="newfilenames" value="mol"/> |
492 <element name="mol_000001.sdf" file="mol_1.sdf" ftype="sdf"/> | 492 <element name="mol_000001.sdf" file="mol_1.sdf" ftype="sdf"/> |
493 <element name="mol_000002.sdf" file="mol_2.sdf" ftype="sdf"/> | 493 <element name="mol_000002.sdf" file="mol_2.sdf" ftype="sdf"/> |
494 </output_collection> | 494 </output_collection> |
495 </test> | 495 </test> |
496 <!-- test split_after (by splitting fasta files after non-header lines) --> | 496 <!-- test split_after (by splitting fasta files after non-header lines) --> |
497 <test> | 497 <test expect_num_outputs="1"> |
498 <param name="input" value="test.fasta" ftype="fasta"/> | 498 <param name="input" value="test.fasta" ftype="fasta"/> |
499 <param name="select_ftype" value="generic"/> | 499 <param name="select_ftype" value="generic"/> |
500 <param name="select_split_method" value="regex"/> | 500 <param name="select_split_method" value="regex"/> |
501 <param name="generic_regex" value="^[^>].*"/> | 501 <param name="generic_regex" value="^[^>].*"/> |
502 <param name="split_after" value="true"/> | 502 <param name="split_after" value="true"/> |
506 <param name="allocate" value="random"/> | 506 <param name="allocate" value="random"/> |
507 <param name="seed" value="1010"/> | 507 <param name="seed" value="1010"/> |
508 <output_collection name="list_output_generic" type="list"> | 508 <output_collection name="list_output_generic" type="list"> |
509 <element name="rand_000000" file="rand_0.fasta" ftype="fasta"/> | 509 <element name="rand_000000" file="rand_0.fasta" ftype="fasta"/> |
510 <element name="rand_000001" file="rand_1.fasta" ftype="fasta"/> | 510 <element name="rand_000001" file="rand_1.fasta" ftype="fasta"/> |
511 </output_collection> | |
512 </test> | |
513 <test expect_num_outputs="1"> | |
514 <param name="input" value="test.tabular" ftype="tabular"/> | |
515 <param name="select_ftype" value="tabular"/> | |
516 <param name="select_split_by" value="row"/> | |
517 <param name="top" value="2"/> | |
518 <param name="mode" value="chunk"/> | |
519 <param name="chunksize" value="1"/> | |
520 <param name="allocate" value="batch"/> | |
521 <output_collection name="list_output_tab" type="list"> | |
522 <element name="split_file_000000.tabular" file="split_file_0.tabular" ftype="tabular"/> | |
523 <element name="split_file_000001.tabular" file="split_file_1.tabular" ftype="tabular"/> | |
524 <element name="split_file_000002.tabular" file="split_file_2.tabular" ftype="tabular"/> | |
525 <element name="split_file_000003.tabular" file="split_file_3.tabular" ftype="tabular"/> | |
511 </output_collection> | 526 </output_collection> |
512 </test> | 527 </test> |
513 </tests> | 528 </tests> |
514 <help><![CDATA[ | 529 <help><![CDATA[ |
515 **Split file into a dataset collection** | 530 **Split file into a dataset collection** |