This repository implements a species distribution modeling comparison study for about 600 South American mammal species. Specifically, the study compares different modeling approaches for predicting species distributions.
Code for a comparative SDM study for about 600 South American mammal species. Specifically, the study compares different modeling approaches for predicting species distributions.
An analysis of model performance can be found here: https://chrkoenig.quarto.pub/sdm-performance-report/
## Project Structure
-**`R/`**: Contains all the R scripts organized by workflow steps.
-**`renv/`**: Manages package dependencies for reproducibility.
-**`Symobio_modeling.Rproj`**: RStudio project file for easy navigation.
-**`README.md`**: High-level overview of the project.
-**`occurrences.png`**: Visualization or reference image for occurrences data.
-**`.Rprofile`**: Custom R environment settings.
-**`renv/`**: Manages package dependencies for reproducibility.
-**`renv.lock`**: Lockfile for `renv` to ensure consistent package versions.
-**`data/`**: Input data (geo, phylo), intermediate data and modeling results
-**`plots/`**: Plots for visualizing data processing and analysis steps
## Workflow Overview
...
...
@@ -21,7 +23,7 @@ Pre-process species-specific and environmental information for model fitting and
-**`01_01_range_preparation.R`**: Process species range maps and calculate range dissimilarity.
-**`01_02_traits_preparation.R`**: Prepare species trait data and calculate functional distances.
-**`01_03_phylo_preparation.R`**: Process phylogenetic information and alculate phylogenetic distances.
-**`01_03_phylo_preparation.R`**: Process phylogenetic information and calculate phylogenetic distances.
-**`01_04_raster_preparation.R`**: Prepare environmental raster layers for modeling for data extraction.
### 2. Presence/Absence Data Processing
...
...
@@ -56,7 +58,8 @@ Analyse modeling results
```r
renv::restore()
```
3. Run the scripts in the R/ directory sequentially. Some scripts, especially for model fitting, may run a long time and benefit from powerful hardware.
3. Set up the directory structure using the `setup_dirs()` function in the `utils.R`
4. Run the scripts in the R/ directory sequentially. Some scripts, especially for model fitting, may run a long time and benefit from powerful hardware.
## Additional Notes
- Ensure that all required input data (e.g., range maps, raster files) is available in the expected directories.