0
|
1 <tool id="Rdata_exctract" name="Rdata parser" version="0.1">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="1.20.0">r-getopt</requirement>
|
|
4 <requirement type="package" version="7.0">readline</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
|
7 mkdir outputs &&
|
|
8 Rscript '$__tool_directory__/rdata_extractor.R' '$rdata' $selectedattributes '$summary' '$other' '$bind_dataframe'
|
|
9 ]]>
|
|
10 </command>
|
|
11 <inputs>
|
|
12 <param name="rdata" type="data" label="Rdata file to explore" format="rdata"/>
|
|
13 <param name="rdata_attributes" type="data" label="File with .Rdata content details" format="tabular"/>
|
|
14
|
|
15 <param name="selectedattributes" label="Select which attribute(s) you want to extract" type="select" display="checkboxes" multiple="true">
|
|
16 <options from_dataset="rdata_attributes">
|
|
17 <column name="value" index="0"/>
|
|
18 </options>
|
|
19 </param>
|
|
20 <param name="bind_dataframe" label="Bind variables in a single tabular when its possible" type="boolean" truevalue="bind" falsevalue="nobind" checked="true"/>
|
|
21 </inputs>
|
|
22 <outputs>
|
|
23 <data name="summary" from_work_dir="summary.tabular" format="tabular" label="Summary"/>
|
|
24 <data name="other">
|
|
25 <discover_datasets pattern="__designation_and_ext__" visible="true" directory="outputs"/>
|
|
26 </data>
|
|
27 </outputs>
|
|
28 <help><![CDATA[
|
|
29
|
|
30 .. class:: infomark
|
|
31
|
|
32 ==========================
|
|
33 Rdata parser
|
|
34 ==========================
|
|
35 **What it does**
|
|
36
|
|
37
|
|
38 The Rdata parser tool allows to extract informations from a binary R file in .RData format.
|
|
39
|
|
40
|
|
41 It produces a summary file and extract the selected dimensions.
|
|
42
|
|
43 More informations concerning R Data format and save / load functions can be found here: http://www.sthda.com/english/wiki/saving-data-into-r-data-format-rds-and-rdata>.
|
|
44
|
|
45 More informations concerning R Data format and save / load functions can be found here: http://www.sthda.com/english/wiki/saving-data-into-r-data-format-rds-and-rdata>.
|
|
46
|
|
47
|
|
48 |
|
|
49
|
|
50 **How to use it**
|
|
51
|
|
52 First use the Rdata reader tool to get the list of dimensions available in the binary file.
|
|
53
|
|
54 Use the reader tool output to select the dimension(s) you want to extract.
|
|
55
|
|
56 ]]></help>
|
|
57 </tool>
|