comparison cb_dissimilarity.xml @ 0:7e6cc3da1189 draft

planemo upload for repository https://github.com/Marie59/champ_blocs commit 8b6fcddd239979c11977472de6cbb349690758c8
author ecology
date Fri, 02 Dec 2022 16:13:18 +0000
parents
children ffaa9a71b2d2
comparison
equal deleted inserted replaced
-1:000000000000 0:7e6cc3da1189
1 <tool id="cb_dissim" name="Dissimilarity" version="@VERSION@" profile = "20.01">
2 <description>indicator</description>
3 <macros>
4 <import>macro.xml</import>
5 </macros>
6 <expand macro="cb_requirements">
7 <requirement type="package" version="2.16">r-rmarkdown</requirement>
8 <requirement type="package" version="0.2.4">r-officedown</requirement>
9 <requirement type="package" version="2.6_2">r-vegan</requirement>
10 <requirement type="package" version="1.3.2">r-tidyverse</requirement>
11 <requirement type="package" version="3.3.6">r-ggplot2</requirement>
12 </expand>
13 <required_files>
14 <include type="literal" path="test-data/champbloc_qecb.csv"/>
15 <include type="literal" path="test-data/ficheterrain.csv"/>
16 <include type="literal" path="cb_dissimilarity.r"/>
17 </required_files>
18 <command detect_errors="exit_code"><![CDATA[
19 Rscript
20 '$__tool_directory__/cb_dissimilarity.r'
21 '$fiche_val'
22 '$input_data'
23 '$choice'
24 '$choice_date'
25 '$output_qecb'
26 '$output_eco'
27 '$output_matri'
28 '$plots_bf'
29 '$plots_bm'
30 '$plots'
31 ]]>
32 </command>
33 <inputs>
34 <expand macro="cb_input"/>
35 <param name="input_data" type="data" format="data" label="Input champbloc_qecb.csv"/>
36 <param name="choice" type="select" display="radio" label="Do you have data after the year 2021?">
37 <option value="N">No</option>
38 <option value="Y">Yes</option>
39 </param>
40 <param name="choice_date" type="integer" value="2021" label="Until when do you have data (write only the YEAR) ?" help="Example write : 2021 "/>
41 </inputs>
42 <outputs>
43 <data name="output_qecb" from_work_dir="qecbnato0.RDS" format="Rdata" label="Clean Rdata"/>
44 <data name="output_eco" from_work_dir="bret_egmp_basq_qecb.RDS" format="Rdata" label="Bret Rdata"/>
45 <data name="output_matri" from_work_dir="matri_full.RDS" format="Rdata" label="Matrice full Rdata"/>
46 <collection type="list" name="plots_bf" label="Bloc fixe et bloc mobile face sup plot">
47 <discover_datasets pattern="bm(?P&lt;designation&gt;.+)\.png" visible="false" format="png"/>
48 </collection>
49 <collection type="list" name="plots_bm" label="Bloc mobile face sup et face inf plot">
50 <discover_datasets pattern="fs(?P&lt;designation&gt;.+)\.png" visible="false" format="png"/>
51 </collection><!--&lowbar; pour underscore-->
52 <collection type="list" name="plots" label="Distance plot">
53 <discover_datasets pattern="distance(?P&lt;designation&gt;.+)\.png" visible="false" format="png"/>
54 </collection>
55 </outputs>
56 <tests>
57 <test expect_num_outputs="6">
58 <param name="fiche_val" value="ficheterrain.csv"/>
59 <param name="input_data" value="champbloc_qecb.csv"/>
60 <param name="choice" value="N"/>
61 <param name="choice_date" value="2021"/>
62 <output name="output_qecb">
63 <assert_contents>
64 <has_text text="E6P"/>
65 </assert_contents>
66 </output>
67 <output name="output_eco">
68 <assert_contents>
69 <has_text text="6t"/>
70 </assert_contents>
71 </output>
72 <output name="output_matri">
73 <assert_contents>
74 <has_text text="6t"/>
75 </assert_contents>
76 </output>
77 <output_collection name="plots_bf" type="list" count="23"/>
78 <output_collection name="plots_bm" type="list" count="23"/>
79 <output_collection name="plots" type="list" count="2"/>
80 </test>
81 </tests>
82 <help><![CDATA[
83 =======================
84 Dissimilarity indicator
85 =======================
86
87
88 **What it does**
89
90 This tool computes the the Boulder Field Ecological Quality Index (BFEQ) based on biotic and abiotic variables that respond to the disturbance "boulder turning".
91
92 **Input description**
93
94 One input files in Rdata format.
95
96 +----------------+
97 | Rdata |
98 +================+
99 | clean Rdata |
100 +----------------+
101 | ... |
102 +----------------+
103
104
105 **Output**
106
107 - .RDS file 1 of them to use as an input for diversity index
108 - Multiple png plots one for each of the locations
109
110
111
112 ]]> </help>
113 <expand macro="cb_bibref"/>
114 </tool>