Skip to content
/ Drift Public

Simulations of random ecological drift in microbial metacommunities under different selection and dispersal regimes

License

Notifications You must be signed in to change notification settings

sfodel/Drift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drift

Simulations of random ecological drift in microbial metacommunities under different selection and dispersal regimes, used in the following ISME Journal paper: https://www.nature.com/articles/s41396-020-00754-4.epdf

These simulations are performed using parameters for the frequency and the magnitude of drift that are derived experimentally. The respective experiments were performed using fluorescence-independent flow cytometry in synthetic microbial communities of up to three bacterial strains. For more details on the experimental methodology please see here: https://www.nature.com/articles/s41467-019-09306-7

The code used for these simulations is an attempt to generalize our experimental findings for natural bacterial communities.

In our simulations, 100 communities of 2000 species whose starting populations follow a log-normal distribution (mean = 4, sd=1.1) grow for 1000 generations under varying degrees of dispersal and selection and under the presence or absence of drift.

At each generation, each species in each community grows with a rate drawn from a normal distribution with a mean of 1 and with a standard deviation that is analogous to the strength of selection (here, 0.071 < sd <= 0.167). That rate changes further according to the experimentally-derived magnitude of drift using two distributions that resulted from experimental observations using two different thresholds ("upper" or "mean").

Additionally, dispersal occurs among communities in a closed, unidirectional way and the percentage of total cells that migrate from community to community at each generation represents the rate of dispersal (here, between 2% and 20%).

Communities grow in parallel both with and without drift, and the effect of drift on fundamental ecological community properties (e.g. species richness, community evennes, community size) is derived from comparisons between the two (with option stats=TRUE). Alternatively, a table is returned with the starting relative abundances of thespecies that went extinct in the communities under drift but not in those under no drift (with option stats=FALSE) and the user can calculate any metacommunity-wise metric from it like the median (using na.rm=T).

Here, we used this model to examine the effect of drift in 50 different scenarios resulting from five levels of selection strength (0.5/3, 0.5/4, 0.5/5, 0.5/6, 0.5/7) over ten levels of dispersal rate (2-20% with a step of 2%), but the user can provide any positive value for selection and any positive value between 0 and 1 for dispersal. Moreover, the user can change the number of communities and the number of species in the metacommunity, as well as the number of generations.

About

Simulations of random ecological drift in microbial metacommunities under different selection and dispersal regimes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages