|
0
|
1 <tool id="xlsx2tab_R" name="XLSX sheet to Tabular" version="0.1">
|
|
|
2 <requirements>
|
|
|
3 <requirement type="package" version="3.2.1">R</requirement>
|
|
|
4 <requirement type="package" version="1.1.0">r-readxl</requirement>
|
|
|
5 </requirements>
|
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
|
3
|
7 cp '$input1' input.xlsx &&
|
|
|
8 Rscript '$__tool_directory__/xlsx2tab.R' input.xlsx '$sheet' '$output' ]]>
|
|
0
|
9 </command>
|
|
|
10 <inputs>
|
|
|
11 <param format="xlsx" name="input1" type="data" label="XLSX file"/>
|
|
|
12 <param name="sheet" type="text" label="Excel sheet name" value="biodiv_data">
|
|
|
13 <sanitizer sanitize="False"/>
|
|
|
14 </param>
|
|
|
15
|
|
|
16 </inputs>
|
|
|
17
|
|
|
18 <outputs>
|
|
|
19 <data format="tabular" name="output" from_work_dir="out.tabular" />
|
|
|
20 </outputs>
|
|
|
21
|
|
|
22 <tests>
|
|
|
23 <test>
|
|
|
24 <param name="input1" value="example_csv.csv"/>
|
|
|
25 <param name="sheet" value=","/>
|
|
|
26 <output name="output" file="out.tabular"/>
|
|
|
27 </test>
|
|
|
28 </tests>
|
|
|
29
|
|
|
30 <help>
|
|
|
31 **What it does**
|
|
|
32
|
|
|
33 Extract a sheet from XLSX file to a tabular file.
|
|
|
34
|
|
|
35
|
|
|
36 ------
|
|
|
37
|
|
|
38 **Example**
|
|
|
39
|
|
|
40 Input XLSX sheet
|
|
|
41
|
|
|
42
|
|
|
43
|
|
|
44 Output tabular :
|
|
|
45
|
|
|
46 "John" "Smith" "2 mySteet, myCity"
|
|
|
47
|
|
|
48 "François" "LeFrançais" "1 rue du Général, Paris"
|
|
|
49
|
|
|
50 "Other" "Random" "Stuff, stuff, stuff"
|
|
|
51
|
|
|
52 ------
|
|
|
53
|
|
|
54 **Arguments**
|
|
|
55
|
|
|
56 Input : xlsx file.
|
|
|
57
|
|
|
58
|
|
|
59
|
|
|
60
|
|
|
61 </help>
|
|
|
62 </tool>
|