Skip to content
 
 

Repository files navigation

Late blight and sudden oak death model comparison paper workflow repository

Data requirements

PoPS uses multiple inputs for infections, weather, and settings, i.e. host, etc. We relied on Daymet for weather, Cropland Data Layer for host and all populations, and our infection data for late blight came from usablight.org, The National Plant Diagnostic Network, and Twitter via Saffer et al. 2025.

Late blight

The data were in a tabular format and were assigned based on coordinates to a raster in county and state. Daymet's min. and max. temperatures, vapor pressure, and daylength rasters were processed in R to calculate an hourly mean temperature and relative humidity. The mean temperature and relative humidity were then used to calculate a weather coefficient for use in PoPS.

Late blight was also modeled with a weather risk model, "WRM". We started this project calling it "DSV", so if that acronym turns up, it's referring to the same model/values. This model used the same mean temperature and relative humdity estimates used in PoPS. The WRM uses if-then logic to assign a score from 0-4, 0 equating to no risk and 4, incipient infection.

The SDM used several predictor inputs. The flexsdm library will do almost all of the work in the script. It will take some time to get the predictors' original files in the proper directories before running the script. See the Methods section of the manunscript for more specifics on which predictors were used. The selection is up to the author.

SOD

To forecast SOD with PoPS, we used infection data collected by the Oregon Department of Forestry and U.S. Forest Service in Curry County, Oregon. Weather inputs were Daymet temperatures and precipitation. Host and total populations data came from the LEMMA product from Oregon State.

SOD was modeled with a WRM that used the same range of scores as that of late blight, however with the thresholds at different precipitation and temperature values than those of late blight. Mean temperature, calculated from Daymet temperature data, and Daymet precipitation were used in the if-then logic for the WRM for SOD.

The SDM for SOD used the same predictors as late blight, except the mean of relative humidity. That was only used for late blight. SDMs for both pathosystems used two models in the ensemble: GLM and MaxEnt.

Guide

This is a sort of map to indicate how the scripts above are used to create the results for the three models. If a script above doesn't appear in the guide, then it was probably used to create a figure or do some ancillary calculations, like SOD_WRM_temp_curve_threshold_estimation.R.

*WRM*
	_late blight_:
		late_blight_weather_time_prep.R: calculates the required inputs for ...
		
		late_blight_temp_hour.R; late_blight_WRM_calc.R >>> late_blight_wc_and_WRM.R 
			
	_SOD_:
		SOD_wrm_calculation.R
		

*SDM*
	_late blight_:
		run_sdmLB.R
		
		SDM_pred_reduction_loop.R
		
		rerun run_sdmLB with the reduced set of predictors
		
	_SOD_:
		run_sdmSOD.R
		
		SDM_pred_reduction_loop.R
		
		rerun run_sdmSOD with the reduced set of predictors
		
		
*PoPS*
	_late blight_:
		late_blight_infection_creation.R
		late_blight_host_nonhost_creation.R
		[weather coeffient from late_blight_wc_and_WRM.R]
		config
		calibration
		
	_SOD_:
		

About

This is the repository for code used in the publication of the same name.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages