Mercurial > repos > ecology > pampa_plotglm
comparison PAMPA_PLOT_GLM.xml @ 0:3ab852a7ff53 draft
"planemo upload for repository https://github.com/ColineRoyaux/PAMPA-Galaxy commit 04381ca7162ec3ec68419e308194b91d11cacb04"
author | ecology |
---|---|
date | Mon, 16 Nov 2020 11:02:43 +0000 |
parents | |
children | 5ddca052c314 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3ab852a7ff53 |
---|---|
1 <tool id="pampa_plotglm" name="Create a plot from GLM data" version="@VERSION@"> | |
2 <description>as temporal trend</description> | |
3 <macros> | |
4 <import>pampa_macros.xml</import> | |
5 </macros> | |
6 <expand macro="Plot_requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 Rscript | |
9 '$__tool_directory__/FunctExePlotGLMGalaxy.r' | |
10 '$input' | |
11 '$datatable' | |
12 '$unitobstable' | |
13 '$__tool_directory__/FunctPAMPAGalaxy.r' | |
14 '$report' | |
15 '$plots' | |
16 ]]> | |
17 </command> | |
18 <inputs> | |
19 <param name="input" type="data" format="tabular" label="Input glm results file" help=""/> | |
20 <param name="datatable" type="data" format="tabular" label="Data table used for glm" help=""/> | |
21 <param name="unitobstable" type="data" format="tabular" label="Unitobs table used for glm" help=""/> | |
22 </inputs> | |
23 <outputs> | |
24 <data name="report" from_work_dir="stdout.txt" label="Report" format="txt"/> | |
25 <collection type="list" name="plots"> | |
26 <discover_datasets pattern="(?P<designation>.+)\.png" visible="false" format="png"/> | |
27 </collection> | |
28 </outputs> | |
29 <tests> | |
30 <test expect_num_outputs="2"> | |
31 <param name="input" value="GLM_table_population_analysis_on_Presence_absence_sansszcl_cropped.tabular"/> | |
32 <param name="datatable" value="Presence_absence_table_sansszcl_cropped.tabular"/> | |
33 <param name="unitobstable" value="Unitobs.tabular"/> | |
34 <output name="report"> | |
35 <assert_contents> | |
36 <has_size value="0"/> | |
37 </assert_contents> | |
38 </output> | |
39 <output_collection name="plots" type="list" count="3"> | |
40 <element name="Abalstel" ftype="png"> | |
41 <assert_contents> | |
42 <has_text text="PNG"/> | |
43 </assert_contents> | |
44 </element> | |
45 <element name="Hemifasc" ftype="png"> | |
46 <assert_contents> | |
47 <has_text text="PNG"/> | |
48 </assert_contents> | |
49 </element> | |
50 <element name="Zebrscop" ftype="png"> | |
51 <assert_contents> | |
52 <has_text text="PNG"/> | |
53 </assert_contents> | |
54 </element> | |
55 </output_collection> | |
56 </test> | |
57 </tests> | |
58 <edam_topics> | |
59 <edam_topic>topic_0610</edam_topic> | |
60 <edam_topic>topic_3050</edam_topic> | |
61 </edam_topics> | |
62 <help><![CDATA[ | |
63 ============================================= | |
64 Create plot(s) from GLM results output | |
65 ============================================= | |
66 | |
67 **What it does** | |
68 | |
69 This tool from PAMPA toolsuite creates one or several png plots from GLM results table. | |
70 | |
71 | | |
72 | |
73 **Input description** | |
74 | |
75 A tabular file with GLM results data. Must at least contain three columns + columns of GLM results : | |
76 | |
77 - 'analysis' : representing the part of data used for each GLM computed. With "global" if GLM computed on the whole dataset or, if several GLM have been computed on several subsections of the dataset, the name of the level from the separation factor used to split the dataset. | |
78 - 'Interest.var' : representing the metric selected as interest variable in the GLM(s). | |
79 - 'distribution' : representing the probability distribution used for GLM(s). | |
80 - At least estimates and p value for every year of the time series analysed. Formated as 'yyyy Estimate' and 'yyyy Pvalue'. | |
81 | |
82 +----------+--------------+--------------+---------------+-------------+-----+ | |
83 | analysis | Interest.var | distribution | 2020 Estimate | 2020 Pvalue | ... | | |
84 +==========+==============+==============+===============+=============+=====+ | |
85 | global | metric1 | gaussian | 1.4533246 | 0.007 | ... | | |
86 +----------+--------------+--------------+---------------+-------------+-----+ | |
87 | ... | ... | ... | ... | ... | ... | | |
88 +----------+--------------+--------------+---------------+-------------+-----+ | |
89 | |
90 The first input may be extracted from the 'Compute GLM on population data' or 'Compute GLM on community data' tools. | |
91 | |
92 | |
93 A tabular file with community data, the same used to compute the GLM in the 'Compute GLM' tools. Must at least contain three columns : | |
94 | |
95 - 'observation.unit' | |
96 | |
97 - 'location' | |
98 | |
99 - At least the community metric used as interest variable in the GLM(s). | |
100 | |
101 +------------------+----------+---------+-----+ | |
102 | observation.unit | location | metric1 | ... | | |
103 +==================+==========+=========+=====+ | |
104 | site_yearID |locationID| 2 | ... | | |
105 +------------------+----------+---------+-----+ | |
106 | ... | ... | ... | ... | | |
107 +------------------+----------+---------+-----+ | |
108 | |
109 The second input may be extracted from the 'Calculate community metrics' or 'Calculate presence absence table' tools. | |
110 | |
111 | |
112 A tabular file with unitobs data which contains at least two or three columns depending on the case : | |
113 | |
114 - 'observation.unit' | |
115 | |
116 - 'year' : formated as yyyy (example : 2020) | |
117 | |
118 - if the GLM is a community analysis with a separation factor : the separation factor used to split data | |
119 | |
120 +------------------+--------+---------------------+-----+ | |
121 | observation.unit | year | separation_factor | ... | | |
122 +==================+========+=====================+=====+ | |
123 | site_yearID | 2020 | A | ... | | |
124 +------------------+--------+---------------------+-----+ | |
125 | ... | ... | ... | ... | | |
126 +------------------+--------+---------------------+-----+ | |
127 | |
128 | | |
129 | |
130 **Output** | |
131 | |
132 Two outputs : | |
133 | |
134 - A report file on the computation (can be blank). | |
135 | |
136 - A data collection containing plot(s) created by the tool. | |
137 | |
138 | | |
139 | |
140 **Source** | |
141 | |
142 Derived from PAMPA scripts (https://wwz.ifremer.fr/pampa/Meth.-Outils/Outils) written by Yves Reecht. | |
143 | |
144 ]]></help> | |
145 | |
146 <expand macro="pampa_bibref" /> | |
147 </tool> |