Day 2 - installation instructions

(Instructions mostly copied from Short read quality and trimming!)

Use image “Ubuntu 14.04.3”


sudo apt-get -y update && \
sudo apt-get -y install trimmomatic fastqc python-pip \
   samtools zlib1g-dev ncurses-dev python-dev

Install anaconda:

curl -O

Then update your environment and install khmer and sourmash:

source ~/.bashrc

conda install -n root pip -y
pip install
pip install

(See the sourmash docs for this workshop for some details on the sourmash install.)

Running Jupyter Notebook

Let’s also run a Jupyter Notebook in your home directory. Configure it a teensy bit more securely, and also have it run in the background.

Generate a config:

jupyter notebook --generate-config

Add a password, have it not run a browser, and put it on port 8000 by default:

cat >> ~/.jupyter/ <<EOF
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:5d813e5d59a7:b4e430cf6dbd1aad04838c6e9cf684f4d76e245c'
c.NotebookApp.port = 8000


Now, run!

jupyter notebook &

This will output some stuff; to make the prompt appear again, hit ENTER a few times.

You should now be able to visit port 8000 on your computer and see the Jupyter console; to get the URL to Jupyter, run:

echo http://$(hostname):8000/


If your network blocks port 8000 (e.g. cruznet at UCSC), you can run:

ssh -N -f -L localhost:8000:localhost:8000 username@remotehost

to tunnel the remote Jupyter notebook server over SSH.

We are now ready to map and bin reads .

LICENSE: This documentation and all textual/graphic site content is released under Creative Commons - 0 (CC0) -- fork @ github.