comparison convert.xml @ 0:2c55b0752ea7 draft default tip

"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
author nml
date Tue, 19 May 2020 17:25:20 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2c55b0752ea7
1 <tool id="csvtk_convert" name="csvtk-convert" version="@VERSION@+@GALAXY_VERSION@">
2 <description> csv to tab or tab to csv</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="version_cmd" />
8 <command detect_errors="exit_code"><![CDATA[
9
10 ###################
11 ## Start Command ##
12 ###################
13
14 #if $in_1.is_of_type("tabular"):
15 csvtk tab2csv --num-cpus "\${GALAXY_SLOTS:-1}"
16
17 #else:
18 csvtk csv2tab --num-cpus "\${GALAXY_SLOTS:-1}"
19
20 #end if
21
22 ## Add additional flags as specified ##
23 #######################################
24 $global_param.illegal_rows
25 $global_param.empty_rows
26 $global_param.header
27 $global_param.lazy_quotes
28
29 ## Set Input ##
30 ###############
31 '$in_1'
32
33 ## To output ##
34 ###############
35 #if $in_1.is_of_type("tabular")
36 > converted.csv
37
38 #else:
39 > converted.tsv
40
41 #end if
42
43 ]]></command>
44 <inputs>
45 <expand macro="singular_input" />
46 <expand macro="global_parameters" />
47 </inputs>
48 <outputs>
49 <data auto_format="true" name="converted" from_work_dir="converted*" label="${in_1.name} converted" />
50 </outputs>
51 <tests>
52 <test>
53 <param name="in_1" value="XY_with_break.tabular" />
54 <section name="global_param">
55 <param name="empty_rows" value="true" />
56 </section>
57 <output name="converted" file="XY_converted.csv" />
58 </test>
59 <test>
60 <param name="in_1" value="XY_with_break.csv" />
61 <section name="global_param">
62 <param name="empty_rows" value="true" />
63 </section>
64 <output name="converted" file="XY_converted.tsv" />
65 </test>
66 </tests>
67 <help><![CDATA[
68
69 Csvtk - Convert Help
70 --------------------
71
72 Info
73 ####
74
75 Csvtk convert converts csv files to tsv files and vice versa.
76
77 .. class:: note
78
79 Output CSV data may not be autodetected properly to CSV format and you may have to manually change the format after.
80
81
82 @HELP_INPUT_DATA@
83
84
85 Usage
86 #####
87
88 To run csvtk-convert, all you need is a valid (as defined above) CSV or TSV file
89
90 ----
91
92 @HELP_COLUMNS@
93
94
95 @HELP_END_STATEMENT@
96
97
98 ]]></help>
99 <expand macro="citations" />
100 </tool>