annotate tab2csv.xml @ 1:f1b7d0032530 draft default tip

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