Software

Tools we build and maintain for the community

amphiBR

amphiBR hex logo The official list of Brazilian amphibians as an R dataset

Documentation GitHub repository

R package — GPL (≥ 3). Development version.

amphiBR packages the official List of Brazilian Amphibians published by the Brazilian Herpetological Society (Segalla et al. 2021, Zenodo) as a single table — 1,188 species — that loads with the package. Each species comes with its taxonomy, common name, threat category from the Brazilian Ministry of the Environment assessment (MMA 2022), endemism, and occurrence by state and by biome. It also flags which species have their tadpoles described, using data from the Brazilian Tadpoles database: external morphology, internal oral features and chondrocranium.

The goal is to make it quick to build species lists for projects, fauna inventories and reports.

# install.packages("devtools")
devtools::install_github("paulobarros/amphiBR")
library(amphiBR)
segalla2021

Authors: Paulo Barros de Abreu Junior (maintainer), Maurício H. Vancine and Diogo B. Provete.

CoDa Stereo

CoDa Stereo hex logo Compositional Data Analysis for Stereological, Histomorphometric and Blood-Cell Data

Launch the live app →   Documentation   GitHub repository   v3.1.1 (Oct 2026)

Free, browser-based — no installation required. Interface in English, Portuguese and Spanish. Hosted on Posit Connect Cloud · MIT License.

Registered software: Brazilian National Institute of Industrial Property (INPI), registration no. BR512026003293-8 — filed 28 April 2026, granted 19 May 2026. Funded by FUNDECT, UFMS and CNPq.

CoDa Stereo is an open-source Shiny application that brings the Aitchison geometry to the daily workflow of stereological, histomorphometric and haematological studies — fields where measurements are naturally compositional (proportions of tissue types, cell-line fractions, leukocyte differentials, organelle volume densities) and therefore must be analysed with the appropriate log-ratio methods rather than off-the-shelf parametric tools.

The app implements the full PPDAC cycle (Problem → Plan → Data → Analysis → Conclusion) so that students and collaborators without a strong statistical background can move from a raw spreadsheet to a defensible permutational MANOVA with diagnostics, pairwise post-hoc tests, and publication-ready plots — all in the browser, and in their own language: the interface and the guided tour are available in English, Portuguese and Spanish.

What’s new in version 3

  • Three languages. Switch between EN, PT and ES from the header.
  • Reproducibility tab. Export an R script that reproduces the analysis, a self-contained HTML report, or save the session and reload it later.
  • Balances. An editable sequential binary partition, the CoDa dendrogram, and a permutational test of each balance by group.
  • Composition and size. The log-total can enter the model as a joint response or as a covariate (Pawlowsky-Glahn, Egozcue & Lovell 2015), to separate changes in composition from changes in size.
  • Richer models. Numeric covariates (ANCOVA), a block term for nested designs, sums of squares of type I, II or III, and pairwise tests of dispersion as well as of means.
  • Example data. The four case studies of the companion paper load from the app.
  • Figures. Every plot exports as PDF, PNG, SVG or TIFF at a chosen size and resolution.

Note that clr-biplots now use unscaled clr coordinates, so biplots made with version 2.x will differ. The full list of changes is in the changelog.

Features

Module Capabilities
Data upload CSV and Excel (.xlsx/.xls) with sheet selector; the four case-study datasets as examples; aggregation of fields of view into specimens (nested designs); pre-flight check of the selected parts
Data inspection Zero/NA heatmap (observed zero vs. structural zero vs. missing); naniar::vis_miss plot; counts per part
Zero handling Three methods via zCompositions (CZM, multRepl, lrEM); NA handling via listwise deletion or geometric-mean imputation
Compositional analysis Ternary plot with amalgamation, convex hulls or 95% confidence/predictive regions; clr-biplot with scree plot, ray lengths and optional log-total; variation-matrix heatmap; compositional centre and total variance per group; interactive hover
Balances (SBP) Automatic sequential binary partition, editable cell by cell; CoDa dendrogram; boxplots and permutational tests of each balance
Statistical modelling Permutational MANOVA via RRPP::lm.rrpp with factors, covariates, a block term and SS type I/II/III; log-total as joint response or covariate; pairwise tests of means and dispersions; residual diagnostics
Reproducibility R script that reproduces the analysis; self-contained HTML report; save and reload the session (JSON)
Downloads Every figure as PDF, PNG, SVG or TIFF; imputed data, SBP, variation matrix, ANOVA, balance and pairwise tables as CSV

