{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Python for Bioinformatics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These are the notebooks for the [_Python with Bioinformatics Cookbook_](https://www.packtpub.com/application-development/bioinformatics-python-cookbook).\n", "\n", "![Book cover](https://d255esdrn735hr.cloudfront.net/sites/default/files/imagecache/ppv4_main_book_cover/5117OS_Bioinformatics%20with%20Python%20Cookbook_low.jpg)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Datasets" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "[Click here for the datasets used in the book](Datasets.ipynb). You only need this if you do _not_ use the notebooks (as the notebooks will take care of the data)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Python 2 or 3?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Depending on your Python version, some content might not be available. Lets test that:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Python 3: The Phylogenomics module will not work, but all the Big Data content will\n" ] } ], "source": [ "import platform\n", "major, minor, patch = platform.python_version_tuple()\n", "if major == '3':\n", " print('Python 3: The Phylogenomics module will not work, but all the Big Data content will')\n", "else:\n", " print('Python 2: The Phylogenomics module will work, but some Big Data content will not')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "####The new version of DendroPy supports Python 3. You are thus encouraged to consider Python 3" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "