Coder Social home page Coder Social logo

noaa-afsc / berchukseals-haulout Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 349.51 MB

Repository and research compendium in support of the manuscript "Spring haul-out behavior of seals in the Bering and Chukchi seas." Maintained by Josh London (@jmlondon / [email protected])

License: Other

R 4.74% HTML 82.18% Lua 1.17% TeX 11.87% Dockerfile 0.02% PLpgSQL 0.03%
marine-mammals manuscript compendium alaska bearded-seal ribbon-seal spotted-seal haul-out behavior protected-species

berchukseals-haulout's Introduction

DOI

Spring haul-out behavior of seals in the Bering and Chukchi seas

Josh M. London1,✉, Paul B. Conn1, Stacie M. Koslovsky1, Erin L. Richmond1, Jay M. Ver Hoef1, Michael F. Cameron1, Justin Crawford2, Andrew L. Von Duyke3, Lori Quakenbush2, and Peter L. Boveng1

  1. Marine Mammal Laboratory, Alaska Fisheries Science Center, National Marine Fisheries Service, NOAA, Seattle, Washington, USA
  2. Arctic Marine Mammals Program, Alaska Department of Fish and Game, Fairbanks, Alaska, USA
  3. Department of Wildlife Management, North Slope Borough, Utqiaġvik, Alaska, USA

✉ Correspondence: Josh M. London [email protected]

This repository serves as the research compendium in support of the above titled paper. As the manuscript works its way through peer review and the publications process, additional reproducibility features (e.g. devcontainer) and documentation of key revisions and releases

Major releases of the research compendium are published and archived with Zenodo https://doi.org/10.5281/zenodo.4638221

Draft Manuscript Under Active Development

Please note this manuscript is still in peer review and not final. Changes to results, code, and the manuscript are still possible and, until, final publication the latest pre-print at bioRxiv should be cited.

Contents

The analysis directory contains:

  • 📁 paper: R Markdown source document for manuscript. Includes code to reproduce the figures and tables generated by the analysis. It also has a rendered PDF, London_HauloutBehavior.pdf, suitable for reading (the code is replaced by figures and tables in this file)
  • 📁 figures: figures generated
  • 📁 templates: template files and scripts.

The data directory contains

  • 📁 data: data used for model fits and final model output
  • :file: data_raw: data provided by partners from ADFG and NSB

{targets} and {renv} packages

This repository relies heavily on the {targets} and {renv} packages for management of analysis pipelines and reproducibility.

The dependency graph for our pipeline is shown below

Acknowledgements

We recognize that the species and ecosystems we studied are within the ancestral and present-day environs of the Inpuiat and Yup’ik people who, through many uncredited contributions of traditional knowledge, provided early western naturalists and scientists with much of what gets described as the ‘basic biology’ of Arctic seals. The deployment of bio-logging devices used in this study were often done in collaboration with Alaska Native seal hunters and the approval of their communities. We would like to especially acknowledge the communities of Kotzebue, Koyuk, Nome, Nuiqsut, Scammon Bay, St. Michael, Utqiaġvik, and Ulguniq (Wainwright) and the following individuals: James Adams, Jeff Barger, David Barr, Wendell Booth, Cyrus Harris, Nereus ‘Doc’ Harris, Grover Harris, Lee Harris, Tom Jones, Frank Garfield, Brenda Goodwin, Henry Goodwin, John Goodwin, Pearl Goodwin, Willie Goodwin, Brett Kirk, Noah Naylor, Virgil Naylor Jr., Virgil Naylor Sr., Dan Savetilik, Chuck Schaeffer, Ross Schaeffer, Allen Stone, and Randy Toshavik from Kotzebue; Merlin Henry from Koyuk; Tom Gray from Nome; Vernon Long and Richard Tukle from Nuiqsuit; Morgan Simon, River Simon, and Al Smith from Scammon Bay; Alex Niksik Jr. from St. Michael; Billy Adams, James Aiken, Tim Aiken, Howard Kittick, Gilbert Leavitt, Isaac Leavitt, J.R. Leavitt, and Joe Skin from Utqiaġvik, Alaska; Mary Ellen Ahmaogak, Enoch Oktollik, Shawn Oktollik, Stacey Osborn, and Fred Rexford from Ulguniq.

