Home

Code Examples

On this page you will find all code examples used in the book. If something is missing or wrong, please let me know! Twitter is best: @natureincode. Alternatively, you can send me email at lastname.firstname@gmail.com.

Thanks,
Marcel Salathé
@marcelsalathe

Chapter 2: The Genes, They Are a-Changin'

[no image]

[no image]

[no image]

[no image]

[no image]

Chapter 3: Genetic Drift: The Power of Chance

[no image]

[no image]

[no image]

[no image]

Chapter 4: Mutation: The Power of Mistakes

[no image]

Chapter 5: Migration: Spatial Models

Chapter 6: Natural Selection: The Best Idea Anyone's Ever Had

Chapter 7: Epidemics: The Spread of Infectious Diseases

Chapter 8: Cooperation: Good Guys Can Finish First