This repository contains the analytical pipeline, data, and manuscript sources for a study testing how different food-web reconstruction approaches alter ecological inference in deep-time ecosystems. The project uses the Early Jurassic Toarcian Oceanic Anoxic Event as a case study to compare alternative reconstruction frameworks and assess how assumptions about interaction inference change conclusions about ecosystem structure, extinction dynamics, and recovery.
The central question is whether biological conclusions are robust to the method used to reconstruct trophic interactions, or whether model choice itself drives apparent ecological patterns.
The project compares multiple food-web reconstruction approaches, including:
- allometric and trait-based network models
- body-size based reconstruction
- niche and random models
- PFIM-style paleo food-web inference
- downsampled and parameter-perturbed variants
For each model, it generates replicate networks, compares their topology, simulates extinctions, and evaluates how much model choice affects inferred ecological structure and time-series signals. The work is organized around both the main manuscript and supplementary analyses and is built to be reproducible from raw data and scripted analysis steps.
code/β main analysis scripts and project environment01_build_networks.jlβ generate synthetic food-web networks across models and time slices02_topology.jlβ compute network topology metrics03_extinctions.jlβ simulate extinction sequences under multiple mechanisms04_extinction_analysis.jlβ compare simulated results against empirical recovery transitions05_betadiv.jlβ analyse beta diversity / interaction turnover between models06_structural_differences.Rand other*.Rscripts β downstream statistical analysis and plottinglib/β shared helper functions and model-specific routinesProject.tomlandManifest.tomlβ Julia project environment
data/β input and processed datadata/raw/β guild data, size classes, and feeding rules used to generate networksdata/processed/β generated network objects, topology summaries, extinction sequences, and derived outputs
notebooks/β supplementary analyses and summary notebooksmodel_summaries.qmdβ expanded model descriptions and methodological notesresults_expanded.qmdβ extended analysis and supplementary resultsfigures/andtables/β exported figures and summary tables
index.qmdβ main manuscript sourcefigures/andtables/β rendered project output directories_quarto.ymlβ Quarto project configurationrequirements.txtβ Python environment used by the notebook workflow
The project follows a reproducible research pipeline:
- Build food-web networks from fossil guild data and trait rules.
- Calculate topology and other structural metrics for each network.
- Simulate extinction sequences under random and trait-structured scenarios.
- Compare reconstructed models using multivariate statistics and beta-diversity metrics.
- Evaluate whether model identity or time explains the strongest ecological signal.
- Render the manuscript and supplementary material with Quarto.
To reproduce the analysis, you will need:
- Julia 1.9 or newer
- R and the R packages used by the analysis scripts
- Quarto
- Git
Optional but often useful:
- local or remote compute resources for heavier network simulations
From the project root:
julia --project=code -e 'using Pkg; Pkg.instantiate()'If any package is missing from the default registry, install it explicitly in the project environment. For example:
using Pkg
Pkg.add("https://github.com/BecksLab/pfim.jl")
Pkg.add("https://github.com/BecksLab/Extinctions.jl")For the R workflow, install the packages required by the scripts in code/*.R if they are not already available.
julia --project=code code/01_build_networks.jljulia --project=code code/02_topology.jljulia --project=code code/03_extinctions.jljulia --project=code code/04_extinction_analysis.jljulia --project=code code/05_betadiv.jlRscript code/06_structural_differences.R
Rscript code/07_beta_div.jl.R
Rscript code/08_dunhill_compare.R
Rscript code/09_variance_partitioning.R
Rscript code/10_ANOVA_time.RThe exact R scripts used in the workflow depend on which analysis you want to reproduce; several supplementary analyses are also present in the code/ directory.
quarto render .This will render the main manuscript and configured Quarto documents, including the project outputs and notebook-based supplementary material.
- Raw data are stored in
data/raw/. - Processed outputs such as network objects, topology tables, and extinction summaries are written to
data/processed/. - Large generated products are not always tracked in git and may need to be regenerated by rerunning the relevant analysis scripts.
The workflow produces a variety of outputs, including:
- simulated network ensembles across reconstruction models and time periods
- network topology summaries
- extinction trajectories and robustness metrics
- model-comparison statistics and multivariate analyses
- manuscript figures and supplementary tables
The Julia project environment is pinned via:
code/Project.tomlcode/Manifest.toml
Keeping both files intact helps preserve the package versions used in the analysis and supports reproducible results across machines.
If you use this repository or its methodological pipeline in your work, please cite the associated manuscript when available.
Maintainer: Tanya Strydom
This project is designed to support a comparative ecological-network workflow rather than a general-purpose package. The scripts assume a specific raw-data layout and a particular sequence of analysis steps, so rerunning them works best when the repository structure is preserved.