We are grateful for the assistance in catching and sampling seals by Ryan Adam, James Bailey, Michelle Barbieri, John Bengtson, Gavin Brady, Vladamir Burkanov, Cynthia Christman, Sarah Coburn, Shawn Dahle, Rob Delong, Stacy DiRocco, Deb Fauquier, Shannon Fitzgerald, Kathy Frost, Scott Gende, Tracey Goldstein, Jeff Harris, Jason Herreman, Markus Horning, John Jansen, Shawn Johnson, Charles Littnan, Lloyd Lowry, Brett McClintock, Erin Moreland, Mark Nelson, Justin Olnes, Lorrie Rea, Bob Shears, Gay Sheffield, Brent Stewart, Dave Withrow, and Heather Ziel. We also appreciate the commitment to science and safety by all officers and crew of the NOAA ship Oscar Dyson, the NOAA ship MacArthur II, and the RV Thomas G. Thompson.

Telemetry data from the Alaska Department of Fish and Game (ADF&G) and the North Slope Borough Department of Wildlife Management (NSB) were important contributions to the findings presented here. Deployments in the western Bering Sea were done in collaboration with Russian colleagues and North Pacific Wildlife.

The findings and conclusions in the paper are those of the author(s) and do not necessarily represent the views of the National Marine Fisheries Service, NOAA. Any use of trade, product, or firm names does not imply an endorsement by the U.S. Government. Funding for this study was provided by the U.S. National Oceanic and Atmospheric Administration. The field work was conducted under the authority of Marine Mammal Protection Act Research Permits Nos. 782-1676, 782-1765, 15126, and 19309 issued by the National Marine Fisheries Service, and Letters of Assurance of Compliance with Animal Welfare Act regulations, Nos. A/NW 2010-3 and A/NW 2016-1 from the Alaska Fisheries Science Center/Northwest Fisheries Science Center Institutional Animal Care and Use Committee (IACUC). ). Funding to ADF&G for tagging seals was provided by the Bureau of Ocean Energy Management (No. M13PC0015 for work in Kotzebue, Alaska in 2009) and the Office of Naval Research (No. N00014-16-1-3019). ADF&G and NSB field work was covered by Research Permits Nos. 358-1585, 358-1787, 15324, and 20466 and by ADF&G IACUC permits Nos. 06-16, 09-21, 2014-03, 2015-25, 2016-23, 0027-2017-27, 0027-2018-29, 0027-2019-041.

Inspiration