Why CoDa Stereo

Stereological datasets are routinely analysed as if cell-fraction or tissue-fraction percentages were independent variables — they’re not. The unit-sum constraint induces spurious correlations and false significance in standard MANOVA. CoDa Stereo handles the geometry correctly throughout, without requiring users to write log-ratio transforms by hand.

Use it now (no install)

The recommended way to use CoDa Stereo is to open it directly in your browser — the app is hosted on Posit Connect Cloud (free tier), so there’s nothing to install:

Launch CoDa Stereo

Run locally (optional)

If you’d rather run the app on your own machine — useful for sensitive data, offline work, or customisation — install from r-universe:

install.packages("CoDaStereo",
                 repos = c("https://diogoprov.r-universe.dev", "https://cloud.r-project.org"))
CoDaStereo::run_app()

The package website has a getting-started guide, and the README explains how to deploy the app to your own Posit Connect Cloud account.

Citation

CoDa Stereo was developed alongside:

Provete, D.B., Severgnini, M.R., Fernandes, C.E., Franco-Belussi, L. (2026). A practical guide to compositional data analysis in tissue stereology and blood cell profile. Physiological Reports (in press). Preprint on Research Square.

The companion paper covers the methodological rationale, simulations comparing CoDa with naïve approaches, and worked examples.

Please cite both the paper and the software. The software is archived on Zenodo (doi:10.5281/zenodo.19928374), and BibTeX entries for both are in the repository.

The INPI registration records authorship and the date the source code existed in a given form — it is the Brazilian equivalent of a software copyright deposit, and it does not restrict use. The app is released under the MIT licence: you may use, modify and redistribute it, including commercially, provided the copyright notice is kept.

Issues, feedback, and contributions

Bug reports, feature requests, and pull requests are very welcome on GitHub Issues.

comdynamite

comdynamite hex logo Process-based metacommunity simulations with phylogenetic structure

Documentation GitHub repository

R package — MIT License. Version 0.7.0, doi:10.5281/zenodo.23993533.

Registered software: Brazilian National Institute of Industrial Property (INPI), registration no. BR512026011396-2 — filed 1 December 2026. Funded by FUNDECT and CAPES (Finance Code 001).

comdynamite implements the process-based metacommunity model of Thompson et al. (2020): density-independent growth set by the match between each species’ environmental optimum and the local environment, Beverton–Holt competition, Poisson demographic stochasticity and dispersal among sites. It was written independently from the published equations; the original R implementation is mcomsimr.

On top of that model, comdynamite adds:

  • Phylogenetic structure. Optima, niche breadths and maximum growth rates can carry phylogenetic signal (Pagel’s lambda) or evolve under single- or multi-optimum Ornstein-Uhlenbeck processes, and competition can be stronger between close relatives.
  • Landscapes. Sites can be spatially implicit, with uniform dispersal, or an explicit grid (optionally a torus) with an exponential dispersal kernel and a spatially autocorrelated environment. Restricted null models permute sites on a torus while keeping its spatial structure.
  • Change over time. The environment can change during a run, and abundances can be recorded at chosen steps.
  • Rule-based assembly. Communities can also be assembled without population dynamics, as in Kraft et al. (2007), by limiting similarity, habitat filtering or neutral assembly.

The phylogeny is an input: the tree is fixed and traits are placed on it. Tree shape and phylogenetic signal can therefore be set independently, which is what simulation studies of methods need. treeshapesim produces trees with controlled imbalance and branching times to use as regional pools.

install.packages("comdynamite", repos = c("https://diogoprov.r-universe.dev",
                                          "https://cloud.r-project.org"))
library(comdynamite)
set.seed(1)
tr <- ape::rcoal(40)
sim <- simulate_metacommunity(
  landscape = landscape_implicit(50),
  traits    = species_traits(tr, lambda = 1),
  alpha     = competition_matrix(tr, type = "phylo"),
  dispersal = 0.01,
  n_steps   = 1000
)
sim$abundance   # sites x species

Author: Diogo B. Provete.

crywolf

crywolf hex logo Bayesian false-positive occupancy models for data from automated detectors

Documentation GitHub repository

R package (models in Stan via cmdstanr) — GPL (≥ 3). Version 2.2.0, doi:10.5281/zenodo.23385045.

crywolf fits Bayesian single-season occupancy models that correct for the false positives produced by automated detectors, such as acoustic classifiers. It implements the multiple-methods site-confirmation design of Miller et al. (2011), in which a subset of detections is verified and treated as certain, with the false-positive rate either constant or varying with site covariates.

