comparison tab2csv.xml @ 0:659820e2aa61 draft

Uploaded
author mnhn65mo
date Wed, 08 Aug 2018 06:23:04 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:659820e2aa61
1 <tool id="tab2csv_R" name="Tabular to CSV" version="0.1">
2 <requirements>
3 <requirement type="package" version="3.2.1">R</requirement>
4 </requirements>
5 <command detect_errors="exit_code"><![CDATA[
6 Rscript '$__tool_directory__/tab2csv.R' '$input1' '$sep' '$header' '$output' ]]>
7 </command>
8 <inputs>
9 <param format="tabular" name="input1" type="data" label="tabular file"/>
10 <param name="sep" type="text" label="output csv Separator" value=",">
11 <sanitizer sanitize="False"/>
12 </param>
13 <param name="header" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Header in file"/>
14
15 </inputs>
16
17 <outputs>
18 <data format="csv" name="output" from_work_dir="out.csv" />
19 </outputs>
20
21 <tests>
22 <test>
23 <param name="input1" value="example_tab.tabular"/>
24 <param name="sep" value=","/>
25 <param name="header" value="FALSE"/>
26 <output name="output" file="out.csv"/>
27 </test>
28 </tests>
29
30 <help>
31 **What it does**
32
33 Convert a tabular file to a CSV.
34
35 Transform the tabs to the chosen separator. It is important to specify if the file has a header line.
36
37 ------
38
39 **Example**
40
41 Input tabular :
42
43 "John" "Smith" "2 mySteet, myCity"
44
45 "François" "LeFrançais" "1 rue du Général, Paris"
46
47 "Other" "Random" "Stuff, stuff, stuff"
48
49
50 Output CSV :
51
52 "John","Smith","2 mySteet, myCity"
53
54 "François","LeFrançais","1 rue du Général, Paris"
55
56 "Other","Random","Stuff, stuff, stuff"
57
58
59
60
61 ------
62
63 **Arguments**
64
65 Input : tabular file.
66
67 Separator : default is ",".
68
69 Header : True/False.
70
71
72 </help>
73 </tool>