Mercurial > repos > ylebras > xlsx2tab
comparison xlsx2tab.xml @ 1:bcd7b59c1251 draft default tip
Uploaded
| author | ylebras |
|---|---|
| date | Mon, 03 Dec 2018 16:23:41 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:0f319ef24434 | 1:bcd7b59c1251 |
|---|---|
| 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[ | |
| 7 Rscript '$__tool_directory__/xlsx2tab.R' '$input1' '$sheet' '$output' ]]> | |
| 8 </command> | |
| 9 <inputs> | |
| 10 <param format="xlsx" name="input1" type="data" label="XLSX file"/> | |
| 11 <param name="sheet" type="text" label="Excel sheet name" value="biodiv_data"> | |
| 12 <sanitizer sanitize="False"/> | |
| 13 </param> | |
| 14 | |
| 15 </inputs> | |
| 16 | |
| 17 <outputs> | |
| 18 <data format="tabular" name="output" from_work_dir="out.tabular" /> | |
| 19 </outputs> | |
| 20 | |
| 21 <tests> | |
| 22 <test> | |
| 23 <param name="input1" value="example_csv.csv"/> | |
| 24 <param name="sheet" value=","/> | |
| 25 <output name="output" file="out.tabular"/> | |
| 26 </test> | |
| 27 </tests> | |
| 28 | |
| 29 <help> | |
| 30 **What it does** | |
| 31 | |
| 32 Extract a sheet from XLSX file to a tabular file. | |
| 33 | |
| 34 | |
| 35 ------ | |
| 36 | |
| 37 **Example** | |
| 38 | |
| 39 Input XLSX sheet | |
| 40 | |
| 41 | |
| 42 | |
| 43 Output tabular : | |
| 44 | |
| 45 "John" "Smith" "2 mySteet, myCity" | |
| 46 | |
| 47 "François" "LeFrançais" "1 rue du Général, Paris" | |
| 48 | |
| 49 "Other" "Random" "Stuff, stuff, stuff" | |
| 50 | |
| 51 ------ | |
| 52 | |
| 53 **Arguments** | |
| 54 | |
| 55 Input : xlsx file. | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 </help> | |
| 61 </tool> |
