There's more...

The truth is that for population genetic analysis, nothing beats R; you are definitely encouraged to take a look at the existing R libraries for population genetics. Do not forget that there is a Python-R bridge, which was discussed in Chapter 1, Python and the Surrounding Software Ecology.

Most of the analysis presented here will be computationally costly if done on bigger datasets (remember that we are only using chromosome 2, subsampled at 10 percent). Chapter 9, Python for Big Genomics Datasets, will discuss ways to address this.

Get Bioinformatics with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.