Skip to content

deepSTRAPP

1.1.0Package record

Test for Differences in Diversification Rates over Time

0packages depend
2.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.1.0
  • 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_strategy argument of run_deepSTRAPP_for_focal_time(), run_deepSTRAPP_over_time() and compute_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 contMaps and simmaps arguments, or simulated from posterior probabilities with nb_simulations.
  • trait_maps_vs_BAMM_samples_list records, 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() and prune_BAMM_object() for BAMM output; convert_BSM_to_simmap() and convert_BSMs_to_simmaps() for BioGeoBEARS biogeographic stochastic maps; convert_contsimmap_to_contMaps() for contsimmap output; and convert_simmaps_to_densityMaps() to summarise stochastic maps as posterior densities.
  • aggregate_contMaps() summarises a list of continuous stochastic maps into a single mean or median contMap.
  • 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_observed and $nb_states_observed per time step, and $states_observed_overall, $states_observed_per_time_steps and $nb_states_observed_per_time_steps in the output of run_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, and extract_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() and cut_simmaps_for_focal_time() to cut lists of stochastic maps at a focal time.
  • run_deepSTRAPP_for_focal_time() and run_deepSTRAPP_over_time() gain return_updated_Maps to return the mappings cut at each focal time, and run_deepSTRAPP_for_focal_time() gains extract_trait_data_melted_df to return the underlying trait data in long dataframe format.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 12.3 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 1,919 wordsVignettesYes · 14 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
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%

Downloads

2.3K
CRAN downloads in the past year
Rank #11,033 · ~6/day · ~193/mo
Daily download trend is not available in this view yet.
44530 days
94690 days
2.3K1 year
Compare downloads with other packages →
Also on293 r2u

Repository

2Stars
0Forks
1Open issues
0Open PRs
2Releases
496Commits
2Commit identities
496 commits · Last activity 2026-10-14 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2025-10-26 · 12026-09-09 · 2
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow

pkgdown site last built 2026-10-09

Reproducibility and dev environment (2)
renvdata-raw/
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)

Installing deepSTRAPP adds 70 packages (42 with compiled code, 67 MB of source tarballs). Heaviest: stringi 11 MB, ncbit 9.4 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.4
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (7)
Author, Maintainer since 1.0.0 (2026), Copyright holder
Contributor
Contributor
Contributor
Contributor
Contributor
Releases (2)

Pick two releases to compare their code metrics.

  • 1.1.0Latest
    record
    2026-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_time
    added 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
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0
    record
    2026-01-19
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for deepSTRAPP version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy