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

baRulho

An R package to quantify habitat-induced degradation of (animal) acoustic signals.
https://github.com/ropensci/baRulho

acoustic-signals animal behavior bioacoustics cran

Last synced: about 24 hours ago
JSON representation

Repository metadata

An R package to quantify habitat-induced degradation of (animal) acoustic signals

README

        

---
title: "baRulho: quantifying degradation of (animal) sounds"
output: github_document
editor_options:
chunk_output_type: console
---

[![Status at rOpenSci Software Peer Review](https://badges.ropensci.org/609_status.svg)](https://github.com/ropensci/software-review/issues/609)[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![Dependencies](https://tinyverse.netlify.com/badge/baRulho)](https://cran.r-project.org/package=baRulho) [![Project Status: Active The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) [![Licence](https://img.shields.io/badge/https://img.shields.io/badge/licence-GPL--2-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) [![minimal R version](https://img.shields.io/badge/R%3E%3D-`r strsplit(gsub("depends: R \\(|\\)", "", grep("^DEPENDS", ignore.case = TRUE, readLines(con = "./DESCRIPTION"), value = TRUE), ignore.case = TRUE), ",")[[1]][1]`-6666ff.svg)](https://cran.r-project.org/) [![packageversion](https://img.shields.io/badge/Package%20version-`r gsub("version: |version:", "", grep("^version", ignore.case = TRUE, readLines(con = "./DESCRIPTION"), value = TRUE), ignore.case = TRUE)`-orange.svg?style=flat-square)](commits/develop) [![Last-changedate](https://img.shields.io/badge/last%20change-`r gsub('-', '--', Sys.Date())`-yellowgreen.svg)](/commits/master) [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/baRulho)](https://cran.r-project.org/package=baRulho)
[![Total Downloads](https://cranlogs.r-pkg.org/badges/grand-total/baRulho)](https://cranlogs.r-pkg.org/badges/grand-total/baRulho)
[![Codecov test coverage](https://codecov.io/gh/maRce10/baRulho/branch/master/graph/badge.svg)](https://app.codecov.io/gh/maRce10/baRulho?branch=master)
[![R-CMD-check](https://github.com/maRce10/baRulho/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/maRce10/baRulho/actions/workflows/R-CMD-check.yaml)

baRulho logo

[baRulho](https://cran.r-project.org/package=baRulho) is intended to facilitate the implementation of (animal) sound transmission experiments, which typically aim to quantify changes in signal structure when transmitted in a given habitat by broadcasting and re-recording animal sounds at increasing distances.

These experiments aim to answer research questions such as:

- How habitat structure has shaped the transmission properties of animal acoustic signals?
- Which acoustic features are shaped by selection for improving transmission?
- Which features are more degraded in different habitats?
- How far a acoustic signals can be detected?

A common sequence of steps to experimentally test hypotheses related to sound transmission is depicted in the following diagram:

```{r, echo=FALSE, out.width="100%", fig.align='center'}

knitr::include_graphics("man/figures/analysis_workflow.png")

```

_Diagram depicting a typical workflow for a experiment working on signal transmission and degradation. Nodes with black font indicate steps that can be conducted using baRulho functions. Blue nodes denote the functions that can be used at those steps._

 

[baRulho](https://marce10.github.io/baRulho/) offers functions for critical steps in this workflow (those in black, including 'checks') that required acoustic data manipulation and analysis.

The main features of the package are:

- The use of loops to apply tasks through sounds referenced in a selection table (sensu [warbleR](https://cran.r-project.org/package=warbleR))
- The production of image files with graphic representations of sound in time and/or frequency that let users verify acoustic analyses
- The use of annotation tables as the object format to input acoustic data and annotations and to output results
- The use of parallelization to distribute tasks among several cores to improve computational efficiency

[baRulho](https://marce10.github.io/baRulho/) builds upon functions and data formats from the [warbleR](https://cran.r-project.org/package=warbleR) and [seewave](https://cran.r-project.org/package=seewave) packages, so some experience with these packages is advised.

Take a look at the vignettes for an overview of the main features of the packages:

- [Align test sounds](https://marce10.github.io/baRulho/articles/align_test_sounds.html)
- [Quantify degradation](https://marce10.github.io/baRulho/articles/quantify_degradation.html)

## Installing baRulho

Install/load the package from CRAN as follows:

```{r, eval = FALSE}

# From CRAN would be
# install.packages("baRulho")

# load package
library(baRulho)
```

To install the latest developmental version from [github](https://github.com/) you will need the R package [remotes](https://cran.r-project.org/package=remotes):

```{r, eval = FALSE}

# From github
remotes::install_github("maRce10/baRulho")

# load package
library(baRulho)
```

Further system requirements due to the dependency [seewave](https://rug.mnhn.fr/seewave/) may be needed. Take a look a [this link]( https://rug.mnhn.fr/seewave/inst.html) for instruction on how to install/troubleshoot these external dependencies.

## Other packages

The packages [seewave](https://cran.r-project.org/package=seewave) and [tuneR](https://cran.r-project.org/package=seewave) provide a huge variety of functions for acoustic analysis and manipulation. They mostly work on wave objects already imported into the R environment. The package [warbleR](https://cran.r-project.org/package=warbleR) provides functions to visualize and measure sounds already referenced in annotation tables, similar to [baRulho](https://marce10.github.io/baRulho/). The package [Rraven](https://cran.r-project.org/package=Rraven) facilitates the exchange of data between R and [Raven sound analysis software](https://www.ravensoundsoftware.com/) ([Cornell Lab of Ornithology](https://www.birds.cornell.edu/home)) and can be very helpful for incorporating Raven as the annotating tool into acoustic analysis workflow in R. The package [ohun](https://github.com/ropensci/ohun) works on automated detection of sound events, providing functions to diagnose and optimize detection routines.

## Citation

Please cite [baRulho](https://marce10.github.io/baRulho/) as follows:

Araya-Salas, M. (2020), *baRulho: quantifying degradation of (animal) acoustic signals in R*. R package version 1.0.0.

## References

1. Dabelsteen, T., Larsen, O. N., & Pedersen, S. B. (1993). *Habitat-induced degradation of sound signals: Quantifying the effects of communication sounds and bird location on blur ratio, excess attenuation, and signal-to-noise ratio in blackbird song*. The Journal of the Acoustical Society of America, 93(4), 2206.

2. Marten, K., & Marler, P. (1977). *Sound transmission and its significance for animal vocalization*. Behavioral Ecology and Sociobiology, 2(3), 271-290.

3. Morton, E. S. (1975). *Ecological sources of selection on avian sounds*. The American Naturalist, 109(965), 17-34.

Citation (CITATION.cff)

# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.5.0
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "baRulho" in publications use:'
type: software
license: GPL-2.0-or-later
title: 'baRulho: Quantifying (Animal) Sound Degradation'
version: 2.1.0
abstract: Intended to facilitate acoustic analysis of (animal) sound transmission
  experiments, which typically aim to quantify changes in signal structure when transmitted
  in a given habitat by broadcasting and re-recording animal sounds at increasing
  distances. The package offers a workflow with functions to prepare the data set
  for analysis as well as to calculate and visualize several degradation metrics,
  including blur ratio, signal-to-noise ratio, excess attenuation and envelope correlation
  among others (Dabelsteen et al 1993 <doi:10.1121/1.406682>).
authors:
- family-names: Araya-Salas
  given-names: Marcelo
  email: [email protected]
preferred-citation:
  type: generic
  title: 'baRulho: quantifying habitat-induced degradation of (animal) acoustic signals
    in R'
  authors:
  - family-names: Araya-Salas
    given-names: M.
  year: '2020'
repository: https://CRAN.R-project.org/package=baRulho
repository-code: https://github.com/ropensci/baRulho
url: https://github.com/ropensci/baRulho
contact:
- family-names: Araya-Salas
  given-names: Marcelo
  email: [email protected]
keywords:
- acoustic-signals
- animal
- behavior
- bioacoustics
- cran
references:
- type: software
  title: utils
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  location:
    name: Vienna, Austria
  year: '2024'
  institution:
    name: R Foundation for Statistical Computing
- type: software
  title: stats
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  location:
    name: Vienna, Austria
  year: '2024'
  institution:
    name: R Foundation for Statistical Computing
- type: software
  title: seewave
  abstract: 'seewave: Sound Analysis and Synthesis'
  notes: Imports
  url: https://rug.mnhn.fr/seewave/
  repository: https://CRAN.R-project.org/package=seewave
  authors:
  - family-names: Sueur
    given-names: Jerome
    email: [email protected]
  - family-names: Aubin
    given-names: Thierry
  - family-names: Simonis
    given-names: Caroline
  year: '2024'
- type: software
  title: tuneR
  abstract: 'tuneR: Analysis of Music and Speech'
  notes: Imports
  repository: https://CRAN.R-project.org/package=tuneR
  authors:
  - family-names: Ligges
    given-names: Uwe
    email: [email protected]
    orcid: https://orcid.org/0000-0001-5875-6167
  - family-names: Krey
    given-names: Sebastian
  - family-names: Mersmann
    given-names: Olaf
  - family-names: Schnackenberg
    given-names: Sarah
  - family-names: Guénard
    given-names: Guillaume
  - family-names: Ellis
    given-names: Daniel P. W.
  - name: Underbit Technologies
  year: '2024'
- type: software
  title: fftw
  abstract: 'fftw: Fast FFT and DCT Based on the FFTW Library'
  notes: Imports
  repository: https://CRAN.R-project.org/package=fftw
  authors:
  - family-names: Mersmann
    given-names: Olaf
    email: [email protected]
  year: '2024'
- type: software
  title: methods
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  location:
    name: Vienna, Austria
  year: '2024'
  institution:
    name: R Foundation for Statistical Computing
- type: software
  title: viridis
  abstract: 'viridis: Colorblind-Friendly Color Maps for R'
  notes: Imports
  url: https://sjmgarnier.github.io/viridis/
  repository: https://CRAN.R-project.org/package=viridis
  authors:
  - family-names: Garnier
    given-names: Simon
    email: [email protected]
  year: '2024'
- type: software
  title: Sim.DiffProc
  abstract: 'Sim.DiffProc: Simulation of Diffusion Processes'
  notes: Imports
  url: https://github.com/acguidoum/Sim.DiffProc
  repository: https://CRAN.R-project.org/package=Sim.DiffProc
  authors:
  - family-names: Guidoum
    given-names: Arsalane Chouaib
    email: [email protected]
  - family-names: Boukhetala
    given-names: Kamal
    email: [email protected]
  year: '2024'
- type: software
  title: png
  abstract: 'png: Read and write PNG images'
  notes: Imports
  url: http://www.rforge.net/png/
  repository: https://CRAN.R-project.org/package=png
  authors:
  - family-names: Urbanek
    given-names: Simon
    email: [email protected]
  year: '2024'
- type: software
  title: checkmate
  abstract: 'checkmate: Fast and Versatile Argument Checks'
  notes: Imports
  url: https://mllg.github.io/checkmate/
  repository: https://CRAN.R-project.org/package=checkmate
  authors:
  - family-names: Lang
    given-names: Michel
    email: [email protected]
    orcid: https://orcid.org/0000-0001-9754-0393
  year: '2024'
- type: software
  title: cli
  abstract: 'cli: Helpers for Developing Command Line Interfaces'
  notes: Imports
  url: https://cli.r-lib.org
  repository: https://CRAN.R-project.org/package=cli
  authors:
  - family-names: Csárdi
    given-names: Gábor
    email: [email protected]
  year: '2024'
- type: software
  title: rlang
  abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
  notes: Imports
  url: https://rlang.r-lib.org
  repository: https://CRAN.R-project.org/package=rlang
  authors:
  - family-names: Henry
    given-names: Lionel
    email: [email protected]
  - family-names: Wickham
    given-names: Hadley
    email: [email protected]
  year: '2024'
- type: software
  title: 'R: A Language and Environment for Statistical Computing'
  notes: Depends
  url: https://www.R-project.org/
  authors:
  - name: R Core Team
  location:
    name: Vienna, Austria
  year: '2024'
  institution:
    name: R Foundation for Statistical Computing
  version: '>= 3.2.1'
- type: software
  title: warbleR
  abstract: 'warbleR: Streamline Bioacoustic Analysis'
  notes: Depends
  url: https://marce10.github.io/warbleR/
  repository: https://CRAN.R-project.org/package=warbleR
  authors:
  - family-names: Araya-Salas
    given-names: Marcelo
    email: [email protected]
    orcid: https://orcid.org/0000-0003-3594-619X
  - family-names: Smith-Vidaurre
    given-names: Grace
    email: [email protected]
  year: '2024'
  version: '>= 1.1.30'
- type: software
  title: ohun
  abstract: 'ohun: Optimizing Acoustic Signal Detection'
  notes: Depends
  url: https://docs.ropensci.org/ohun/
  repository: https://CRAN.R-project.org/package=ohun
  authors:
  - family-names: Araya-Salas
    given-names: Marcelo
    email: [email protected]
    orcid: https://orcid.org/0000-0003-3594-619X
  year: '2024'
  version: '>= 1.0.1'
- type: software
  title: rmarkdown
  abstract: 'rmarkdown: Dynamic Documents for R'
  notes: Suggests
  url: https://pkgs.rstudio.com/rmarkdown/
  repository: https://CRAN.R-project.org/package=rmarkdown
  authors:
  - family-names: Allaire
    given-names: JJ
    email: [email protected]
  - family-names: Xie
    given-names: Yihui
    email: [email protected]
    orcid: https://orcid.org/0000-0003-0645-5666
  - family-names: Dervieux
    given-names: Christophe
    email: [email protected]
    orcid: https://orcid.org/0000-0003-4474-2498
  - family-names: McPherson
    given-names: Jonathan
    email: [email protected]
  - family-names: Luraschi
    given-names: Javier
  - family-names: Ushey
    given-names: Kevin
    email: [email protected]
  - family-names: Atkins
    given-names: Aron
    email: [email protected]
  - family-names: Wickham
    given-names: Hadley
    email: [email protected]
  - family-names: Cheng
    given-names: Joe
    email: [email protected]
  - family-names: Chang
    given-names: Winston
    email: [email protected]
  - family-names: Iannone
    given-names: Richard
    email: [email protected]
    orcid: https://orcid.org/0000-0003-3925-190X
  year: '2024'
- type: software
  title: ggplot2
  abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
  notes: Suggests
  url: https://ggplot2.tidyverse.org
  repository: https://CRAN.R-project.org/package=ggplot2
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: [email protected]
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: Chang
    given-names: Winston
    orcid: https://orcid.org/0000-0002-1576-2126
  - family-names: Henry
    given-names: Lionel
  - family-names: Pedersen
    given-names: Thomas Lin
    email: [email protected]
    orcid: https://orcid.org/0000-0002-5147-4711
  - family-names: Takahashi
    given-names: Kohske
  - family-names: Wilke
    given-names: Claus
    orcid: https://orcid.org/0000-0002-7470-9261
  - family-names: Woo
    given-names: Kara
    orcid: https://orcid.org/0000-0002-5125-4188
  - family-names: Yutani
    given-names: Hiroaki
    orcid: https://orcid.org/0000-0002-3385-7233
  - family-names: Dunnington
    given-names: Dewey
    orcid: https://orcid.org/0000-0002-9415-4582
  year: '2024'
- type: software
  title: knitr
  abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
  notes: Suggests
  url: https://yihui.org/knitr/
  repository: https://CRAN.R-project.org/package=knitr
  authors:
  - family-names: Xie
    given-names: Yihui
    email: [email protected]
    orcid: https://orcid.org/0000-0003-0645-5666
  year: '2024'
- type: software
  title: kableExtra
  abstract: 'kableExtra: Construct Complex Table with ''kable'' and Pipe Syntax'
  notes: Suggests
  url: http://haozhu233.github.io/kableExtra/
  repository: https://CRAN.R-project.org/package=kableExtra
  authors:
  - family-names: Zhu
    given-names: Hao
    email: [email protected]
    orcid: https://orcid.org/0000-0002-3386-6076
  year: '2024'
- type: software
  title: testthat
  abstract: 'testthat: Unit Testing for R'
  notes: Suggests
  url: https://testthat.r-lib.org
  repository: https://CRAN.R-project.org/package=testthat
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: [email protected]
  year: '2024'
  version: '>= 3.0.0'
- type: software
  title: covr
  abstract: 'covr: Test Coverage for Packages'
  notes: Suggests
  url: https://covr.r-lib.org
  repository: https://CRAN.R-project.org/package=covr
  authors:
  - family-names: Hester
    given-names: Jim
    email: [email protected]
  year: '2024'
- type: software
  title: formatR
  abstract: 'formatR: Format R Code Automatically'
  notes: Suggests
  url: https://github.com/yihui/formatR
  repository: https://CRAN.R-project.org/package=formatR
  authors:
  - family-names: Xie
    given-names: Yihui
    email: [email protected]
    orcid: https://orcid.org/0000-0003-0645-5666
  year: '2024'
- type: software
  title: Rraven
  abstract: 'Rraven: Connecting R and ''Raven'' Sound Analysis Software'
  notes: Suggests
  url: https://github.com/ropensci/Rraven
  repository: https://CRAN.R-project.org/package=Rraven
  authors:
  - family-names: Araya-Salas
    given-names: Marcelo
    email: [email protected]
    orcid: https://orcid.org/0000-0003-3594-619X
  year: '2024'

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 2 days ago

Total Commits: 281
Total Committers: 6
Avg Commits per committer: 46.833
Development Distribution Score (DDS): 0.27

Commits in past year: 175
Committers in past year: 4
Avg Commits per committer in past year: 43.75
Development Distribution Score (DDS) in past year: 0.091

Name Email Commits
Marcelo Araya-Salas m****a@u****r 205
maRce10 m****7@g****m 57
Adam H. Sparks a****s@i****m 10
github-actions[bot] 4****] 5
gsvidaurre g****i@g****m 3
Mike Mahoney m****8@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 26
Total pull requests: 10
Average time to close issues: 5 months
Average time to close pull requests: about 6 hours
Total issue authors: 2
Total pull request authors: 3
Average comments per issue: 0.54
Average comments per pull request: 0.0
Merged pull request: 8
Bot issues: 0
Bot pull requests: 0

Past year issues: 6
Past year pull requests: 8
Past year average time to close issues: 2 months
Past year average time to close pull requests: about 4 hours
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 1.0
Past year average comments per pull request: 0.0
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ropensci/baRulho

Top Issue Authors

  • maRce10 (18)
  • gsvidaurre (8)

Top Pull Request Authors

  • adamhsparks (6)
  • mikemahoney218 (2)
  • gsvidaurre (2)

Top Issue Labels

Top Pull Request Labels


Package metadata

cran.r-project.org: baRulho

Quantifying (Animal) Sound Degradation

  • Homepage: https://github.com/ropensci/baRulho
  • Documentation: http://cran.r-project.org/web/packages/baRulho/baRulho.pdf
  • Licenses: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
  • Latest release: 2.1.0 (published 21 days ago)
  • Last Synced: 2024-05-10T11:30:17.590Z (2 days ago)
  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 677 Last month
  • Rankings:
    • Forks count: 17.77%
    • Stargazers count: 28.503%
    • Dependent packages count: 29.797%
    • Average: 30.075%
    • Dependent repos count: 35.455%
    • Downloads: 38.852%
  • Maintainers (1)

Dependencies

DESCRIPTION cran
  • R >= 3.2.1 depends
  • warbleR >= 1.1.27 depends
  • fftw * imports
  • methods * imports
  • pbapply * imports
  • seewave * imports
  • stats * imports
  • tuneR * imports
  • utils * imports
  • viridis * imports
  • ggplot2 * suggests
  • kableExtra * suggests
  • knitr * suggests
  • png * suggests
  • rmarkdown * suggests
  • testthat * suggests
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/readme.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/tic.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v2 composite
  • pat-s/always-upload-cache v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-tinytex v2 composite

Score: 9.920344669602551