I would like to provide special acknowledgement to Ben Marwick and Carl Boetinger. This research compendium borrows heavily from Ben’s {rrtools} package. Carl’s example research compendiums (https://github.com/cboettig/noise-phenomena and https://github.com/cboettig/nonparametric-bayes) were also of great use when adapting the structure to meet my needs.

berchukseals-haulout's People

Contributors

jmlondon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

berchukseals-haulout's Issues

underlying data inconsistencies

I've identified some data inconsistencies and data not included in the analysis that should be included. The main reason for this seems tied to the deployments not having a specified 'end date' in our internal telemetry database.

At a minimum, the issue impacts the following spenos:
PL2019_9001,PL2019_9002,PL2019_9003,PL2019_9004,PL2019_9005,PL2019_9006,
EB2019_9001

Will work with @staciekoslovsky-noaa to resolve in the database and proceed with additional data integrity tests.

E.1 - ensure all review and editorial comments are addressed

PeerJ Staff Note: Please ensure that all review and editorial comments are addressed in a response letter and any edits or clarifications mentioned in the letter are also inserted into the revised manuscript where appropriate.

Checklist

  • Addressed in paper
  • Addressed in reply letter

Re-Format for PeerJ

If we decide to submit to PeerJ instead of Royal Society (see #13), then there will need to be some editing and reformating of the manuscript

Add Calculations for Comparative Correction Factor Values

The following paragraph starts line ~1338

Predictions of absolute haul-out probability in this paper were somewhat
different than those previously reported for these species, especially for
bearded seals. For instance, Ver Hoef et al. [-@verhoef2014a)] and Conn et al.
[-@conn2014a] used haul-out correction factors with maximums of 0.66 for bearded
seals, 0.62 for ribbon seals, and 0.54 for spotted seals, where maximums
corresponded to times near solar noon in mid-late May. Applying models that
ignore age, sex, and year effects, these probabilities were 0.38, 0.72, and
0.60, respectively, under the current analysis framework. Our current estimates
estimates of haul-out probability reflect increased sample sizes in terms of
number of animals, but also improvements to the way data were prepared prior to
analysis.

The values of 0.38, 0.72, and 0.60 need to be re-calculated with the current models.

R2.4 - check typo on line 263

Please check the possible typo in line 263...'only -99% of our observations fell...'

Checklist

  • Addressed in paper
  • Addressed in reply letter

R2.2 - add limitations section to discussion

One suggestion I would share with the authors is the addition of a limitations section in the discussion. The limitations were outlined throughout the methods, but a succinct accounting of these limitations in the discussion would allow readers who do not want to carefully dissect all of the modeling in the methods to be able to better interpret the robustness of the results and conclusions.

Checklist

  • Addressed in paper
  • Addressed in reply letter

R1.3 - Improve Plot Titles & Captions

Reviewer 1 comments:

  • "Please use standard figure titling and not use a statement that should below in a PowerPoint slide or in your Results and Discussion section."
  • "Your plot indicates a y-axis of local solar hour which varies from 0 to 24.  This is clearly not fixed at local noon."

Checklist

  • Addressed in paper
  • Addressed in reply letter

R2.5 - explain/improve attribution of statistical significance

The authors need to explain more how they are attributing statistical significance. For example, in lines 344-345, they ascribe strong influence of temperature with a p-value of 0.064.

Not to be one who is fixated on a p-value of 0.05 denoting significance, I was a bit surprised to see the same authors, in lines 364-366, to state that there is 'no indication that the observed trend is meaningful'for spotted seal adult females having an R2 of 0.767, p=0.022. If the extent of sea ice explains nearly 80% of the variance in peak haul-out probability, how is it that the author's call this a 'trend'? This requires more explanation. As does the statement in line 427-428.

Checklist

  • Addressed in paper
  • Addressed in reply letter

update model specification

After some discussion and exploration, we're considering updates to the model specification with a few key differences:

  1. 4th degree polynomial for day of year (day)
  2. removal of interactions with sin1, cos1, etc

The 4th degree poly allows for some additional flexibility such that the period of time for adult females when they are nursing is represented better. The 3rd degree polynomial seemed to have smoothed over this period too much.

The removal of interactions was done to limit the complexity of the model and allow those features to be captured within the temporal autocorrelation and not as part of the mean. Generally trying to limit terms to those for which we can attribute a biological/ecological meaning.

Response variable and distribution: Text and code are inconsistent

The manuscript currently states that the response variable is hourly percent dry. This is not correct.

create_model_input() rounds the percent_dry value to either 0 or 1
https://github.com/jmlondon/berchukHaulout/blob/8a29f9e7feea078298e923d1ff450d91d7796ac9/R/create_model_input.R#L3

  • update text and clear up any potential confusion regarding the nature of the response variable
  • add references to London et al and other recent studies that use Bernoulli
  • calculate the percentage of observations below 10% and above 90% and report

remove paragraph in introduction re: importance of trends

@pconn suggests we consider removing the following paragraph from the introduction or including some of the key points within the Discussion section

Ultimately, knowledge of trends in phenology and abundance (or life history
surrogates such as survival and recruitment) will be necessary to make credible
quantitative predictions about the effects of climate disruptions on the
abundance and distribution of Arctic seal populations. Before we can construct a
trend, however, we first require a baseline. Several studies have contributed
estimates of the distribution and abundance of ice-associated seal species in
the Arctic using aerial surveys (e.g., [@bengtson2005a], [@conn2014a], and
[@verhoef2014a]). Such abundance studies were conducted over very large areas and
estimation of absolute abundance required making inference about numerous issues
affecting the observation of seals on ice. These included availability (only
seals basking on ice were available to be counted), detection probability
(observers or automated detection systems may have missed some seals on ice),
species misclassification, and possible disturbance of seals by aircraft
[@conn2014a; @verhoef2014a]. Refining these inferences will improve the
accuracy of abundance estimates in the Arctic.

Improve Figure 1

The intent of figure 1 is to show the distribution of raw behavior observations from March through July. I went with a calendar-like layout with weeks in columns because I thought that might be more familiar for readers. Comments from Justin (and Lori) suggest this figure could be improved.

image

Justin suggested fixing the upper left square to the start day-of-year (i.e. March 1) and extending the columns to represent 10 days (3 columns in a month). I think this is doable within the general framework of the figure code .. and would remove the somewhat awkward inclusion of the weekday row labels.

I think, maybe, 8 days per column would be a nicer spread. Will need to think how best to label the rows (01-Mar, 02-Mar, .. ?)

consider re-design of Figure 1

@pconn comment:

I continue to think there are better options for this plot, even with the changes. It just seems like it’s unnecessarily large, and that there isn’t any compelling reason to present days vertically. To my mind, a simple line plot with date on the x-axis and seal-hours on the y-axis (with a line for each species) would be a lot simpler to interpret and would take up less space.

The more I work with this, the more I agree. I have some ideas and will re-work and share those options here

R2.6 - improve writing of lines 463-464

I found 463-464 confusing. This is an important part of the discussion (using your framework to assess previous results from another study), but it could be more clearly written. The sentence, 'Applying models that ignore age, sex, and year effects...under the current analysis framework' is very confusing and doesn't seem to follow the argument of the paper easily. Could this be reworded so that the full intent of the paragraph is communicated?

Checklist

  • Addressed in paper
  • Addressed in reply letter

Improve weather covariate marginal effect like plots

The initial attempts to plot the marginal/conditional effect of individual weather covariates on haul-out probability resulted in plots that were aesthetically pleasing and 'beautiful' but, ultimately, distracting and difficult for the reader to interpret.

here's example of the initial plot for spotted seals

the following collection of reviewer comments from Jason Baker sums up the rationale for improvement

The swooshy vapor trails, I think, require more explanation. You mention transparent vertical lines, and I can see some of those, but I can also see horizontal bands in some places. How to interpret the alternating consecutive high and low CI’s on the right 2/3 of the precip graph, which mostly don’t include the fitted line!?

It comes down to what you want to convey. If it’s that we need to account for temperature, then what is wrong with good old marginal plots? You could choose peak haul out, high solar noon, mean precipitation, mean wind, etc. and show how temperature affects haul out probability.

In chatting with @dsjohnson I'm convinced that traditional marginal or conditional effects plots aren't the best option for communicating the relationship. These plots pull from the same data set as the haul-out probability surface plots and, simply, reflect the range of predicted haul-out probabilities across the range of weather covariate values. So, I also don't have to develop all the additional code to produce more typical marginal/conditional effects.

That said, I think Jason's concerns are important to recognize. I'm hoping that I can find a solution by limiting the range of days and hours in the plot and provide some control for underlying temporal collinearity and interactions that lead to the 'swooshy vapor trails'

Consider using 'meteorological' or 'weather' covariates

We use 'environmental covariates', 'weather covariates', and 'meteorological covariates' to represent the same set of covariates throughout the paper. Should settle on either 'weather' or 'meteorological' ... I think 'environmental' is too broad when, here, we're specifically focused on covariates from NARR.

Maybe check the walrus manuscripts for their terms

R2.3 - further explanation re: sea-ice concentration as a predictor

The modeling efforts are rigorous and robust, improving on previous modeling work. I still had one remaining question on why the authors couldn't run the models with and without the sea ice concentration as a predictor. The comparative results might be interesting (I understand why the correction factor might be biased...but given that this is a baseline study, it would have been an interesting comparison to see whether it was or wasn't a decent predictor for the different seal species).

