Book Image

Bioinformatics with Python Cookbook - Second Edition

By : Tiago Antao
Book Image

Bioinformatics with Python Cookbook - Second Edition

By: Tiago Antao

Overview of this book

Bioinformatics is an active research field that uses a range of simple-to-advanced computations to extract valuable information from biological data. This book covers next-generation sequencing, genomics, metagenomics, population genetics, phylogenetics, and proteomics. You'll learn modern programming techniques to analyze large amounts of biological data. With the help of real-world examples, you'll convert, analyze, and visualize datasets using various Python tools and libraries. This book will help you get a better understanding of working with a Galaxy server, which is the most widely used bioinformatics web-based pipeline system. This updated edition also includes advanced next-generation sequencing filtering techniques. You'll also explore topics such as SNP discovery using statistical approaches under high-performance computing frameworks such as Dask and Spark. By the end of this book, you'll be able to use and implement modern programming techniques and frameworks to deal with the ever-increasing deluge of bioinformatics data.
Table of Contents (16 chapters)
Title Page
About Packt
Contributors
Preface
Index

Exploring a dataset with Bio.PopGen


In this recipe, we will perform an initial exploratory analysis of one of our generated datasets.

We will analyze the 10 percent sampling of chromosome 2 without the offspring. We will look for monomorphic loci (in this case, SNPs) across populations, along with how to research minimum allele frequencies and expected heterozygosites.

Getting ready

You will need to have run the previous two recipes and should have the hapmap10_auto_noofs_2.gp and hapmap10_auto_noofs_2.pops files downloaded. We will also use the metadata file that we downloaded in the first recipe. For this code to work, you will need to install Genepop from either http://kimura.univ-montp2.fr/~rousset/Genepop.htm or, if you're using Anaconda Python, by using conda install -c bioconda genepop. We will use the interface provided by Biopython to execute Genepop and parse its output files.

There is a Notebook file with this recipe, called Chapter04/Exploratory_Analysis.ipynb, but it will still...