Test for Differences in Diversification Rates over Time
Overview
Employ time-calibrated phylogenies and trait/range data to test for differences in diversification rates over evolutionary time. Extend the STRAPP test from BAMMtools::traitDependentBAMM() to any time step along phylogenies. See inst/COPYRIGHTS for details on third-party code.
- Handle uncertainty in trait estimates. See the 'uncertainty_strategy' argument in run_deepSTRAPP_*() functions.
- Add functions to load results from external BAMM analyses. See the dedicated vignette/tutorial "import_external_analyses".
Accounting for uncertainty in ancestral trait estimates
- STRAPP tests can now be run across a posterior sample of trait histories rather than a single reconstruction. The
uncertainty_strategyargument ofrun_deepSTRAPP_for_focal_time(),run_deepSTRAPP_over_time()andcompute_STRAPP_test_for_focal_time()selects how trait and rate uncertainty are combined:"rates_only"(BAMM posterior samples with a single trait reconstruction),"paired"(each stochastic map paired with one BAMM sample), or"full"(all stochastic maps crossed with all BAMM samples). - Stochastic maps can be supplied directly through the new
contMapsandsimmapsarguments, or simulated from posterior probabilities withnb_simulations. trait_maps_vs_BAMM_samples_listrecords, and lets you impose, which stochastic map is paired with which BAMM sample, so that the same pairing is used at every time step of a trajectory.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
- See the new vignette
handle_uncertainty.
Importing results from external analyses
- New functions to bring analyses run outside deepSTRAPP into the workflow:
build_BAMM_object(),subset_BAMM_object()andprune_BAMM_object()for BAMM output;convert_BSM_to_simmap()andconvert_BSMs_to_simmaps()for BioGeoBEARS biogeographic stochastic maps;convert_contsimmap_to_contMaps()forcontsimmapoutput; andconvert_simmaps_to_densityMaps()to summarise stochastic maps as posterior densities. aggregate_contMaps()summarises a list of continuous stochastic maps into a single mean or mediancontMap.- See the new vignette
import_external_analyses.
Consistency of the statistical method across time steps
run_deepSTRAPP_over_time()now selects the statistical method once, before any test is run, from all states/ranges described in the complete trait mapping, and applies it at every time step. The method previously depended on the states/ranges still present at each time step, so a trajectory could mix Kruskal-Wallis and Mann-Whitney U p-values on a single curve when a state/range was absent from the deeper time steps. This is not the case anymore, and all p-values across time-steps are prodcued by the same type of test.- The states/ranges actually observed are now reported:
$states_observedand$nb_states_observedper time step, and$states_observed_overall,$states_observed_per_time_stepsand$nb_states_observed_per_time_stepsin the output ofrun_deepSTRAPP_over_time().
Other additions
- New
extract_all_trait_values_for_focal_time()to extract trait data from every stochastic map at a given time, andextract_trait_data_melted_df_for_focal_time()to return it in long dataframe format. - New
cut_contMaps_for_focal_time(),cut_simmap_for_focal_time()andcut_simmaps_for_focal_time()to cut lists of stochastic maps at a focal time. run_deepSTRAPP_for_focal_time()andrun_deepSTRAPP_over_time()gainreturn_updated_Mapsto return the mappings cut at each focal time, andrun_deepSTRAPP_for_focal_time()gainsextract_trait_data_melted_dfto return the underlying trait data in long dataframe format.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 51 (1 internal)
- Examples that run
- 100%38 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 33%
- deepSTRAPP: All tutorials HTML
- Cut phylogenies HTML
- deepSTRAPP: Biogeographic range data HTML
- deepSTRAPP: Categorical trait data HTML
- deepSTRAPP: Continuous trait data HTML
- Explore STRAPP test options HTML
- Handle uncertainty HTML
- Import external analyses HTML
- Main tutorial HTML
- Model biogeographic range evolution HTML
Show 4 moreHide 4 vignettes
Downloads
Repository
Stars over time
Releases over time
Issues over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/maeldore/deepstrapp on 2026-10-11.
GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow
pkgdown site last built 2026-10-09
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.0Latest2026-09-28 · current release · diff ↗ ·
removed 4 exports
BSM_to_phytools_simmap, extract_most_likely_ranges_from_densityMaps_for_focal_time, extract_most_likely_states_from_densityMaps_for_focal_time, extract_most_likely_trait_values_from_contMap_for_focal_timeadded 13 exports
aggregate_contMaps, build_BAMM_object, convert_BSM_to_simmap, convert_BSMs_to_simmaps, convert_contsimmap_to_contMaps, convert_simmaps_to_densityMaps, cut_contMaps_for_focal_time, cut_simmap_for_focal_time, cut_simmaps_for_focal_time, extract_all_trait_values_for_focal_time, extract_trait_data_melted_df_for_focal_time, prune_BAMM_object, subset_BAMM_object - RR 4.6.0 released · 2026-04-24
- 1.0.02026-01-19
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-01-19
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Additional repositories
- maeldore.github.io
- Minimum R
- ≥ 4.4
- Bundled data
- 2.4 MB / 13 files
- Download size
- 8.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("deepSTRAPP")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.