deepSTRAPP 1.1.1
-
convert_BSM_to_simmap()andconvert_BSMs_to_simmaps()now repair paths to phylo and tip ranges objects used in the exampleeel_biogeo_datadataset.
deepSTRAPP 1.1.0
CRAN release: 2026-09-28
- 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. - 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.
