Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.23537244Code and aggregated results for: Branching times and dispersal, not tree imbalance, govern the performance of phylogenetic community-environment methods Note for reviewers: Methods in Ecology and Evolution operates under double-anonymous peer review. Author names, affiliations, funding and acknowledgements have been removed from this deposit, and the public repository will be cited after acceptance. General information Paper citation: to be added upon acceptance. Content: R code of the simulation study (static simulations of metacommunities; process-based simulations of metacommunity dynamics; recovery of a planted clade), the rates aggregated by condition, the summaries of the beta-binomial models, and the scripts that reproduce every table and figure of the manuscript and Supporting Information. Licences: code under the MIT licence; derived data under CC BY 4.0 (see LICENSE.md). Structure R/: functions (tree generation, trait simulation, metacommunity dynamics, tests, clade-recovery methods, formal models). analysis/: numbered scripts, run in order; analysis/run_pipeline.R and _targets.R run the simulations. tests/: unit tests (testthat), including the checks of the permutation code against vegan and PCPS. data/published/: published rates used for validation; data/calibrated/: calibrated pool sizes of the process-based simulations. data/derived/models/: rates aggregated by condition (aggregated.csv), posterior summaries, contrasts, posterior predictive checks and diagnostics of each model. data/derived/pools/, data/derived/trees/, data/derived/case_study/: tree shapes of the regional pools, of the anuran clades of Portik et al. (2023) and the results of the case study (Appendix S3). manuscript/figures/, manuscript/si/: figures and Supporting Information tables. renv.lock, Dockerfile: package versions and the computing environment. Reproducing the tables and figures without rerunning the simulations From the repository root, with the packages in renv.lock (renv::restore()): Rscript analysis/22_manuscript_figures.R # Figs 2-5 and S1 from data/derived/models, data/derived/pools and manuscript/si/table_S1_grid.csv (all included) The tables data/derived/models/*/aggregated.csv hold the number of rejections (or hits) out of the replicates of every condition, which is all the formal models use: fit_formal_model() in R/formal_models.R refits each model from them, with the formulas given in analysis/18_formal_models.R and analysis/20_formal_models_layerB.R (these scripts start from the replicate tables). Fig. 1 (analysis/13_fig1_schematic.R) and Table S1 (analysis/24_si_tables.R) need the tree grid, which analysis/06_tree_grid.R regenerates. The full simulations (about 870,000 metacommunities) are run with _targets.R; the tree grid and the raw replicate tables are not included because of their size and are regenerated by the pipeline from the seeds documented in the scripts. Data and scripts not included The scripts that read the tadpole metacommunity data (analysis/21_regional_pools.R and analysis/23_case_study.R) are withheld for review because they name the data providers; their outputs are in data/derived/pools/and data/derived/case_study/. The species-level time tree of Portik et al. (2023) must be downloaded from its original source (see data/raw/README.md). The raw tadpole metacommunity data of Appendix S3 come from published studies and from unpublished data shared with the authors, which cannot be redistributed.
Keyword(s):
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)