Lab schedule and exercises

Computer lab schedule

Lab exercises are distributed as Jupyter notebooks.

  1. 9/30 Introduction to Jupyter; tree files and formats; tree visualization

  2. 10/7 Sequence alignment; tree searches using parsimony

  3. 10/14 Nucleotide models and model selection; tree searches using maximum likelihood

  4. 10/21 Divergence time estimation

  5. 10/28 Estimating rates of diversification

  6. 11/4 Multilocus tree inference ("species tree" estimation)

  7. 11/11 Ancestral state estimation; independent contrasts; state-dependent diversification

  8. 11/18 Review session

Installing and Running Jupyter

These instructions are for installation on your own laptop. Lab computers will have all software pre-installed.

Install the Miniconda Python 3 distribution

    1. Go to https://conda.io/miniconda.html and download and run the latest installer for your operating system.

    2. Open a Terminal and run the installer (assuming it is now in the Downloads folder):

      1. bash Downloads/Miniconda3-latest-MacOSX-x86_64.sh

    3. Press space to page through to the end of the agreement and agree: type yes.

    4. Answer yes (type it or just hit Enter) when it asks you about prepending the install location to your PATH. This is for convenience in running the various Miniconda programs from the command line.

    5. Close the Terminal.

You now have a bare-bones Python 3 installation that is isolated in your home directory, separate from any Python used by your operating system.

2. Create a new conda environment

A conda environment is like a "sandbox" into which you can install just the packages you need for a particular task. This way, you can make different environments for different projects. So, let's make one to use throughout the quarter -- let's call it rtol -- and populate it with some essential packages.

    1. Open a new Terminal and type:

      1. conda create -n rtol jupyter biopython pandas r-irkernel

  1. To use the environment it must be activated:

    1. source activate rtol

Your Terminal prompt should now begin with (rtol).

2. Run Jupyter

In the same Terminal, or a new one, run:

jupyter-notebook

This will open a browser window showing files and folders in the current directory. Jupyter notebook files are conventionally named with an .ipynb extension, reflecting their derivation from IPython notebooks.