Population modeling scripts

--------------------------------------------------------------------------------
DIRECTORIES

appendix
Scipts that pertain only to appendix analyses

--------------------------------------------------------------------------------
FILES

--- aigrettes_phi.csv
interaction matrix for Ile Aux Aigrettes case study

--- aigrettes_stochastic.m
Runs the model using the Aigrettes empirical network. Toggle between perturbation 
entry points by commenting/uncommenting the shock_entry definition

--- bifurcation_plot.m
Generates bifurcation plots given population sizes, parameter values, and dominant
eigenvectors

--- bifurcation_leftpanel.m
Generates the plot in Figure 1B

--- eprob.m
Calculates extinction probabilites from a set of replicate ouputs. Assumes a 
5-column matrix with replicate IDs in the 3rd column and extinction/persistence 
(1/0) in the 5th column.

--- extract_spp.m
Function that extracts information about a single species from a larger set of 
simulation outputs. Assumes a 5-column matrix with species ID in the fourth column.

--- flores_stochastic.m
Runs the model using the Flores empirical network. Toggle between perturbation 
entry points by commenting/uncommenting the shock_entry definition.

--- flores_phi.csv
interaction matrix for Flores case study

--- model_guts4.m
Function that simulates population trajectories given the deterministic skeleton 
(see comments in the file) and a stochastic perturbation applied multiplicatively 
to mortality

--- r_harm.m
Function calculating 1/2 of the harmonic mean of the abundance of a focal species 
and the sum of the abundances of its mutualists. Used by all scripts that run 
population trajectories

*--- musweep_4spp_stochastic.m
(mu sweep on f1 only, 4spp model

*--- musweep_2spp_mshock.m
2-species system with multiplicative perturbation

*--- musweep_2spp_stochastic_FULLTRAJeCTORY.m
keeps track of the entire trajectory. Initial values are as usual (F=700, B=700). 

*--- varsweep_4spp_ashock_series.m
the one with additive perturbation

--- varsweep_4spp_mshock_series.m
Runs the model with symmetric parameterization across all species and multiplicative 
perturbtion on mortality.

*--- varsweep_4spp_mshock_noseries.m
same as above but only records the final population sizes.

