3
|
1 <tool id="insect_phenology_model" name="Insect phenology model" version="1.1.0">
|
0
|
2 <description>expressing stage-specific phenology and population dynamics</description>
|
|
3 <requirements>
|
4
|
4 <requirement type="package" version="1.4.4">r-optparse</requirement>
|
0
|
5 </requirements>
|
2
|
6 <command detect_errors="exit_code"><![CDATA[
|
17
|
7 #set life_stages = list()
|
13
|
8 #set plot_adult_life_stage = $plot_adult_life_stage_cond.plot_adult_life_stage
|
|
9 #set plot_nymph_life_stage = $plot_nymph_life_stage_cond.plot_nymph_life_stage
|
17
|
10 #if str($plot_egg_life_stage) == "yes":
|
|
11 $life_stages.append("Egg")
|
|
12 #end if
|
|
13 #if str($plot_nymph_life_stage) == "yes":
|
|
14 $life_stages.append("Nymph")
|
|
15 #end if
|
|
16 #if str($plot_adult_life_stage) == "yes":
|
|
17 $life_stages.append("Adult")
|
|
18 #end if
|
13
|
19 #if str($plot_egg_life_stage) == "yes" and str($plot_nymph_life_stage) == "yes" and str($plot_adult_life_stage) == "yes":
|
17
|
20 $life_stages.append("Total")
|
13
|
21 #end if
|
17
|
22 #set life_stages = ",".join($life_stages)
|
9
|
23 mkdir output_dir &&
|
0
|
24 Rscript '$__tool_directory__/insect_phenology_model.R'
|
6
|
25 --adult_mortality $adult_mortality
|
|
26 --adult_accumulation $adult_accumulation
|
|
27 --egg_mortality $egg_mortality
|
|
28 --input '$input'
|
|
29 --insect '$insect'
|
|
30 --insects_per_replication $insects_per_replication
|
17
|
31 --life_stages '$life_stages'
|
|
32 #if str($plot_adult_life_stage) == "yes":
|
|
33 --life_stages_adult '$plot_adult_life_stage_cond.life_stages_adult'
|
9
|
34 #end if
|
17
|
35 #if str($plot_nymph_life_stage) == "yes":
|
|
36 --life_stages_nymph '$plot_nymph_life_stage_cond.life_stages_nymph'
|
9
|
37 #end if
|
6
|
38 --location '$location'
|
|
39 --max_clutch_size $max_clutch_size
|
|
40 --min_clutch_size $min_clutch_size
|
|
41 --nymph_mortality $nymph_mortality
|
|
42 --num_days $input.metadata.data_lines
|
|
43 --old_nymph_accumulation $old_nymph_accumulation
|
|
44 --oviposition $oviposition
|
|
45 --photoperiod $photoperiod
|
|
46 --replications $replications
|
9
|
47 --plot_generations_separately $plot_generations_separately
|
|
48 --plot_std_error $plot_std_error
|
26
|
49 --young_nymph_accumulation $young_nymph_accumulation
|
|
50 --output '$output']]></command>
|
0
|
51 <inputs>
|
4
|
52 <param name="input" type="data" format="csv" label="Temperature data" />
|
2
|
53 <param name="location" type="text" value="" optional="false" label="Location" />
|
5
|
54 <param name="insect" type="select" label="Select insect">
|
9
|
55 <option value="BMSB" selected="True">Brown Marmorated Stink Bug</option>
|
5
|
56 </param>
|
9
|
57 <param name="replications" type="integer" value="10" min="2" label="Number of replications" />
|
6
|
58 <param name="insects_per_replication" type="integer" value="1000" min="1" label="Number of insects with which to start each replication" />
|
0
|
59 <param name="photoperiod" type="float" value="13.5" min="0" label="Critical photoperiod for diapause induction/termination" />
|
6
|
60 <param name="egg_mortality" type="integer" value="1" min="0" label="Adjustment rate for egg mortality" />
|
|
61 <param name="nymph_mortality" type="integer" value="1" min="0" label="Adjustment rate for nymph mortality" />
|
|
62 <param name="adult_mortality" type="integer" value="1" min="0" label="Adjustment rate for adult mortality" />
|
0
|
63 <param name="oviposition" type="integer" value="1" min="0" label="Adjustment oviposition rate" />
|
|
64 <param name="min_clutch_size" type="integer" value="0" min="0" label="Adjustment of minimum clutch size" />
|
|
65 <param name="max_clutch_size" type="integer" value="0" min="0" label="Adjustment of maximum clutch size" />
|
6
|
66 <param name="young_nymph_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (egg->young nymph)" />
|
|
67 <param name="old_nymph_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (young nymph->old nymph)" />
|
|
68 <param name="adult_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (old nymph->adult)" />
|
9
|
69 <param name="plot_generations_separately" type="select" label="Plot generations separately?">
|
|
70 <option value="yes" selected="True">Yes</option>
|
|
71 <option value="no">No</option>
|
|
72 </param>
|
13
|
73 <param name="plot_egg_life_stage" type="select" label="Plot egg life stage?">
|
|
74 <option value="yes" selected="true">Yes</option>
|
|
75 <option value="no">No</option>
|
|
76 </param>
|
|
77 <conditional name="plot_nymph_life_stage_cond">
|
|
78 <param name="plot_nymph_life_stage" type="select" label="Plot nymph life stage?">
|
|
79 <option value="yes" selected="true">Yes</option>
|
|
80 <option value="no">No</option>
|
9
|
81 </param>
|
13
|
82 <when value="yes">
|
17
|
83 <param name="life_stages_nymph" type="select" multiple="true" label="Select nymph life stage">
|
9
|
84 <option value="Total" selected="true">All</option>
|
|
85 <option value="Young">Young</option>
|
|
86 <option value="Old">Old</option>
|
|
87 </param>
|
|
88 </when>
|
13
|
89 <when value="no"/>
|
|
90 </conditional>
|
|
91 <conditional name="plot_adult_life_stage_cond">
|
|
92 <param name="plot_adult_life_stage" type="select" label="Plot adult life stage?">
|
|
93 <option value="yes" selected="true">Yes</option>
|
|
94 <option value="no">No</option>
|
|
95 </param>
|
|
96 <when value="yes">
|
17
|
97 <param name="life_stages_adult" type="select" multiple="true" label="Select adult life stage">
|
9
|
98 <option value="Total" selected="true">All</option>
|
|
99 <option value="Pre-vittelogenic">Pre-vittelogenic</option>
|
|
100 <option value="Vittelogenic">Vittelogenic</option>
|
|
101 <option value="Diapausing">Diapausing</option>
|
|
102 </param>
|
|
103 </when>
|
13
|
104 <when value="no"/>
|
9
|
105 </conditional>
|
|
106 <param name="plot_std_error" type="select" label="Plot standard error?">
|
|
107 <option value="yes" selected="True">Yes</option>
|
|
108 <option value="no">No</option>
|
0
|
109 </param>
|
|
110 </inputs>
|
|
111 <outputs>
|
26
|
112 <data name="output" format="csv" label="${tool.name} (analyzed data) on ${on_string}"/>
|
|
113 <collection name="output_collection" type="list" label="${tool.name} (plots), on ${on_string}">
|
9
|
114 <discover_datasets pattern="__name__" directory="output_dir" format="pdf" />
|
|
115 </collection>
|
0
|
116 </outputs>
|
|
117 <tests>
|
|
118 <test>
|
3
|
119 <param name="input" value="state_college.csv" ftype="csv" />
|
|
120 <param name="location" value="State College PA" />
|
12
|
121 <param name="replications" value="2" />
|
22
|
122 <param name="plot_generations_separately" value="no" />
|
|
123 <param name="plot_egg_life_stage" value="no" />
|
|
124 <param name="life_stages_nymph" value="Young" />
|
|
125 <param name="life_stages_adult" value="Pre-vittelogenic" />
|
26
|
126 <output name="output" file="output1.csv" ftype="csv"/>
|
22
|
127 <output_collection name="output_collection" type="list">
|
|
128 <element name="02_young_nymph_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
129 <element name="05_pre-vittelogenic_adult_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
130 </output_collection>
|
|
131 </test>
|
26
|
132 <!--
|
22
|
133 <test>
|
|
134 <param name="input" value="state_college.csv" ftype="csv" />
|
|
135 <param name="location" value="State College PA" />
|
|
136 <param name="replications" value="2" />
|
|
137 <param name="plot_generations_separately" value="no" />
|
|
138 <output_collection name="output_collection" type="list">
|
|
139 <element name="01_egg_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
140 <element name="04_total_nymph_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
141 <element name="08_total_adult_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
142 <element name="09_total_pop.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
143 </output_collection>
|
|
144 </test>
|
|
145 <test>
|
|
146 <param name="input" value="state_college.csv" ftype="csv" />
|
|
147 <param name="location" value="State College PA" />
|
|
148 <param name="replications" value="2" />
|
|
149 <param name="plot_egg_life_stage" value="no" />
|
|
150 <param name="life_stages_nymph" value="Old" />
|
|
151 <param name="plot_adult_life_stage" value="no" />
|
|
152 <output_collection name="output_collection" type="list">
|
|
153 <element name="03_old_nymph_pop_by_generation.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
154 </output_collection>
|
|
155 </test>
|
|
156 <test>
|
|
157 <param name="input" value="state_college.csv" ftype="csv" />
|
|
158 <param name="location" value="State College PA" />
|
|
159 <param name="replications" value="2" />
|
9
|
160 <output_collection name="output_collection" type="list">
|
18
|
161 <element name="01_egg_pop_by_generation.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
162 <element name="04_total_nymph_pop_by_generation.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
163 <element name="08_total_adult_pop_by_generation.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
|
164 <element name="09_total_pop_by_generation.pdf" file="pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
9
|
165 </output_collection>
|
0
|
166 </test>
|
26
|
167 -->
|
0
|
168 </tests>
|
|
169 <help>
|
|
170 **What it does**
|
6
|
171
|
0
|
172 Provides an agent-based stochastic model expressing stage-specific phenology and population dynamics for an insect species across geographic regions.
|
|
173
|
|
174 -----
|
|
175
|
|
176 **Required options**
|
|
177
|
|
178 * **Location** - the location associated with the selected temperature data.
|
|
179 * **Temperature data** - select the dataset from your history containing the temperature data.
|
7
|
180 * **Select insect** - currently only the Brown Marmorated Stink Bug can be analyzed.
|
0
|
181 * **Number of replications** - number of replications.
|
6
|
182 * **Number of insects with which to start each replication** - the analysis for each replication will start with this number of insects.
|
0
|
183 * **Critical photoperiod for diapause induction/termination** - critical photoperiod for diapause induction/termination.
|
|
184 * **Adjustment rate for egg mortality** - adjustment rate for egg mortality.
|
|
185 * **Adjustment rate for nymph mortality** - adjustment rate for nymph mortality.
|
|
186 * **Adjustment rate for adult mortality** - adjustment rate for adult mortality.
|
|
187 * **Adjustment oviposition rate** - adjustment oviposition rate.
|
|
188 * **Adjustment of minimum clutch size** - adjustment of minimum clutch size.
|
|
189 * **Adjustment of maximum clutch size** - adjustment of maximum clutch size
|
6
|
190 * **Adjustment of degree-days accumulation (egg->young nymph)** - adjustment of degree-days accumulation (egg->young nymph).
|
|
191 * **Adjustment of degree-days accumulation (young nymph->old nymph)** - adjustment of degree-days accumulation (young nymph->old nymph).
|
|
192 * **Adjustment of degree-days accumulation (old nymph->adult)** - adjustment of degree-days accumulation (old nymph->adult).
|
9
|
193 * **Plot generations separately** - select "Yes" to plot P, F1 and F2 as separate lines or "no" to pool across generations, resulting in a total for the selected life states.
|
14
|
194 * **Plot egg life stage** - select "Yes" to plot the egg life stage. If all life stages (egg, nymph and adult) are selected for plotting, one output for the total will be produced.
|
|
195 * **Plot nymph life stage** - select "Yes" to plot the nymph life stage. If all life stages (egg, nymph and adult) are selected for plotting, one output for the total will be produced.
|
|
196
|
|
197 * **Select nymph life stage** - select the nymph life stage for plotting.
|
|
198
|
|
199 * **Plot adult life stage** - select "Yes" to plot the adult life stage. If all life stages (egg, nymph and adult) are selected for plotting, one output for the total will be produced.
|
|
200
|
|
201 * **Select adult life stage** - select the adult life stage for plotting.
|
|
202
|
6
|
203 * **Plot standard error** - add standard error lines to plot.
|
0
|
204 </help>
|
|
205 <citations>
|
|
206 <citation type="doi">10.3389/fphys.2016.00165</citation>
|
3
|
207 <citation type="doi">10.1175/JTECH-D-11-00103.1</citation>
|
|
208 <citation type="doi">10.7289/V5D21VHZ</citation>
|
0
|
209 </citations>
|
|
210 </tool>
|