Besides fitting the models, the package provides simulation tools and calibration checks — credible-interval coverage and guidance on how many detections need to be verified — so the design can be evaluated before going to the field. It pairs naturally with sheepdog above: sheepdog produces the verified detections, crywolf uses them to correct the occupancy estimates.

# also installs cmdstanr from the Stan r-universe
install.packages("crywolf", repos = c("https://diogoprov.r-universe.dev",
                                      "https://stan-dev.r-universe.dev",
                                      getOption("repos")))
cmdstanr::install_cmdstan()

To cite the package, use citation("crywolf"), together with the paper describing the model: Miller, D. A., et al. (2011) Ecology 92: 1422–1428, doi:10.1890/10-1396.1.

Authors: Diogo B. Provete (maintainer), Liliana Piatti, Tessa Rhinehart and Larissa Sayuri Moreira Sugai.

ecodados

Datasets and helper functions for Análises Ecológicas no R

GitHub repository   The book (free, in Portuguese)

R package — community-maintained.

ecodados is the companion R package to Análises Ecológicas no R (da Silva, Gonçalves-Souza, Paterno, Provete & Vancine, 2022), a 640-page open textbook that teaches the full workflow of ecological data analysis in R — from data organisation and visualisation to multivariate analysis, spatial ecology and phylogenetic comparative methods.

The package ships the datasets used across the book’s chapters, so every example in the text can be reproduced with a single library(ecodados) instead of hunting for files. It is what makes the book runnable rather than merely readable.

In 2026, Análises Ecológicas no R received the SORTEE Commendation Award from the Society for Open, Reliable, and Transparent Ecology and Evolutionary Biology, which recognises projects that promote open, transparent and reliable research practices in ecology and evolution.

The book is freely available online and has become a standard reference for teaching ecological data analysis in Portuguese-speaking universities.

NoteAuthors

Gustavo B. Paterno, Diogo B. Provete, Fernando R. da Silva, Thiago Gonçalves-Souza and Maurício H. Vancine.

Introdução à Linguagem R — swirl lessons

Interactive lessons in Portuguese for learning R inside the R console

GitHub repository   The course   DOI 10.5281/zenodo.22782697

swirl course, five lessons — CC BY 4.0 · archived on Zenodo.

A course for swirl, the R package that turns the console into an interactive tutor: it asks a question, the student types real R code, and swirl checks the answer and gives a hint when it is wrong. swirl has a long list of community courses, but until now none written in Portuguese for ecologists. I have also translated the whole Regression Models course (13 lessons) and three lessons of R Programming, and contributed them as pull requests to the community project swirl-Br.

The lessons follow the graduate course Introdução à Linguagem R (PPGEC/UFMS) and use the same real, published dataset as the practical classes: thermal tolerance of Atlantic Forest frogs along two elevational gradients (Bovo et al. 2023).

Lesson Class Topics
Primeiros Passos 01 R as a calculator, assignment, coercion, reading and inspecting data, table(), missing values, packages
Curadoria de Dados 02 auditing a deliberately bad spreadsheet and a published file: file naming, header out of place, column types, inconsistent categories, duplicates, date formats, missing-value codes, stored derived columns, site-level variables and metadata
Manuseio de Dados com dplyr 04 the pipe (\|> and %>%), rename(), select(), mutate(), filter(), group_by() + summarise(), count()
Modelos Lineares 06 the PPDAC cycle: sampling design, exploration, lm(), diagnostics with plot() and performance, interpretation with anova() and broom
Rudimentos de Programação 07 writing functions, default arguments, scope, if/ifelse/for, functional programming with purrr::map, one model per species with split() + map() and broom

Answers are checked by their result, not by how they are written, so both pipes, summarise() or summarize(), and arguments in any order are accepted.

install.packages("swirl")
library(swirl)
select_language("portuguese", append_rprofile = TRUE)
install_course_url("https://github.com/diogoprov/Introducao_a_Linguagem_R/zipball/main")
swirl()

lagprotest

lagprotest hex logo Lagged Procrustean randomization test for multivariate time series

Documentation GitHub repository

R package — MIT License. Version 0.6.0, doi:10.5281/zenodo.23860109. Under development.

lagprotest extends the Procrustean randomization test (PROTEST) to ordered multivariate series. It scans the Procrustes concordance between two configurations across candidate temporal lags, tests each lag by permutation, and returns the lag profile, the lag of maximal concordance (minimum m²) and per-observation Procrustes residuals. Inputs can be matrices, data frames (rows = ordered time points) or dist objects.

