Open Sustainable Technology
A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.
Browse accepted projects | Review proposed projects | Propose new project | Open Issues
PoPS
This is the R package for simulating spread of pests and pathogens.
https://github.com/ncsu-landscape-dynamics/rpops
insect modeling pathogen pathogen-spread pest pests pops simulation
Last synced: about 18 hours ago
JSON representation
Repository metadata
PoPS (Pest or Pathogen Spread) R Package
- Host: GitHub
- URL: https://github.com/ncsu-landscape-dynamics/rpops
- Owner: ncsu-landscape-dynamics
- License: gpl-3.0
- Created: 2018-08-03T14:10:34.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T15:41:05.000Z (10 days ago)
- Last Synced: 2024-05-02T17:54:05.323Z (9 days ago)
- Topics: insect, modeling, pathogen, pathogen-spread, pest, pests, pops, simulation
- Language: R
- Homepage: https://ncsu-landscape-dynamics.github.io/rpops/
- Size: 55.3 MB
- Stars: 10
- Watchers: 9
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README
# PoPS (Pest or Pathogen Spread) R Package
[![R-CMD-check](https://github.com/ncsu-landscape-dynamics/rpops/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ncsu-landscape-dynamics/rpops/actions/workflows/R-CMD-check.yaml)
[![lint](https://github.com/ncsu-landscape-dynamics/rpops/actions/workflows/lint.yaml/badge.svg)](https://github.com/ncsu-landscape-dynamics/rpops/actions/workflows/lint.yaml)
[![codecov](https://codecov.io/gh/ncsu-landscape-dynamics/rpops/branch/main/graph/badge.svg)](https://codecov.io/gh/ncsu-landscape-dynamics/rpops)
[![DOI](https://zenodo.org/badge/143435350.svg)](https://zenodo.org/badge/latestdoi/143435350)
## Overview
This is an R package for simulating the spread of pests and pathogens. The package is an R package with multiple functions built around the PoPS (Pest or Pathogen Spread) model implemented in the C++ library maintained in the [PoPS Core Repository](https://github.com/ncsu-landscape-dynamics/pops-core).
PoPs is a stochastic spread model of pests and pathogens in forest and agricultural landscapes to learn more visit [popsmodel.org](https://popsmodel.org/). The R package provides an easy way for researchers to calibrate, validate, and test what if scenarios of treatment interventions. The model is also available in GRASS GIS you can install and use [r.pops.spread](https://github.com/ncsu-landscape-dynamics/r.pops.spread) to run the model in GRASS GIS.
## Installation
If you are on Windows, you need to first install
[Rtools](https://cran.r-project.org/bin/windows/Rtools/) to get a C++ compiler that R can use.### Version Specific
If you want to install a specific version just change the version number.
```R
install.packages("remotes")
remotes::install_github("ncsu-landscape-dynamics/rpops", ref = "v2.0.0")
library(PoPS)```
### Development Version```R
install.packages("remotes")
remotes::install_github("ncsu-landscape-dynamics/rpops")
library(PoPS)```
## Features
the PoPS package in R is built on top of PoPS Core C++ library includes:* Susceptible-infected (`SI`) and susceptible-exposed-infected (`SEI`) model types (`model_type`, `latency_period`).
* Host mortality tracking (`mortality_rate`, `mortality_time_lag`, `mortality`).
* Host removal and pesticide application treatments (`treatments`, `treatment_date`, `pesticide_duration`).
* Host resistance based on pesticide application treatments (`pesticide_duration` > 0).
* Treatments applied only to a ratio of hosts (`treatment_application`).
* Yearly pest removal based on lethal temperature (`lethal_temperature`, `lethal_month`).
* Two different dispersal kernels (`natural_dispersal_kernel`, `anthropogenic_dispersal_kernel`).
* Cauchy, Exponential, Uniform, Power-law, Deterministic neighbor, Hyperbolic-Secant, Gamma, Weibull, Normal, and Logistic radial dispersal kernels use Von Mises distribution.
* Seasonal spread (`seasonality` in months).
* Host movement for animals moving from farm to farm or plants via nursery trade (`use_movements`, `movements_file`).
* Reduced stochasticity options (`generate_stochasticity`, `establishment_stochasticity`, `movement_stochasticity`) and deterministic versions of kernels (`deterministic`) other required parameters if reducing stochasticity are (`dispersal_percentage`, `establishment_probability`).
* Spread rate measurement in 4 cardinal directions (`west_rate`, `east_rate`, `south_rate`, `north_rate`) when (`use_spreadrates`) is true.
* Distance to quarantine in 4 cardinal directions (`north_distance_to_quarantine`, `south_distance_to_quarantine`, `east_distance_to_quarantine`, `west_distance_to_quarantine`) when (`use_quarantine`) is true and (`quarantine_areas_file`) is provided.
* Probability of quarantine escape (`escape_probability`).
* Overpopulation function (individuals in areas of high population leave the area and disperse longer distances on average) (`use_overpopulation`, `overpopulation_percentage`, `leaving_percentage`, `leaving_scale_coefficient`).
* Flexible output frequency with n number of days, weeks, months, or years as options (`output_frequency`, `output_frequency_n`).### Functions in rpops
* `calibrate:` Calibration of the model parameters using either MCMC (markov chain monte carlo) or ABC (approximate bayesian computation).
* `validate:` Validation of the model using quantiy, allocation, and configuration disagreement.
* `pops_multirun:` Parallel execution of multiple stochastic runs (`number_of_cores` used to set cores used if left NULL defaults to using n - 1 cores on the machine). Outputs statistics of infected/infested hosts across multiple runs (`simulation_mean`, `single_run`, `simulation_sd`, `simulation_min`, `simulation_max`), current state using the median (`infected`, `exposed`, and `susceptible`), average and standard deviations whole area statistics (`number_infecteds`, `infected_areas`), and probability of infection (`probability`) which is the percent of model runs that a cell has at least one infestation/infection.
* `pops:` Runs a single stochastic run of the model. This function is primarily used for automated testing of model functionality.## How to cite
If you use this software or code, please cite the following papers:
* Jones, C., Jones, S., Petrasova, A., Petras, V., Gaydos, D.,
Skrip, M., Takeuchi, Y., Bigsby, K., and Meentemeyer, R., 2021.
Iteratively forecasting biological invasions with PoPS and a little help from
our friends.
*Frontiers in Ecology and the Environment*
[DOI: 10.1002/fee.2357](https://doi.org/10.1002/fee.2357)In case you are using the automatic management feature in rpops or the
steering version of r.pops.spread (from the branch steering), please
cite also:* Petrasova, A., Gaydos, D.A., Petras, V., Jones, C.M., Mitasova, H. and
Meentemeyer, R.K., 2020.
Geospatial simulation steering for adaptive management.
*Environmental Modelling & Software* 133: 104801.
[DOI: 10.1016/j.envsoft.2020.104801](https://doi.org/10.1016/j.envsoft.2020.104801)In addition to citing the above paper, we also encourage you to
reference, link, and/or acknowledge specific version of the software
you are using for example:* *We have used rpops R package version 1.0.0 from
*.## Contributing
Please see the [pops-core](https://github.com/ncsu-landscape-dynamics/pops-core#readme) repository for contributing best practices and release policies. Other than that, just open pull requests against this repo. We suggest following the [Style Guide from Hadley](http://adv-r.had.co.nz/Style.html) for R code.
## Authors and contributors
### Authors
_(alphabetical order)_
* Chris Jones
* Vaclav Petras
* Anna Petrasova### Contributors
_(alphabetical order)_
* Zexi Chen
* Devon Gaydos
* Margaret Lawrimore
* Nick Kruskamp
* Francesco ToniniSee Git commit history, GitHub insights, or CHANGELOG.md file for details about
contributions.## License
Permission to use, copy, modify, and distribute this software and its documentation
under the terms of the GNU General Public License version 2 or higher is hereby
granted. No representations are made about the suitability of this software for any
purpose. It is provided "as is" without express or implied warranty.
See the GNU General Public License for more details.
Owner metadata
- Name: NCSU Landscape Dynamics Group
- Login: ncsu-landscape-dynamics
- Email:
- Kind: organization
- Description:
- Website: http://geospatial.ncsu.edu/landscapedynamics/
- Location: Raleigh, NC, USA
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/10871336?v=4
- Repositories: 21
- Last ynced at: 2023-02-28T03:15:27.104Z
- Profile URL: https://github.com/ncsu-landscape-dynamics
GitHub Events
Total
- Create event: 151
- Commit comment event: 2
- Release event: 6
- Issues event: 157
- Watch event: 17
- Delete event: 141
- Issue comment event: 174
- Push event: 961
- Pull request review event: 27
- Pull request review comment event: 31
- Pull request event: 209
- Fork event: 10
Last Year
- Create event: 22
- Commit comment event: 1
- Issues event: 31
- Watch event: 4
- Delete event: 23
- Issue comment event: 39
- Push event: 152
- Pull request review comment event: 15
- Pull request review event: 14
- Pull request event: 37
- Fork event: 4
Committers metadata
Last synced: 2 days ago
Total Commits: 486
Total Committers: 8
Avg Commits per committer: 60.75
Development Distribution Score (DDS): 0.056
Commits in past year: 24
Committers in past year: 3
Avg Commits per committer in past year: 8.0
Development Distribution Score (DDS) in past year: 0.25
Name | Commits | |
---|---|---|
ChrisJones687 | c****8@g****m | 459 |
Chris Michael Jones | c****5@w****u | 11 |
Anna Petrasova | k****a@g****m | 5 |
Vaclav Petras | w****s@g****m | 4 |
nfkruska | n****a@n****u | 4 |
Devon Gaydos | d****s@n****u | 1 |
cyborginhas | 6****s | 1 |
malawrim | 6****m | 1 |
Committer domains:
- ncsu.edu: 2
- wolftech.ad.ncsu.edu: 1
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 58
Total pull requests: 75
Average time to close issues: 5 months
Average time to close pull requests: 10 days
Total issue authors: 4
Total pull request authors: 6
Average comments per issue: 0.86
Average comments per pull request: 1.25
Merged pull request: 69
Bot issues: 0
Bot pull requests: 0
Past year issues: 19
Past year pull requests: 23
Past year average time to close issues: 23 days
Past year average time to close pull requests: 11 days
Past year issue authors: 2
Past year pull request authors: 4
Past year average comments per issue: 0.26
Past year average comments per pull request: 1.61
Past year merged pull request: 19
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- ChrisJones687 (39)
- nkruskamp (10)
- wenzeslaus (6)
- agimenezromero (3)
Top Pull Request Authors
- ChrisJones687 (57)
- petrasovaa (7)
- nkruskamp (4)
- cyborginhas (3)
- wenzeslaus (3)
- John-Polo (1)
Top Issue Labels
- enhancement (17)
- documentation (8)
- bug (8)
- help wanted (1)
Top Pull Request Labels
- enhancement (4)
- hacktoberfest-accepted (2)
- documentation (1)
Dependencies
- R >= 3.3.0 depends
- MASS * imports
- Metrics * imports
- Rcpp >= 0.12.19 imports
- aws.s3 * imports
- doParallel * imports
- foreach * imports
- iterators * imports
- landscapemetrics * imports
- lubridate * imports
- methods * imports
- parallel * imports
- raster >= 3.5 imports
- sp * imports
- stats * imports
- terra >= 1.5 imports
- utils * imports
- covr * suggests
- igraph * suggests
- knitr * suggests
- markdown * suggests
- pkgdown * suggests
- qpdf * suggests
- rcmdcheck * suggests
- remotes * suggests
- rgdal * suggests
- rlist * suggests
- rmarkdown * suggests
- testthat * suggests
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v2 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
Score: 5.2574953720277815