Mercurial > repos > ecology > stoc_trend_indic
comparison temp_analysis_indic.xml @ 0:916b49d725ba draft
"planemo upload for repository https://github.com/Alanamosse/Galaxy-E/tree/stoctool/tools/stoc commit f82f897ab22464de40c878e17616333855814e25"
author | ecology |
---|---|
date | Thu, 02 Apr 2020 03:35:29 -0400 |
parents | |
children | 5c244408661f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:916b49d725ba |
---|---|
1 <tool id="stoceps_trend_indic" name="Temporal trend indicator" version="@VERSION@"> | |
2 <description>using GlmmTMB or GAM models</description> | |
3 <macros> | |
4 <import>stoceps_macros.xml</import> | |
5 </macros> | |
6 <expand macro="temp_indic_requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 Rscript | |
9 '$__tool_directory__/FunctExeTemporalAnalysisofIndicatorTrait.r' | |
10 '$input' | |
11 '$inputtabSpecies' | |
12 '$inputspeciesindic' | |
13 '$inputcoord' | |
14 #if $index=='csi' | |
15 'ssi' | |
16 'csi' | |
17 #elif $index=='cti' | |
18 'sti' | |
19 'cti' | |
20 #else | |
21 'stri' | |
22 'ctri' | |
23 #end if | |
24 #if $settings.advanced=='advanced' | |
25 $settings.method '' 'idindicatortrait' | |
26 $settings.smooth_plot | |
27 $settings.compute_ic | |
28 #else | |
29 'gam' '' 'idindicatortrait' | |
30 'TRUE' | |
31 'TRUE' | |
32 #end if | |
33 '$__tool_directory__/FunctTrendSTOCGalaxy.r' | |
34 ]]> | |
35 </command> | |
36 <inputs> | |
37 <expand macro="stoceps_input_filtered"/> | |
38 <param name="inputcoord" type="data" format="tabular" label="Coordinates of sites" help="Input localization tabular file, with 3 columns (site ID, latitude, longitude)." /> | |
39 <param name="inputtabSpecies" type="data" format="tabular" label="Species file" help="Input species tabular file, with 5 columns (species ID, species name, species scientific name, specialization status)." /> | |
40 <param name="inputspeciesindic" type="data" format="tabular" label="indicators info file" help="Input indicator info tabular file, with a `species ID` column and at least one index column (named `ssi` or `sti` or `stri`)." /> | |
41 <param name="index" type="select" help="Available index" label="Chose the index you want to compute"> | |
42 <option selected="true" value="csi">CSI</option> | |
43 <option value="cti">CTI</option> | |
44 <option value="ctri">CTRI</option> | |
45 </param> | |
46 <conditional name="settings"> | |
47 <expand macro="stoceps_advanced_params_select"/> | |
48 <when value="advanced"> | |
49 <param name="smooth_plot" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="yes" label="Smooth visualization."/> | |
50 <param name="method" type="select" help="Available methods are GlmmTMB and Gam" label="Chose the model method"> | |
51 <option selected="true" value="glmmtmb">GlmmTMB</option> | |
52 <option value="gam">Gam</option> | |
53 </param> | |
54 <expand macro="stoceps_compute_ic"/> | |
55 </when> | |
56 </conditional> | |
57 </inputs> | |
58 <outputs> | |
59 <data name="output_tab_gammcomplet" from_work_dir="Output/csi_gammCOMPLET_France.tabular" format="tabular" label="GAM - Temp trends all data - on ${on_string}"> | |
60 <expand macro="stoceps_filter_gam"/> | |
61 </data> | |
62 <data name="output_tab_gam_annee" from_work_dir="Output/csi_gammParannee_France.tabular" format="tabular" label="GAM - Temp trends per year - on ${on_string}"> | |
63 <expand macro="stoceps_filter_gam"/> | |
64 </data> | |
65 <data name="output_plot_carre" from_work_dir="Output/figcsi_carre_France.png" format="png" label="GAM - Temp trends plot on ${on_string}"> | |
66 <expand macro="stoceps_filter_gam"/> | |
67 </data> | |
68 <data name="output_plot__gam_csiplot" from_work_dir="Output/figcsi_plotFrance.png" format="png" label="GAM - Temp trends plot on ${on_string}"> | |
69 <expand macro="stoceps_filter_gam"/> | |
70 </data> | |
71 <data name="output_tab_gam_smoothed" from_work_dir="Output/csi_gammsmoothFrance.tabular" format="tabular" label="GAM - Temp trends smoothed data on ${on_string}"> | |
72 <expand macro="stoceps_filter_gam"/> | |
73 </data> | |
74 | |
75 <data name="output_plot_glmmtb_csiplot" from_work_dir="Output/csi_glmmTMB_France.png" format="png" label="GlmmTMB - Temp trends plot on ${on_string}"> | |
76 <expand macro="stoceps_filter_glmmtmb"/> | |
77 </data> | |
78 <data name="output_tab_glmmtb_annee" from_work_dir="Output/ggdata_csiFrance.tabular" format="tabular" label="GlmmTMB - Temp trends per year - on ${on_string}"> | |
79 <expand macro="stoceps_filter_glmmtmb"/> | |
80 </data> | |
81 <data name="output_tab_glmmtb_gammcomplet" from_work_dir="Output/GlmmTMB_coefficient_csiFrance.tabular" format="tabular" label="GlmmTMB - Temp trends per year - on ${on_string}"> | |
82 <expand macro="stoceps_filter_glmmtmb"/> | |
83 </data> | |
84 </outputs> | |
85 <tests> | |
86 <test> | |
87 <param name="input" value="data_FrenchBBS_squarre_dataSTOCallSp_France_trend_2001_2017_ALAARV-PARCAE_2001_2018.tabular"/> | |
88 <param name="inputcoord" value="coordCarreSTOCfaux.tabular"/> | |
89 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/> | |
90 <param name="inputtabSpecies" value="tabSpecies.csv"/> | |
91 <param name="advanced" value="advanced"/> | |
92 <param name="smooth_plot" value="TRUE"/> | |
93 <param name="method" value="gam"/> | |
94 <param name="compute_ic" value="FALSE"/> | |
95 <output name="output_tab_gammcomplet"> | |
96 <assert_contents> | |
97 <has_n_lines n="20"/> | |
98 <has_size value="3500" delta="100"/> | |
99 </assert_contents> | |
100 </output> | |
101 <output name="output_tab_gam_annee"> | |
102 <assert_contents> | |
103 <has_n_lines n="19"/> | |
104 <has_size value="2400" delta="100"/> | |
105 </assert_contents> | |
106 </output> | |
107 <output name="output_tab_gam_smoothed"> | |
108 <assert_contents> | |
109 <has_n_lines n="19"/> | |
110 <has_size value="1200" delta="50"/> | |
111 </assert_contents> | |
112 </output> | |
113 <output name="output_plot_carre"> | |
114 <assert_contents> | |
115 <has_text text="PNG"/> | |
116 </assert_contents> | |
117 </output> | |
118 <output name="output_plot__gam_csiplot"> | |
119 <assert_contents> | |
120 <has_text text="PNG"/> | |
121 </assert_contents> | |
122 </output> | |
123 </test> | |
124 <test> | |
125 <param name="input" value="Datafilteredfortrendanalysis.tabular"/> | |
126 <param name="inputcoord" value="coordCarreSTOCfaux.tabular"/> | |
127 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/> | |
128 <param name="inputtabSpecies" value="tabSpecies.csv"/> | |
129 <param name="advanced" value="advanced"/> | |
130 <param name="smooth_plot" value="FALSE"/> | |
131 <param name="method" value="glmmtmb"/> | |
132 <param name="compute_ic" value="TRUE"/> | |
133 <output name="output_plot_glmmtb_csiplot"> | |
134 <assert_contents> | |
135 <has_text text="PNG"/> | |
136 </assert_contents> | |
137 </output> | |
138 <output name="output_tab_glmmtb_annee"> | |
139 <assert_contents> | |
140 <has_n_lines n="18"/> | |
141 <has_size value="1400" delta="50"/> | |
142 </assert_contents> | |
143 </output> | |
144 <output name="output_tab_glmmtb_gammcomplet"> | |
145 <assert_contents> | |
146 <has_n_lines n="19"/> | |
147 <has_size value="2900" delta="100"/> | |
148 </assert_contents> | |
149 </output> | |
150 </test> | |
151 </tests> | |
152 <help><![CDATA[ | |
153 ================================================= | |
154 STOC Temporal population trend indicator | |
155 ================================================= | |
156 | |
157 **What it does** | |
158 | |
159 Compute and plot time variation of indicator or mean trait values of communities. | |
160 | |
161 CSI Temporal analysis indicator | |
162 This script computes the indicator csi, cti and ctri per year and site, wich also correspond to a community weighted mean (CWM), and analyse its temporal evolution trend and create graphical vizualisation. | |
163 As indicator you can thus use also a trait. | |
164 | |
165 | | |
166 | |
167 **Input description** | |
168 | |
169 A tabular file with count data including one column for the abundance, one column indicating the species, one indicating the site and one indicating the year | |
170 that could be extracted from the STOC on demand: romain.lorrilliere@mnhn.fr | |
171 | |
172 IMPORTANT: The tabular file with the count data should not include zero count because this will biais the estimation of the weighted mean. | |
173 In the same line, the species trait data should be complete or you should remove the species without trait value from your count data file. | |
174 | |
175 One tabular species file, with a `species ID` column and species names. | |
176 | |
177 One tabular file with trait data including at least one column with the species name or ID (the one used in the count data file) and one column with the trait value for each species (named `ssi` or `sti` or `stri`). For the CSI indicator notably (community specialization index), this should be the ssi (species specialization index). | |
178 | |
179 One tabular file with coordinates in latitude and longitude (one column for each) including also the site ID (the one used in the count data file) | |
180 | |
181 | | |
182 | |
183 **Output** | |
184 | |
185 Gam method :: | |
186 | |
187 - Two tabulars that details computed indicator per year and globaly and one optional and additional table with the smoothed data. | |
188 | |
189 - One plot that show trends across years and one optional and additional plot with the smooth method. | |
190 | |
191 | | |
192 | |
193 GlmmTMB method :: | |
194 | |
195 - Two tabulars that details computed indicator per year and globaly. | |
196 | |
197 - A plot that show trends across years. | |
198 | |
199 | |
200 | | |
201 | |
202 **Source** | |
203 | |
204 UnPublished script available at http://www.vigienature.fr/sites/vigienature/files/atoms/files/analysestoceps_0.zip | |
205 and the first version written by Romain Lorrilliere | |
206 | |
207 ]]></help> | |
208 <expand macro="stoceps_bibref" /> | |
209 </tool> |