-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdiv_index.xml
83 lines (71 loc) · 2.46 KB
/
div_index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<tool id="cb_div" name="Diversity" version="@VERSION@" profile = "20.01">
<description>indicators</description>
<macros>
<import>macro.xml</import>
</macros>
<expand macro="cb_requirements">
<requirement type="package" version="3.3.6">r-ggplot2</requirement>
<requirement type="package" version="1.7_20">r-ade4</requirement>
<requirement type="package" version="2.2">r-adiv</requirement>
</expand>
<required_files>
<include type="literal" path="test-data/Clean_Rdata.Rdata"/>
<include type="literal" path="div_index.r"/>
</required_files>
<command detect_errors="exit_code"><![CDATA[
Rscript
'$__tool_directory__/div_index.r'
'$input_data'
'$output_div'
'$output_rdata'
'$plots'
]]>
</command>
<inputs>
<param name="input_data" type="data" format="data" label="Input Clean data"/>
</inputs>
<outputs>
<data name="output_div" from_work_dir="Valeurs_stat.tabular" format="tabular" label="Diversity index"/>
<data name="output_rdata" from_work_dir="div_df.RDS" format="data" label="Diversity Rdata"/>
<collection type="list" name="plots" label="Diversity plot">
<discover_datasets pattern="(?P<designation>.+)\.png" visible="false" format="png"/>
</collection>
</outputs>
<tests>
<test expect_num_outputs="3">
<param name="input_data" value="Clean_Rdata.data"/>
<output name="output_div">
<assert_contents>
<has_n_columns n="20"/>
</assert_contents>
</output>
<output name="output_rdata">
<assert_contents>
<has_text text="no"/>
</assert_contents>
</output>
<output_collection name="plots" type="list" count="14"/>
</test>
</tests>
<help><![CDATA[
====================
Diversity indicators
====================
**What it does**
Calculates the diversity indicators (Shannon, Simpson, ...).
**Input description**
Clean Rdata file from the previous tool Dissimilarity.
+----------------+
| Rdata |
+================+
| Clean data |
+----------------+
| ... |
+----------------+
**Output**
- 1 .RDS file
- 1 tabular file for all the diversity indices
- Multiple png plots one for each indices
]]> </help>
<expand macro="cb_bibref"/>
</tool>