comparison temp_analysis_indic.xml @ 1:5c244408661f draft default tip

"planemo upload for repository https://github.com/Alanamosse/Galaxy-E/tree/stoctool/tools/stoc commit d49a4da1ffac1f33a15fdb7ae98827d0034a7879"
author ecology
date Mon, 11 May 2020 17:54:02 -0400
parents 916b49d725ba
children
comparison
equal deleted inserted replaced
0:916b49d725ba 1:5c244408661f
8 Rscript 8 Rscript
9 '$__tool_directory__/FunctExeTemporalAnalysisofIndicatorTrait.r' 9 '$__tool_directory__/FunctExeTemporalAnalysisofIndicatorTrait.r'
10 '$input' 10 '$input'
11 '$inputtabSpecies' 11 '$inputtabSpecies'
12 '$inputspeciesindic' 12 '$inputspeciesindic'
13 '$inputcoord'
14 #if $index=='csi' 13 #if $index=='csi'
15 'ssi' 14 'ssi'
16 'csi' 15 'csi'
17 #elif $index=='cti' 16 #elif $index=='cti'
18 'sti' 17 'sti'
19 'cti' 18 'cti'
20 #else 19 #else
21 'stri' 20 'stri'
22 'ctri' 21 'ctri'
23 #end if 22 #end if
23 #if $method.model=='gam'
24 'gam' '' 'idindicatortrait'
25 '$inputcoord'
26 #else
27 'glmmtmb' '' 'idindicatortrait'
28 ''
29 #end if
24 #if $settings.advanced=='advanced' 30 #if $settings.advanced=='advanced'
25 $settings.method '' 'idindicatortrait'
26 $settings.smooth_plot 31 $settings.smooth_plot
27 $settings.compute_ic 32 $settings.compute_ic
28 #else 33 #else
29 'gam' '' 'idindicatortrait'
30 'TRUE' 34 'TRUE'
31 'TRUE' 35 'TRUE'
32 #end if 36 #end if
33 '$__tool_directory__/FunctTrendSTOCGalaxy.r' 37 '$__tool_directory__/FunctTrendSTOCGalaxy.r'
34 ]]> 38 ]]>
35 </command> 39 </command>
36 <inputs> 40 <inputs>
37 <expand macro="stoceps_input_filtered"/> 41 <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)." /> 42
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)." /> 43 <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`)." /> 44 <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"> 45 <param name="index" type="select" help="Available index" label="Chose the index you want to compute">
42 <option selected="true" value="csi">CSI</option> 46 <option selected="true" value="csi">CSI</option>
43 <option value="cti">CTI</option> 47 <option value="cti">CTI</option>
44 <option value="ctri">CTRI</option> 48 <option value="ctri">CTRI</option>
45 </param> 49 </param>
50 <conditional name="method">
51 <param name="model" type="select" help="Available methods are GlmmTMB and Gam" label="Choose the model method">
52 <option value="glmmtmb">GlmmTMB</option>
53 <option selected="true" value="gam">Gam</option>
54 </param>
55 <when value="gam">
56 <param name="inputcoord" type="data" format="tabular" label="Coordinates of sites" help="Input localization tabular file, with 3 columns (site ID, latitude, longitude)." />
57 </when>
58 <when value="glmmtmb">
59 </when>
60 </conditional>
46 <conditional name="settings"> 61 <conditional name="settings">
47 <expand macro="stoceps_advanced_params_select"/> 62 <expand macro="stoceps_advanced_params_select"/>
48 <when value="advanced"> 63 <when value="advanced">
49 <param name="smooth_plot" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="yes" label="Smooth visualization."/> 64 <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"/> 65 <expand macro="stoceps_compute_ic"/>
55 </when> 66 </when>
56 </conditional> 67 </conditional>
57 </inputs> 68 </inputs>
58 <outputs> 69 <outputs>
88 <param name="inputcoord" value="coordCarreSTOCfaux.tabular"/> 99 <param name="inputcoord" value="coordCarreSTOCfaux.tabular"/>
89 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/> 100 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/>
90 <param name="inputtabSpecies" value="tabSpecies.csv"/> 101 <param name="inputtabSpecies" value="tabSpecies.csv"/>
91 <param name="advanced" value="advanced"/> 102 <param name="advanced" value="advanced"/>
92 <param name="smooth_plot" value="TRUE"/> 103 <param name="smooth_plot" value="TRUE"/>
93 <param name="method" value="gam"/> 104 <param name="model" value="gam"/>
94 <param name="compute_ic" value="FALSE"/> 105 <param name="compute_ic" value="FALSE"/>
95 <output name="output_tab_gammcomplet"> 106 <output name="output_tab_gammcomplet">
96 <assert_contents> 107 <assert_contents>
97 <has_n_lines n="20"/> 108 <has_n_lines n="20"/>
98 <has_size value="3500" delta="100"/> 109 <has_size value="3500" delta="100"/>
121 </assert_contents> 132 </assert_contents>
122 </output> 133 </output>
123 </test> 134 </test>
124 <test> 135 <test>
125 <param name="input" value="Datafilteredfortrendanalysis.tabular"/> 136 <param name="input" value="Datafilteredfortrendanalysis.tabular"/>
126 <param name="inputcoord" value="coordCarreSTOCfaux.tabular"/>
127 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/> 137 <param name="inputspeciesindic" value="species_indicateur_fonctionnel.tabular"/>
128 <param name="inputtabSpecies" value="tabSpecies.csv"/> 138 <param name="inputtabSpecies" value="tabSpecies.csv"/>
129 <param name="advanced" value="advanced"/> 139 <param name="advanced" value="advanced"/>
130 <param name="smooth_plot" value="FALSE"/> 140 <param name="smooth_plot" value="FALSE"/>
131 <param name="method" value="glmmtmb"/> 141 <param name="model" value="glmmtmb"/>
132 <param name="compute_ic" value="TRUE"/> 142 <param name="compute_ic" value="TRUE"/>
133 <output name="output_plot_glmmtb_csiplot"> 143 <output name="output_plot_glmmtb_csiplot">
134 <assert_contents> 144 <assert_contents>
135 <has_text text="PNG"/> 145 <has_text text="PNG"/>
136 </assert_contents> 146 </assert_contents>
156 166
157 **What it does** 167 **What it does**
158 168
159 Compute and plot time variation of indicator or mean trait values of communities. 169 Compute and plot time variation of indicator or mean trait values of communities.
160 170
171 The default GAM model tests fixed effects of year, smoothed longitude and latitude and random effect of site on the selected indicator : indicator ~ year + s(longitude,latitude) + 1|site
172 The GlmmTMB model tests fixed effects of year and random effect of site on the selected indicator : indicator ~ year + 1|site
173
161 CSI Temporal analysis indicator 174 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. 175 This script computes the indicator csi, cti and ctri per year and site, wich also correspond to a community weighted mean (CWM), analyse its temporal evolution trend with gam or glmmtmb model and create graphical vizualisation.
163 As indicator you can thus use also a trait. 176 As indicator you can thus use also a trait.
164 177
165 | 178 |
166 179
167 **Input description** 180 **Input description**
174 187
175 One tabular species file, with a `species ID` column and species names. 188 One tabular species file, with a `species ID` column and species names.
176 189
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). 190 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 191
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) 192 One additional tabular for Gam method only 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 193
181 | 194 |
182 195
183 **Output** 196 **Output**
184 197