Checklist

  • Addressed in paper
  • Addressed in reply letter

Improve Figure 2 to delineate empty areas

The color ramp addresses previous comments about no being able to differentiate lower percent dry values (i.e. you can, now, see some of the variation when seals are predominantly in the water). But, the pale yellow at the high end makes it difficult to see the empty areas since the background is white.

I've tried adding additional markers to the plot to specifically call out the empty areas, but the results were not satisfactory. Might be best to worry less about the lower end variation since a main purpose of the figure is to indicate the presence of missing data.

Improve discussion of wx covariate effects

comment from Lori Q and others suggests improvements to the description of weather covariate effects. For example, ribbon seal section provides more details on whether impact was positive/negative. But, bearded seal section has minimal detail.

R1.2 - improve presentation of findings to improve clarity

The findings are appear robust and intuitive. The authors need to improve the presentation of the findings to improve clarity and help the reader understand how they addressed the knowledge gap.

Checklist

  • Addressed in paper
  • Addressed in reply letter

create local data store for database data

Many data components of this analysis rely on a pull from an internal PostgreSQL database. This has two implications:

  1. the data on the database can change/update and impact downstream analysis and results along with future reproducibility
  2. there's no option to version control the data

To resolve this, the plan is to create local data stores within the repository as either *.csv or *.parquet files

