comparison PAMPA_GLM_SP.xml @ 0:0778efa9eb2e draft

"planemo upload for repository https://github.com/ColineRoyaux/PAMPA-Galaxy commit 07f1028cc764f920b1e6419c151f04ab4e3600fa"
author ecology
date Tue, 21 Jul 2020 06:00:51 -0400
parents
children e972fe2bffee
comparison
equal deleted inserted replaced
-1:000000000000 0:0778efa9eb2e
1 <tool id="pampa_glmsp" name="Compute GLM on population data" version="@VERSION@">
2 <description>Compute a GLM of your choice on population data</description>
3 <macros>
4 <import>pampa_macros.xml</import>
5 </macros>
6 <expand macro="GLM_requirements"/>
7 <command detect_errors="exit_code"><![CDATA[
8 Rscript
9 '$__tool_directory__/FunctExeCalcGLMSpGalaxy.r'
10 '$input_metric'
11 '$input_unitobs'
12 '$varint'
13 '$varrep'
14 '$varrand'
15 'species.code'
16 #if $settings.advanced=='advanced'
17 $settings.distrib
18 'FALSE'
19 #else
20 'None'
21 'FALSE'
22 #end if
23 'unitSp'
24 '$__tool_directory__/FunctPAMPAGalaxy.r'
25 '$output_summary'
26 '$output_recap'
27 ]]>
28 </command>
29 <inputs>
30 <expand macro="pampa_input_GLM"/>
31 <expand macro="pampa_var_GLM"/>
32 <conditional name="settings">
33 <expand macro="pampa_advanced_params_select_GLM"/>
34 </conditional>
35 </inputs>
36 <outputs>
37
38 <data name="output_summary" from_work_dir="GLMSummary.tabular" format="tabular" label="GLM - Results from your population analysis on ${on_string}"/>
39 <expand macro="pampa_output_GLM"/>
40 </outputs>
41 <tests>
42 <test>
43 <param name="input_metric" value="Presence_absence_table_sansszcl_cropped.tabular"/>
44 <param name="input_unitobs" value="Unitobs.tabular"/>
45 <param name="varint" value="4"/>
46 <param name="varrep" value="year,site,habitat"/>
47 <param name="varrand" value="site"/>
48 <param name="advanced" value="simple"/>
49 <output name="output_summary">
50 <assert_contents>
51 <has_n_lines n="4"/>
52 </assert_contents>
53 </output>
54 <output name="output_recap">
55 <assert_contents>
56 <has_n_lines n="607"/>
57 </assert_contents>
58 </output>
59 <output name="output_rate">
60 <assert_contents>
61 <has_n_lines n="46"/>
62 </assert_contents>
63 </output>
64 </test>
65 </tests>
66 <help><![CDATA[
67 ===============================================================
68 Compute GLM on population data with selected interest variables
69 ===============================================================
70
71 **What it does**
72
73 This tool from PAMPA toolsuite computes Generalized Linear Models on population data.
74
75 It allows user to choose composition of the model :
76
77 - Interest variable among numeric or integer variables of the input file
78
79 - Response variables among year, site and/or habitat
80
81 - Allocation of random effect on year and/or site
82
83 |
84
85 **Input description**
86
87 A tabular file with population data. Must at least contain three or four columns depending on the case :
88
89 - ['year' and 'location'] or ['observation.unit']
90
91 - 'species.code'
92
93 - At least one population metric
94
95 +------------------+--------------+---------+---------+-----+
96 | observation.unit | species.code | metric1 | metric2 | ... |
97 +==================+==============+=========+=========+=====+
98 | site_yearID | species code | 2 | 0.4 | ... |
99 +------------------+--------------+---------+---------+-----+
100 | ... | ... | ... | ... | ... |
101 +------------------+--------------+---------+---------+-----+
102
103 OR
104
105 +------+----------+--------------+---------+---------+-----+
106 | year | location | species.code | metric1 | metric2 | ... |
107 +======+==========+==============+=========+=========+=====+
108 | 2000 |locationID| species code | 2 | 0.4 | ... |
109 +------+----------+--------------+---------+---------+-----+
110 | ... | ... | ... | ... | ... | ... |
111 +------+----------+--------------+---------+---------+-----+
112
113 The first input may be extracted from the 'Calculate presence absence' tool.
114
115 A tabular file with unitobs or location data which contains at least as much columns as used response variables and separation factor in addition with the 'observation.unit' or 'location' and 'species.code' column.
116
117 +--------------------------------+--------------+---------+--------+------------+-----+
118 | observation.unit OR location | species.code | site | year | habitat | ... |
119 +================================+==============+=========+========+============+=====+
120 | site_yearID OR locationID | species code | site ID | 2000 | habitatID | ... |
121 +--------------------------------+--------------+---------+--------+------------+-----+
122 | ... | ... | ... | ... | ... | ... |
123 +--------------------------------+--------------+---------+--------+------------+-----+
124
125 |
126
127 **Output**
128
129 Two text files :
130
131 - A first text file with GLM results. One analysis per species.
132
133 - A second text file with simple statistics on the whole dataset.
134
135 |
136
137 **Source**
138
139 Derived from PAMPA scripts (https://wwz.ifremer.fr/pampa/Meth.-Outils/Outils) written by Yves Reecht.
140
141 ]]></help>
142
143 <expand macro="pampa_bibref" />
144 </tool>