mmrefpoints
mmrefpoints: Projecting long-term marine mammal abundance with bycatch - Published in JOSS (2022)
Science Score: 98.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
bycatch
fisheries-management
marine-mammals
r
shiny
Last synced: 6 months ago
·
JSON representation
·
Repository
A package for simulating marine mammal abundance and calculating reference points.
Basic Info
Statistics
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 4
- Releases: 11
Topics
bycatch
fisheries-management
marine-mammals
r
shiny
Created almost 5 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
Changelog
Contributing
License
Code of conduct
Citation
Zenodo
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# mmrefpoints: Projecting long-term marine mammal abundance with bycatch
[](https://github.com/mcsiple/mmrefpoints/issues)
[](https://doi.org/10.5281/zenodo.6336011)
`mmrefpoints` is an R package that generates marine mammal population projections based on starting abundance, life history, and bycatch rates, based on the BALEEN II population dynamics model.
## Authors
Margaret C. Siple
André E. Punt
Tessa B. Francis
Philip S. Hammond
Dennis Heinemann
Kristy J. Long
Jeffrey E. Moore
Maritza Sepúlveda
Randall R. Reeves
Guðjón Már Sigurðsson
Gísli Víkingsson
Paul R. Wade
Rob Williams
Alexandre N. Zerbini
## Contents
- [Need](#need)
- [Details](#details)
- [Installation](#installation)
- [Contributing](#contributing)
- [References](#references)
## Need
Stakeholders involved in the management of marine mammal bycatch in marine fisheries need tools to simulate the effects of management decisions on marine mammal populations. Population models are a key part of this process. This package contains the tools to simulate marine mammal populations and an app that shows model outputs in a user-friendly way.
## Details
This R package contains the functions used in the Marine Mammal Bycatch Impacts Exploration Tool (MMBIET), a Shiny app built by Margaret Siple, André Punt, and the Ocean Modeling Forum's [Marine Mammal Bycatch Working Group](https://oceanmodelingforum.org/working-groups/marine-mammal-bycatch-working-group/).
The functions in this package, and the Shiny app, are intended to be used in cases where data on bycatch and/or population status are sparse or unavailable.
Our target audience is stakeholders interested in projecting marine mammal populations to examine the impacts of bycatch. Those code could also be used as a teaching tool, or for anyone who is more familiar with R than FORTRAN and wants to use some components of the BALEEN II model (Punt 1999).
## Installation
This package can be downloaded directly from GitHub:
```
devtools::install_github("mcsiple/mmrefpoints")
```
* NOTE: For Linux users, if you run into an error about the `magick` package, try installing `magick` first using the instructions [here](https://cran.r-project.org/web/packages/magick/vignettes/intro.html).
## Contributing [](https://github.com/dwyl/esta/issues)
### Community guidelines
We would like this package to be sustainable in the long term and welcome contributions. If you are interested in contributing, please check out our [Contribution Guide](https://github.com/mcsiple/mmrefpoints/blob/master/CONTRIBUTING.md).
Bugs and enhancements are tracked through GitHub issues. If you have a bug to report, there is a [bug report template](https://github.com/mcsiple/mmrefpoints/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) to help maximize the benefit of your report for everyone. The same goes for requests for [enhancements](https://github.com/mcsiple/mmrefpoints/blob/master/.github/ISSUE_TEMPLATE/feature_request.md).
## Accessing the MMBIET Shiny app
The functions in this package can also be accessed through the Shiny app for this project, which is located online [here](https://msiple.shinyapps.io/mmrefpoints/). The app provides an easy way to explore outcomes and print out a report with inputs and outputs.
The mmBIET Shiny app can also be accessed through the R package:
```{r eval=FALSE}
library(mmrefpoints)
run_app()
```
## Functionality
The foundation of this package is an age-structured population projection model with bycatch mortality. Key functions in this package:
```{r eval=TRUE,echo=FALSE, results='asis'}
x <- data.frame("Function" = c("dynamics()",
"projections()"),
"Purpose" = c("Generate a single trajectory for marine mammal population size",
"Generate several trajectories for marine mammal population size"))
knitr::kable(x)
```
To create a single projection for a marine mammal population, use the `dynamics()` function:
```{r message=FALSE}
x <- mmrefpoints::dynamics(lh.params = list(S0 = 0.944, S1plus = 0.99,
K1plus = 9000, AgeMat = 17, z = 2.39, nages = 25, lambdaMax = 1.04),
InitDepl = 0.6,
ConstantCatch = NA,
ConstantF = rep(0.01, times = 100),
nyears = 100)
plot(1:100, x$TotalPop, type = 'l', xlab = "Year", ylab = "Population size")
```
Variation in the model is introduced through variation in bycatch mortality over time and uncertainty in the estimate of starting abundance.
```{r message=FALSE}
x <- mmrefpoints::projections(
NOut = 1,
ConstantBycatch = list(Catch = 50, CV = 0.7),
InitDepl = 0.6,
lh.params = list(
S0 = 0.944, S1plus = 0.99,
K1plus = 9000, AgeMat = 18, nages = 25, z = 2.39, lambdaMax = 1.04
),
nyears = 100, obs_CV = 0.1
)
# One trajectory with bycatch uncertainty and an observation CV:
plot(x$trajectories, type = "l", xlab = "Year", ylab = "Population size")
```
Projections shown in the app are based on simulation parameters provided by the user. They include a "high", "medium", and "low" bycatch level based on a user-determined range.
```{r message=FALSE}
x_lo <- mmrefpoints::projections(
NOut = 100,
ConstantBycatch = list(Catch = 0, CV = 0),
InitDepl = 0.6,
lh.params = list(
S0 = 0.944, S1plus = 0.99,
K1plus = 9000, AgeMat = 18, nages = 25, z = 2.39, lambdaMax = 1.04
),
nyears = 100, obs_CV = 0.1
)
x_med <- mmrefpoints::projections(
NOut = 100,
ConstantBycatch = list(Catch = 50, CV = 0.7),
InitDepl = 0.6,
lh.params = list(
S0 = 0.944, S1plus = 0.99,
K1plus = 9000, AgeMat = 18, nages = 25, z = 2.39, lambdaMax = 1.04
),
nyears = 100, obs_CV = 0.1
)
x_hi <- mmrefpoints::projections(
NOut = 100,
ConstantBycatch = list(Catch = 200, CV = 0.7),
InitDepl = 0.6,
lh.params = list(
S0 = 0.944, S1plus = 0.99,
K1plus = 9000, AgeMat = 18, nages = 25, z = 2.39, lambdaMax = 1.04
),
nyears = 100, obs_CV = 0.1
)
mmrefpoints::plot_proj(high = x_hi,
med = x_med,
low = x_lo,
years.plot = 100,
ylims = c(0, 9000),
K1plus = 9000)
```
## References
Punt, A. E. 1999. Annex R: A full description of the standard Baleen II model and some variants thereof. Division of Marine Research, CSIRO Marine Laboratories, Hobart, Australia. Available from https://duwamish.lib.washington.edu/uwnetid/illiad.dll?Action=10&Form=75&Value=1651729 (accessed August 7, 2018).
## How to cite
To cite this package or the MMBIET Shiny app, please use the following citation:
> Margaret C. Siple, André E. Punt, Tessa B. Francis, Philip S. Hammond, Dennis Heinemann, Kristy J. Long, Jeffrey E. Moore,
Randall R. Reeves, Sepúlveda Maritza, Guðjón Már Sigurðsson, Gísli Víkingsson, Paul R. Wade, Rob Williams and Alexandre N.
Zerbini (NA). mmrefpoints: Project Marine Mammal Populations and Calculate Reference Points. R package version 1.0.1.
url: doi: 10.5281/zenodo.4758401
NOTE that if you want to cite all versions of the software, you can use the doi [10.5281/zenodo.4758401](https://zenodo.org/record/5949332#.Yf1infXMI-Q). When additional releases happen, there will be a doi for each new release as well.
Owner
- Name: Margaret Siple
- Login: mcsiple
- Kind: user
- Location: Seattle, WA
- Repositories: 2
- Profile: https://github.com/mcsiple
Forage fish, food webs, bycatch, and fisheries management
JOSS Publication
mmrefpoints: Projecting long-term marine mammal abundance with bycatch
Published
March 15, 2022
Volume 7, Issue 71, Page 3888
Authors
Margaret C. Siple
Resource Assessment and Conservation Engineering Division, Alaska Fisheries Science Center, National Oceanic and Atmospheric Administration, Seattle, WA, 98115, USA
Resource Assessment and Conservation Engineering Division, Alaska Fisheries Science Center, National Oceanic and Atmospheric Administration, Seattle, WA, 98115, USA
André E. Punt
School of Aquatic and Fishery Sciences, University of Washington, 1122 NE Boat St, Seattle, WA 98115
School of Aquatic and Fishery Sciences, University of Washington, 1122 NE Boat St, Seattle, WA 98115
Tessa B. Francis
Puget Sound Institute, University of Washington Tacoma, 326 East D Street, Tacoma, WA 98421, USA
Puget Sound Institute, University of Washington Tacoma, 326 East D Street, Tacoma, WA 98421, USA
Philip S. Hammond
Sea Mammal Research Unit, Scottish Oceans Institute, University of St Andrews, Fife KY16 8LB, UK
Sea Mammal Research Unit, Scottish Oceans Institute, University of St Andrews, Fife KY16 8LB, UK
Kristy J. Long
Office of Protected Resources, NOAA's National Marine Fisheries Service, Silver Spring, MD 20910, USA
Office of Protected Resources, NOAA's National Marine Fisheries Service, Silver Spring, MD 20910, USA
Maritza Sepúlveda
Facultad de Ciencias, Universidad de Valparaíso, Gran Bretaña 1111, Playa Ancha, Valparaíso, Chile
Facultad de Ciencias, Universidad de Valparaíso, Gran Bretaña 1111, Playa Ancha, Valparaíso, Chile
Tags
Shiny marine mammal bycatchCitation (CITATION.cff)
cff-version: 0.1.0
message: "If you use this package or the Shiny app within, please cite it as below."
authors:
- family-names: Siple
given-names: Margaret C.
orcid: https://orcid.org/0000-0002-4260-9856
- family-names: Punt
given-names: André E.
orcid: https://orcid.org/0000-0001-8489-2488
- family-names: Francis
given-names: Tessa B.
orcid: https://orcid.org/0000-0002-3383-5392
- family-names: Hammond
given-names: Philip S.
orcid: https://orcid.org/0000-0002-2381-8302
- family-names: Heinemann
given-names: Dennis
orcid: https://orcid.org/0000-0002-1434-2445
- family-names: Long
given-names: Kristy J.
orcid: https://orcid.org/0000-0001-6970-0935
- family-names: Moore
given-names: Jeffrey E.
orcid: https://orcid.org/0000-0003-3715-7442
- family-names: Reeves
given-names: Randall R.
orcid: https://orcid.org/0000-0002-6512-6507
- family-names: Sepúlveda
given-names: Maritza
orcid: https://orcid.org/0000-0002-1403-176X
- family-names: Sigurðsson
given-names: Guðjón Már
orcid: https://orcid.org/0000-0001-9390-6693
- family-names: Víkingsson
given-names: Gísli
orcid: https://orcid.org/0000-0002-4501-193X
- family-names: Wade
given-names: Paul R.
orcid: https://orcid.org/0000-0003-2428-9323
- family-names: Williams
given-names: Rob
orcid: https://orcid.org/0000-0001-7496-453X
- family-names: Zerbini
given-names: Alexandre N.
orcid: https://orcid.org/0000-0002-9776-6605
title: mcsiple/mmrefpoints: Journal submission pre-release
version: v.1.0.1
date-released: 2022-3-8
GitHub Events
Total
Last Year
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| mcsiple | m****e@g****m | 391 |
| Kyle Niemeyer | k****r@f****m | 1 |
Committer Domains (Top 20 + Academic)
fastmail.com: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 62
- Total pull requests: 1
- Average time to close issues: about 2 months
- Average time to close pull requests: 3 minutes
- Total issue authors: 6
- Total pull request authors: 1
- Average comments per issue: 1.37
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mcsiple (45)
- ChristineStawitz-NOAA (8)
- tbrown122387 (3)
- MargaretSiple-NOAA (3)
- ha0ye (2)
- grantdadams (1)
Pull Request Authors
- kyleniemeyer (1)
Top Labels
Issue Labels
manuscript (10)
bug (5)
enhancement (5)
help wanted (5)
documentation (5)
exampleneeded (4)
inputs (3)
testneeded (2)
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 3.5.0 depends
- DT * imports
- attempt * imports
- config * imports
- dplyr * imports
- extrafont * imports
- forcats * imports
- formattable * imports
- gapminder * imports
- gganimate * imports
- ggplot2 * imports
- glue * imports
- golem * imports
- gridExtra * imports
- htmltools * imports
- kableExtra * imports
- magick * imports
- magrittr * imports
- pkgload * imports
- plotly * imports
- popbio * imports
- processx * imports
- purrr * imports
- rlang * imports
- rmarkdown * imports
- scales * imports
- shiny * imports
- shiny.i18n * imports
- shinyBS * imports
- shinythemes * imports
- stringr * imports
- tableHTML * imports
- tibble * imports
- tidyr * imports
- xtable * imports
- knitr * suggests
- testthat >= 3.0.0 suggests