-
Notifications
You must be signed in to change notification settings - Fork 0
Code
The code used to produce the results presented in the paper. All the code files are located in this repository under a folder with the same name.
This script contains the main code producing the results in the paper. It contains:
- Island-scale prediction.
- Jaccard analysis
- Distance decay
- Correlations
emln dataset no. 60: dataset of plant-pollinator interactions collected in the canary islands that was archived in the emln R package. used to build the layers of the network.
data/distance_between_sites_canary.csv: used to calculate correlations in the analysis. Taken from the paper that collected the data.
results/predictions_island_scale.rds: The results of the link prediction. used for further analysis in the same scripts as well as in other scripts
other results: correlation results and plotting, that doesn't produce a separated file.
This script handles a sensitivity analysis to check the combined effect of different Ks and lambdas.
results/predictions_island_scale.rds: The predictions found by Abramov_et_al_spatial_prediction_analysis.R script
plot: boxplot to visualize f1s for each
This script contains the code for site scale analysis. It contains:
- Island-scale prediction.
- Jaccard analysis
- Distance decay
- ecological inference
emln dataset no. 60: dataset of plant-pollinator interactions collected in the canary islands that was archived in the emln R package. used to build the layers of the network.
data/distance_between_sites_canary.csv: used to calculate correlations in the analysis. Taken from the paper that collected the data.
results/predictions_site_scale.rds: The results of the link prediction, but this time, site scale.
other results: correlation results and plotting, isn't saved in a separated file.
This script contains the code to compare prediction quality when using the entire species pools of A and P for prediction vs. prediction done based on subsetting only the species they share.
emln dataset no. 60: dataset of plant-pollinator interactions collected in the canary islands that was archived in the emln R package. used to build the layers of the network.
data/distance_between_sites_canary.csv: used to calculate correlations in the analysis. Taken from the paper that collected the data.
results: correlation results and plotting, but isn't saved in a separated file.