Skip to content

Commit 47ec18f

Browse files
committed
update remaining pops single run tests and add configs.
1 parent 9e27fe2 commit 47ec18f

File tree

11 files changed

+1242
-241
lines changed

11 files changed

+1242
-241
lines changed
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# File paths for input and output data
2+
input_path: "C:/Users/cjone/Projects/rpops/inst/extdata"
3+
output_path: "C:/Users/cjone/Projects/rpops/inst/extdata/simple2x2/outputs"
4+
5+
# pest parameters
6+
starting_infected_files: ["extdata/simple2x2/infected_oak_wsd.tif", "extdata/simple2x2/infected_tanoak_wsd.tif", "extdata/simple2x2/infected_baylaurel_wsd.tif"]
7+
parameter_means_file: "extdata/parameter_means_default.csv"
8+
parameter_cov_matrix_file: "extdata/parameter_cov_matrix_default.csv"
9+
pest_host_table: "extdata/pest_host_table.csv"
10+
competency_table: "extdata/competency_table_multihost.csv"
11+
county_level_infection_data: false
12+
use_initial_condition_uncertainty: false
13+
start_exposed: false
14+
latency_period: 2
15+
exposed_files: [""]
16+
17+
# host data
18+
host_files: ["extdata/simple2x2/host_oak_wsd.tif", "extdata/simple2x2/host_tanoak_wsd.tif", "extdata/simple2x2/host_baylaurel_wsd.tif"]
19+
total_populations_file: "extdata/simple2x2/total_plants.tif"
20+
use_host_uncertainty: true
21+
22+
# simulation settings
23+
random_seed: 42
24+
start_date: "2008-01-01"
25+
end_date: "2009-12-31"
26+
time_step: "month"
27+
model_type: "SI"
28+
season_month_start: 1
29+
season_month_end: 12
30+
number_of_iterations: 10
31+
number_of_cores: 2
32+
output_frequency: "year"
33+
output_frequency_n: 1
34+
mask: null
35+
36+
# weather
37+
use_lethal_temperature: false
38+
lethal_temperature_file: "extdata/simple2x2/critical_temp_all_below_threshold.tif"
39+
lethal_temperature: -14
40+
lethal_temperature_month: 1
41+
use_overwinter_survival: false
42+
overwinter_survival_rate_month: 3
43+
overwinter_survival_rate_day: 15
44+
overwinter_survival_rates_file: "extdata/simple2x2/survival_rates.tif"
45+
use_temperature: true
46+
temperature_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
47+
temperature_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
48+
use_precipitation: false
49+
precipitation_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
50+
precipitation_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
51+
weather_type: "deterministic"
52+
53+
# mortality
54+
mortality_frequency: "year"
55+
mortality_frequency_n: 1
56+
57+
# treatments
58+
use_treatment: false
59+
treatments_file: "extdata/simple2x2/treatments.tif"
60+
treatment_dates: ["2009-05-01"]
61+
treatment_method: "ratio"
62+
pesticide_durations: [120]
63+
pesticide_efficacy: 0.5
64+
use_quarantine: false
65+
quarantine_areas_file: ""
66+
quarantine_directions: ""
67+
68+
# dispersal
69+
natural_kernel_type: "cauchy"
70+
natural_dir: "NONE"
71+
anthropogenic_kernel_type: "cauchy"
72+
anthropogenic_dir: "NONE"
73+
# only used if anthropogenic_kernel_type == "network"
74+
network_files: [""]
75+
network_movement_types: ["walk"]
76+
network_min_distances: [0]
77+
network_max_distances: [0]
78+
network_weights: [1]
79+
80+
# host movement
81+
use_movements: false
82+
movements_file: ""
83+
84+
# stochasticity
85+
use_multiple_random_seeds: false
86+
multiple_random_seeds_file: null
87+
generate_stochasticity: true
88+
establishment_stochasticity: true
89+
movement_stochasticity: true
90+
dispersal_stochasticity: true
91+
establishment_probability: 0.5
92+
dispersal_percentage: 0.99
93+
use_spreadrates: false
94+
use_overpopulation_movements: false
95+
overpopulation_percentage: 0.75
96+
leaving_percentage: 0.5
97+
leaving_scale_coefficient: 5
98+
99+
# soil_pests
100+
use_soils: false
101+
soil_starting_pest_file: ""
102+
start_with_soil_populations: false
103+
dispersers_to_soils_percentage: 0
104+
105+
# validation and calibration
106+
infected_val_cal_file: ""
107+
108+
# calibration only parameters
109+
perform_calibration: false
110+
params_to_estimate: [true, true, true, true, false, false]
111+
prior_means: [0, 0, 0, 0, 0, 0]
112+
prior_cov_matrix: [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
113+
prior_number_of_observations: 0
114+
number_of_observations: 0
115+
success_metric: "MCC"
116+
verbose: true
117+
natural_kappa: 0
118+
anthropogenic_kappa: 0
119+
calibration_method: "ABC"
120+
# ABC Parameters
121+
generation_size: 1000
122+
number_of_generations: 7
123+
124+
# validation only
125+
perform_validation: false
126+
point_file: ""
127+
use_configuration: false
128+
129+
# Model API only never used unless you are pulling data from an S3 bucket in the cloud
130+
use_s3: false
131+
bucket: ""
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# File paths for input and output data
2+
input_path: "C:/Users/cjone/Projects/rpops/inst/extdata"
3+
output_path: "C:/Users/cjone/Projects/rpops/inst/extdata/simple2x2/outputs"
4+
5+
# pest parameters
6+
starting_infected_files: ["extdata/simple2x2/infected_oak_wsd.tif", "extdata/simple2x2/infected_tanoak_wsd.tif"]
7+
parameter_means_file: "extdata/parameter_means_rr5.csv"
8+
parameter_cov_matrix_file: "extdata/parameter_cov_matrix_rr5.csv"
9+
pest_host_table: "extdata/pest_host_table_2host.csv"
10+
competency_table: "extdata/competency_table_2host.csv"
11+
county_level_infection_data: false
12+
use_initial_condition_uncertainty: false
13+
start_exposed: false
14+
latency_period: 2
15+
exposed_files: [""]
16+
17+
# host data
18+
host_files: ["extdata/simple2x2/host_oak_wsd.tif", "extdata/simple2x2/host_tanoak_wsd.tif"]
19+
total_populations_file: "extdata/simple2x2/total_plants.tif"
20+
use_host_uncertainty: true
21+
22+
# simulation settings
23+
random_seed: 42
24+
start_date: "2008-01-01"
25+
end_date: "2009-12-31"
26+
time_step: "month"
27+
model_type: "SI"
28+
season_month_start: 1
29+
season_month_end: 12
30+
number_of_iterations: 10
31+
number_of_cores: 2
32+
output_frequency: "year"
33+
output_frequency_n: 1
34+
mask: null
35+
36+
# weather
37+
use_lethal_temperature: false
38+
lethal_temperature_file: "extdata/simple2x2/critical_temp_all_below_threshold.tif"
39+
lethal_temperature: -14
40+
lethal_temperature_month: 1
41+
use_overwinter_survival: false
42+
overwinter_survival_rate_month: 3
43+
overwinter_survival_rate_day: 15
44+
overwinter_survival_rates_file: "extdata/simple2x2/survival_rates.tif"
45+
use_temperature: true
46+
temperature_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
47+
temperature_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
48+
use_precipitation: false
49+
precipitation_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
50+
precipitation_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
51+
weather_type: "deterministic"
52+
53+
# mortality
54+
mortality_frequency: "year"
55+
mortality_frequency_n: 1
56+
57+
# treatments
58+
use_treatment: false
59+
treatments_file: "extdata/simple2x2/treatments.tif"
60+
treatment_dates: ["2009-05-01"]
61+
treatment_method: "ratio"
62+
pesticide_durations: [120]
63+
pesticide_efficacy: 0.5
64+
use_quarantine: false
65+
quarantine_areas_file: ""
66+
quarantine_directions: ""
67+
68+
# dispersal
69+
natural_kernel_type: "cauchy"
70+
natural_dir: "NONE"
71+
anthropogenic_kernel_type: "cauchy"
72+
anthropogenic_dir: "NONE"
73+
# only used if anthropogenic_kernel_type == "network"
74+
network_files: [""]
75+
network_movement_types: ["walk"]
76+
network_min_distances: [0]
77+
network_max_distances: [0]
78+
network_weights: [1]
79+
80+
# host movement
81+
use_movements: false
82+
movements_file: ""
83+
84+
# stochasticity
85+
use_multiple_random_seeds: false
86+
multiple_random_seeds_file: null
87+
generate_stochasticity: true
88+
establishment_stochasticity: true
89+
movement_stochasticity: true
90+
dispersal_stochasticity: true
91+
establishment_probability: 0.5
92+
dispersal_percentage: 0.99
93+
use_spreadrates: false
94+
use_overpopulation_movements: false
95+
overpopulation_percentage: 0.75
96+
leaving_percentage: 0.5
97+
leaving_scale_coefficient: 5
98+
99+
# soil_pests
100+
use_soils: false
101+
soil_starting_pest_file: ""
102+
start_with_soil_populations: false
103+
dispersers_to_soils_percentage: 0
104+
105+
# validation and calibration
106+
infected_val_cal_file: ""
107+
108+
# calibration only parameters
109+
perform_calibration: false
110+
params_to_estimate: [true, true, true, true, false, false]
111+
prior_means: [0, 0, 0, 0, 0, 0]
112+
prior_cov_matrix: [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
113+
prior_number_of_observations: 0
114+
number_of_observations: 0
115+
success_metric: "MCC"
116+
verbose: true
117+
natural_kappa: 0
118+
anthropogenic_kappa: 0
119+
calibration_method: "ABC"
120+
# ABC Parameters
121+
generation_size: 1000
122+
number_of_generations: 7
123+
124+
# validation only
125+
perform_validation: false
126+
point_file: ""
127+
use_configuration: false
128+
129+
# Model API only never used unless you are pulling data from an S3 bucket in the cloud
130+
use_s3: false
131+
bucket: ""
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# File paths for input and output data
2+
input_path: "C:/Users/cjone/Projects/rpops/inst/extdata"
3+
output_path: "C:/Users/cjone/Projects/rpops/inst/extdata/simple2x2/outputs"
4+
5+
# pest parameters
6+
starting_infected_files: ["extdata/simple20x20/county_infected.gpkg"]
7+
parameter_means_file: "extdata/parameter_means_default.csv"
8+
parameter_cov_matrix_file: "extdata/parameter_cov_matrix_default.csv"
9+
pest_host_table: "extdata/pest_host_table_singlehost_nomort.csv"
10+
competency_table: "extdata/competency_table_singlehost.csv"
11+
county_level_infection_data: true
12+
use_initial_condition_uncertainty: false
13+
start_exposed: false
14+
latency_period: 2
15+
exposed_files: [""]
16+
17+
# host data
18+
host_files: ["extdata/simple20x20/host_w_sd2.tif"]
19+
total_populations_file: "extdata/simple20x20/all_plants.tif"
20+
use_host_uncertainty: false
21+
22+
# simulation settings
23+
random_seed: null
24+
start_date: "2008-01-01"
25+
end_date: "2008-03-31"
26+
time_step: "month"
27+
model_type: "SI"
28+
season_month_start: 1
29+
season_month_end: 12
30+
number_of_iterations: 10
31+
number_of_cores: 2
32+
output_frequency: "month"
33+
output_frequency_n: 1
34+
mask: null
35+
36+
# weather
37+
use_lethal_temperature: false
38+
lethal_temperature_file: "extdata/simple2x2/critical_temp_all_below_threshold.tif"
39+
lethal_temperature: -14
40+
lethal_temperature_month: 1
41+
use_overwinter_survival: false
42+
overwinter_survival_rate_month: 3
43+
overwinter_survival_rate_day: 15
44+
overwinter_survival_rates_file: "extdata/simple2x2/survival_rates.tif"
45+
use_temperature: false
46+
temperature_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
47+
temperature_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
48+
use_precipitation: false
49+
precipitation_coefficient_file: "extdata/simple2x2/temperature_coefficient.tif"
50+
precipitation_coefficient_sd_file: "extdata/simple2x2/coefficient_sd.tif"
51+
weather_type: "deterministic"
52+
53+
# mortality
54+
mortality_frequency: "month"
55+
mortality_frequency_n: 1
56+
57+
# treatments
58+
use_treatment: false
59+
treatments_file: "extdata/simple2x2/treatments.tif"
60+
treatment_dates: ["2008-02-01"]
61+
treatment_method: "ratio"
62+
pesticide_durations: [0]
63+
pesticide_efficacy: 0.5
64+
use_quarantine: false
65+
quarantine_areas_file: "extdata/simple20x20/initial_infection.tif"
66+
quarantine_directions: ""
67+
68+
# dispersal
69+
natural_kernel_type: "cauchy"
70+
natural_dir: "NONE"
71+
anthropogenic_kernel_type: "cauchy"
72+
anthropogenic_dir: "NONE"
73+
# only used if anthropogenic_kernel_type == "network"
74+
network_files: ["extdata/simple20x20/segments1.csv", "extdata/simple20x20/segments2.csv"]
75+
network_movement_types: ["walk", "walk"]
76+
network_min_distances: [100, 100]
77+
network_max_distances: [1000, 1000]
78+
network_weights: [1, 1000]
79+
80+
# host movement
81+
use_movements: false
82+
movements_file: ""
83+
84+
# stochasticity
85+
use_multiple_random_seeds: false
86+
multiple_random_seeds_file: null
87+
generate_stochasticity: true
88+
establishment_stochasticity: true
89+
movement_stochasticity: true
90+
dispersal_stochasticity: true
91+
establishment_probability: 0.5
92+
dispersal_percentage: 0.99
93+
use_spreadrates: false
94+
use_overpopulation_movements: false
95+
overpopulation_percentage: 0.75
96+
leaving_percentage: 0.5
97+
leaving_scale_coefficient: 5
98+
99+
# soil_pests
100+
use_soils: false
101+
soil_starting_pest_file: ""
102+
start_with_soil_populations: false
103+
dispersers_to_soils_percentage: 0
104+
105+
# validation and calibration
106+
infected_val_cal_file: ""
107+
108+
# calibration only parameters
109+
perform_calibration: false
110+
params_to_estimate: [true, true, true, true, false, false]
111+
prior_means: [0, 0, 0, 0, 0, 0]
112+
prior_cov_matrix: [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
113+
prior_number_of_observations: 0
114+
number_of_observations: 0
115+
success_metric: "MCC"
116+
verbose: true
117+
natural_kappa: 0
118+
anthropogenic_kappa: 0
119+
calibration_method: "ABC"
120+
# ABC Parameters
121+
generation_size: 1000
122+
number_of_generations: 7
123+
124+
# validation only
125+
perform_validation: false
126+
point_file: ""
127+
use_configuration: false
128+
129+
# Model API only never used unless you are pulling data from an S3 bucket in the cloud
130+
use_s3: false
131+
bucket: ""

0 commit comments

Comments
 (0)