R2.7 - smaller scale study to address differences in abundance estimates

I appreciate the acknowledgement that it is difficult to know whether differences in abundance estimates are attributable to changes in abundance or changes in haul-out behavior and the potential proposed solution (lines 450-458) Has anyone done a smaller-scale study that would address this inherent problem?

Checklist

  • Addressed in paper
  • Addressed in reply letter

R1.1 - Short Description of Comment

The authors provide a throughout treatment of a rich dataset acquired across numerous studies and united here into a single modeling effort to improve the ice seal abundance estimation. This is valuable work and merits publication.

The authors have put substantial efforts into setting the context for their analysis, citing relevant studies. I would like to see a more direct approach in the framing of their problem: the improvements of abundance estimates required by the Marine Mammal Protection Act and Endangered Species Act. I would like to see a specific example of how the modeled availability would have affect population abundance estimates by apply the availability model to aerial survey data and providing an adjusted abundance estimate.

Checklist

  • Addressed in paper
  • Addressed in reply letter

Improve wording about results of regression analysis w/ sea-ice extent

@pconn comment:

Given that there isn’t a figure, it might be best to omit the bit about “trend line” – and to provide more explanation. For example, “Adult female and subadult spotted seals appeared to achieve earlier peak haul-out date in years when ice concentration was high” (or whatever it was).

This paragraph was originally written when there was a figure. So, probably worth considering rewrites like this and maybe a few others. Will look into it.

consider examining trend of date of peak haul-out prob vs. year

From PLB re: potentially examining trend of date of peak haul-out prob vs year

Another trend that may be of interest is a trend in date of peak haul-out prob vs year. Because the colored symbols of the peaks don’t follow a color ramp, it’s really hard (at least for me) to judge whether there could be a trend. Another way to look at it would just be a scatter plot of the dates vs year?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.