Two permutation schemes are available. The default, "cyclic", shifts the full series cyclically (optionally with its time reversal) before lagging, which keeps temporal autocorrelation under the null; it assumes the series spans complete cycles, such as 12 monthly samples of an annual cycle. "free" permutes rows within the overlapping window, as vegan::protest() does; because autocorrelated series violate exchangeability, its Type I error can be severely inflated. The global p-value (fit$p.global) accounts for scanning several lags and selecting the best one.

install.packages("lagprotest",
                 repos = c("https://diogoprov.r-universe.dev", "https://cloud.r-project.org"))
library(lagprotest)
sim <- simulate_lagged_series(n_times = 12, true_lag = 2, noise_sd = 0.5, seed = 1)
fit <- lagged_protest(sim$X, sim$Y, lags = 0:4, seed = 1)
plot(fit)   # m2 against lag, with the permutation null quantile

The method and its calibration are described in a manuscript in preparation. Author: Diogo B. Provete.

sheepdog

sheepdog hex logo Sample, validate and calibrate BirdNET detections for passive acoustic monitoring

Documentation GitHub repository

R package — MIT License. Version 3.3.2, doi:10.5281/zenodo.22696209.

sheepdog checks whether the automated detections of a BirdNET custom classifier are real — the step that decides whether a classifier’s output means anything in a passive acoustic monitoring study. It works in three stages:

  1. Validation data. From the BirdNET selection tables, it builds clip sets for manual review under an explicit sampling design — top-score clips, random occasions (the observation-confirmation design of Chambert et al.
    1. or random recordings (the multiple-method design of Miller et al.
    2. — ready for the review tab of the BirdNET GUI. After the review, it returns precision by confidence bin, suggested thresholds, confirmed presence by night and the clips needed to retrain the classifier.
  2. Calibration. It converts confidence scores into probabilities of true detection with hierarchical logistic models that let the score–probability relationship vary among species and sites, compared by cross-validation, and builds nightly detection histories.
  3. Community matrices. It turns the calibrated histories into effort-standardised site × month matrices for multivariate ordinations.

sheepdog is the companion of crywolf: its clip manifest and validation tables are the input for occupancy models with false positives. The two packages are independent — sheepdog does not depend on crywolf.

It was developed for the DiverSons project (FUNDECT), which monitored frog vocalisations in the Pantanal and Cerrado, but works with the output of any BirdNET custom classifier. Version 2.0.0 turns the earlier BirdNET Validation Sampler scripts into a package; the package still reads files written by the scripts (v1.2.0), so validated data remain usable.

The methods are described in:

Provete, D.B., Piatti, L., Sugai, L.S.M. (2026). sheepdog: probability-based validation and Bayesian calibration of automated acoustic detections for occupancy models. Methods in Ecology and Evolution (in review). Preprint on EcoEvoRxiv.

install.packages("sheepdog",
                 repos = c("https://diogoprov.r-universe.dev", "https://cloud.r-project.org"))

Author: Diogo B. Provete, from the protocol design of Larissa S. M. Sugai and Liliana Piatti.

treeshapesim

treeshapesim hex logo Simulate trees with separately controlled imbalance and branching times

Documentation GitHub repository

R package — MIT License. Version 0.2.1, doi:10.5281/zenodo.23647260.

treeshapesim simulates rooted, binary, ultrametric trees in which topological imbalance and the distribution of branching times are set by separate parameters. The topology comes from Aldous’ (1996) beta-splitting model: beta = 0 gives Yule trees, lower values more imbalanced trees and higher values more balanced ones. The branching times come from a pure-birth process in which each of k lineages splits at rate kc: c = 0 is Yule, c < 0 slows diversification towards the present (negative gamma; Pybus & Harvey 2000) and c > 0 speeds it up.

Because the gamma statistic depends only on the internode intervals and the Colless index only on the topology, beta mainly moves the Colless index and c mainly moves gamma. This makes it possible to build grids of tree shapes in which the two properties vary independently, for instance to test how methods that use phylogenies respond to each.

install.packages("treeshapesim",
                 repos = c("https://diogoprov.r-universe.dev", "https://cloud.r-project.org"))
library(treeshapesim)
tr <- sim_tree_shape(100, beta = -1, c = -0.5)   # imbalanced, early splits

Author: Diogo B. Provete.