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[
|
9
|
7 #set stages = list()
|
|
8 #set life_stages_adult = "None"
|
|
9 #set life_stage_nymph = "None"
|
|
10 #set life_stages = $life_stages_cond.life_stages
|
|
11 #for life_stage in str($life_stages).split(","):
|
|
12 #if $life_stage == "Adult":
|
|
13 #set life_stages_adult = $life_stages_cond.life_stages_adult
|
|
14 #else if $life_stage == "Nymph":
|
|
15 #set life_stage_nymph = $life_stages_cond.life_stage_nymph
|
|
16 #end if
|
|
17 $stages.append($life_stage)
|
|
18 #end for
|
|
19 #set stages = ",".join($stages)
|
|
20 mkdir output_dir &&
|
0
|
21 Rscript '$__tool_directory__/insect_phenology_model.R'
|
6
|
22 --adult_mortality $adult_mortality
|
|
23 --adult_accumulation $adult_accumulation
|
|
24 --egg_mortality $egg_mortality
|
|
25 --input '$input'
|
|
26 --insect '$insect'
|
|
27 --insects_per_replication $insects_per_replication
|
9
|
28 --life_stages '$stages'
|
|
29 #if str($life_stages_adult) != "None":
|
|
30 --life_stages_adult $life_stages_adult
|
|
31 #end if
|
|
32 #if str($life_stage_nymph) != "None":
|
|
33 --life_stage_nymph $life_stage_nymph
|
|
34 #end if
|
6
|
35 --location '$location'
|
|
36 --max_clutch_size $max_clutch_size
|
|
37 --min_clutch_size $min_clutch_size
|
|
38 --nymph_mortality $nymph_mortality
|
|
39 --num_days $input.metadata.data_lines
|
|
40 --old_nymph_accumulation $old_nymph_accumulation
|
|
41 --oviposition $oviposition
|
|
42 --photoperiod $photoperiod
|
|
43 --replications $replications
|
9
|
44 --plot_generations_separately $plot_generations_separately
|
|
45 --plot_std_error $plot_std_error
|
6
|
46 --young_nymph_accumulation $young_nymph_accumulation]]></command>
|
0
|
47 <inputs>
|
4
|
48 <param name="input" type="data" format="csv" label="Temperature data" />
|
2
|
49 <param name="location" type="text" value="" optional="false" label="Location" />
|
5
|
50 <param name="insect" type="select" label="Select insect">
|
9
|
51 <option value="BMSB" selected="True">Brown Marmorated Stink Bug</option>
|
5
|
52 </param>
|
9
|
53 <param name="replications" type="integer" value="10" min="2" label="Number of replications" />
|
6
|
54 <param name="insects_per_replication" type="integer" value="1000" min="1" label="Number of insects with which to start each replication" />
|
0
|
55 <param name="photoperiod" type="float" value="13.5" min="0" label="Critical photoperiod for diapause induction/termination" />
|
6
|
56 <param name="egg_mortality" type="integer" value="1" min="0" label="Adjustment rate for egg mortality" />
|
|
57 <param name="nymph_mortality" type="integer" value="1" min="0" label="Adjustment rate for nymph mortality" />
|
|
58 <param name="adult_mortality" type="integer" value="1" min="0" label="Adjustment rate for adult mortality" />
|
0
|
59 <param name="oviposition" type="integer" value="1" min="0" label="Adjustment oviposition rate" />
|
|
60 <param name="min_clutch_size" type="integer" value="0" min="0" label="Adjustment of minimum clutch size" />
|
|
61 <param name="max_clutch_size" type="integer" value="0" min="0" label="Adjustment of maximum clutch size" />
|
6
|
62 <param name="young_nymph_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (egg->young nymph)" />
|
|
63 <param name="old_nymph_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (young nymph->old nymph)" />
|
|
64 <param name="adult_accumulation" type="integer" value="0" min="0" label="Adjustment of degree-days accumulation (old nymph->adult)" />
|
9
|
65 <param name="plot_generations_separately" type="select" label="Plot generations separately?">
|
|
66 <option value="yes" selected="True">Yes</option>
|
|
67 <option value="no">No</option>
|
|
68 </param>
|
|
69 <conditional name="life_stages_cond" label="Select life_stages for plotting">
|
|
70 <param name="life_stages" type="select" label="Select life stages for plotting">
|
|
71 <option value="Total" selected="true">All</option>
|
|
72 <option value="Egg">Egg</option>
|
|
73 <option value="Nymph">Nymph</option>
|
|
74 <option value="Adult">Adult</option>
|
|
75 </param>
|
|
76 <when value="Total"/>
|
|
77 <when value="Egg"/>
|
|
78 <when value="Nymph">
|
|
79 <param name="life_stage_nymph" type="select" label="Select nymph life stage">
|
|
80 <option value="Total" selected="true">All</option>
|
|
81 <option value="Young">Young</option>
|
|
82 <option value="Old">Old</option>
|
|
83 </param>
|
|
84 </when>
|
|
85 <when value="Adult">
|
|
86 <param name="life_stages_adult" type="select" label="Select adult life stage">
|
|
87 <option value="Total" selected="true">All</option>
|
|
88 <option value="Pre-vittelogenic">Pre-vittelogenic</option>
|
|
89 <option value="Vittelogenic">Vittelogenic</option>
|
|
90 <option value="Diapausing">Diapausing</option>
|
|
91 </param>
|
|
92 </when>
|
|
93 </conditional>
|
|
94 <param name="plot_std_error" type="select" label="Plot standard error?">
|
|
95 <option value="yes" selected="True">Yes</option>
|
|
96 <option value="no">No</option>
|
0
|
97 </param>
|
|
98 </inputs>
|
|
99 <outputs>
|
9
|
100 <collection name="output_collection" type="list" label="${tool.name} ${location}, on ${on_string}">
|
|
101 <discover_datasets pattern="__name__" directory="output_dir" format="pdf" />
|
|
102 </collection>
|
0
|
103 </outputs>
|
|
104 <tests>
|
|
105 <test>
|
3
|
106 <param name="input" value="state_college.csv" ftype="csv" />
|
|
107 <param name="location" value="State College PA" />
|
12
|
108 <param name="replications" value="2" />
|
9
|
109 <output_collection name="output_collection" type="list">
|
12
|
110 <element name="total_pop_by_generation.pdf" file="total_pop_by_generation.pdf" ftype="pdf" compare="contains"/>
|
9
|
111 </output_collection>
|
0
|
112 </test>
|
|
113 </tests>
|
|
114 <help>
|
|
115 **What it does**
|
6
|
116
|
0
|
117 Provides an agent-based stochastic model expressing stage-specific phenology and population dynamics for an insect species across geographic regions.
|
|
118
|
|
119 -----
|
|
120
|
|
121 **Required options**
|
|
122
|
|
123 * **Location** - the location associated with the selected temperature data.
|
|
124 * **Temperature data** - select the dataset from your history containing the temperature data.
|
7
|
125 * **Select insect** - currently only the Brown Marmorated Stink Bug can be analyzed.
|
0
|
126 * **Number of replications** - number of replications.
|
6
|
127 * **Number of insects with which to start each replication** - the analysis for each replication will start with this number of insects.
|
0
|
128 * **Critical photoperiod for diapause induction/termination** - critical photoperiod for diapause induction/termination.
|
|
129 * **Adjustment rate for egg mortality** - adjustment rate for egg mortality.
|
|
130 * **Adjustment rate for nymph mortality** - adjustment rate for nymph mortality.
|
|
131 * **Adjustment rate for adult mortality** - adjustment rate for adult mortality.
|
|
132 * **Adjustment oviposition rate** - adjustment oviposition rate.
|
|
133 * **Adjustment of minimum clutch size** - adjustment of minimum clutch size.
|
|
134 * **Adjustment of maximum clutch size** - adjustment of maximum clutch size
|
6
|
135 * **Adjustment of degree-days accumulation (egg->young nymph)** - adjustment of degree-days accumulation (egg->young nymph).
|
|
136 * **Adjustment of degree-days accumulation (young nymph->old nymph)** - adjustment of degree-days accumulation (young nymph->old nymph).
|
|
137 * **Adjustment of degree-days accumulation (old nymph->adult)** - adjustment of degree-days accumulation (old nymph->adult).
|
9
|
138 * **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.
|
|
139 * **Select life stages for plotting** - select any combinaton of Egg, Nymph, Adult or "All" for plotting.
|
6
|
140 * **Plot standard error** - add standard error lines to plot.
|
|
141
|
0
|
142 </help>
|
|
143 <citations>
|
|
144 <citation type="doi">10.3389/fphys.2016.00165</citation>
|
3
|
145 <citation type="doi">10.1175/JTECH-D-11-00103.1</citation>
|
|
146 <citation type="doi">10.7289/V5D21VHZ</citation>
|
0
|
147 </citations>
|
|
148 </tool>
|