Skip to content

Implements the spatial Moran model on graphs: simulations and animations of the evolution

Notifications You must be signed in to change notification settings

wlamnorman/evographs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evographs

This repository implements a installable package (run poetry install in root directory) called evographs which implements the spatial Moran model on a Graph class, allows for carrying out simulations and animations of the evolution of a Graph object whose nodes reproduce according to the Moran model.

Running a simulation

Running python3 -m evographs -h in the terminal while in the root directory and set parameters as per your liking to start a simulation that is then saved as an animated video that visualises the evolution of the population similarly to the video below.

The below animation for example was made using

python3 -m evographs -n_nodes 50 -n_genotypes 16 -edge_probability 0.2 -selection_intensity 0.8

evolution_simulation-1.mp4

🪲 known-bugs 🐛

About

Implements the spatial Moran model on graphs: simulations and animations of the evolution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages