Choose computing environment¶
There are two ways to follow this tutorial:
A) Use the pangeo binder. This is a good option if you don't have access to a Unix/Linux computer.
Open the binder environment with the "Launch binder" button below in a new tab. It will take a few minutes to build:
Click on the "Terminal" button to launch it:
Then, follow the set up instructions below starting at step 2. The Snakefile and necessary conda environment files are already installed in the binder.
When you close the binder, it does NOT save your work so download any files you want to keep.
To download files, right-click the file you want to save, and select "Download":
To close the binder, go to "File" and click "Shut Down":
B) Use a Unix or Linux environment (e.g., with a Mac or High Performing Computing environment).
- For this option, please follow all the set up instructions below.
Set up computing environment¶
We will use conda to create an computer software for this tutorial. If you don't have conda installed, please see the Set up computing environment with conda on MacOS tutorial.
Please refer to the conda command cheat sheet for commonly used conda commands!
Step 1: Download tutorial files:¶
First, create a new directory for this tutorial in the
(base) conda environment, e.g.,:
Rename the "Snakefile.py" to "Snakefile". There should be no file extension (we just added it so you'd be able to download the file!).
Step 2: Create new conda environment:¶
The "environment.yml" file tells conda 1) where to look for the software installations under "channels" and 2) what software to install under "dependencies". You can also specify specific software versions, otherwise conda will download the most up-to-date version. Here are the specifications we'll use for this tutorial:
Create a new environment called
snaketest from the
conda env create -n snaketest -f environment.yml
Use this command if you are running the pangeo binder:
conda env create -n snaketest -f ./binder/environment.yml
Step 3: Activate conda environment:¶
conda activate snaketest
Note that your terminal command prompt should now look like
(snaketest) $ instead of
Step 4: Test that your environment is ready to go¶
You should have several software installed in your
snaketest environment now. Check it out!
samtools 1.10 Using htslib 1.10.2 Copyright (C) 2019 Genome Research Ltd.
If you get an error, the software installation may have failed. You can check the software that is installed in your conda environment:
To leave the conda environment, type:
Later in the tutorial, we'll use
wget to download data. Installing
wget on MacOS can be achieved with
conda install. This step will take a few minutes and the installation should be done in the
base conda environment:
Go back to base environment:
conda install -c anaconda wget
GNU Wget 1.20.1 built on darwin14.5.0. -cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls +ntlm +opie -psl +ssl/openssl Wgetrc: /Users/amanda/miniconda3/envs/snaketest/etc/wgetrc (system) Compile: x86_64-apple-darwin13.4.0-clang -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/Users/amanda/miniconda3/envs/snaketest/etc/wgetrc" -DLOCALEDIR="/Users/amanda/miniconda3/envs/snaketest/share/locale" -I. -I../lib -I../lib -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/amanda/miniconda3/envs/snaketest/include -DHAVE_LIBSSL -I/Users/amanda/miniconda3/envs/snaketest/include -DNDEBUG -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/amanda/miniconda3/envs/snaketest/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c2196a4d-0070-4d98-71cc-9baa5fb53ac9/volume/wget_1551978005217/ work=/usr/local/src/conda/wget-1.20.1 -fdebug-prefix-map=/Users/amanda/miniconda3/envs/snaketest=/usr/local/src/conda-prefix Link: x86_64-apple-darwin13.4.0-clang -I/Users/amanda/miniconda3/envs/snaketest/include -DHAVE_LIBSSL -I/Users/amanda/miniconda3/envs/snaketest/include -DNDEBUG -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/amanda/miniconda3/envs/snaketest/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/c2196a4d-0070-4d98-71cc-9baa5fb53ac9/volume/wget_1551978005217/work=/usr/local/src/conda/wget-1.20.1 -fdebug-prefix-map=/Users/amanda/miniconda3/envs/snaketest=/usr/local/src/conda-prefix -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/amanda/miniconda3/envs/snaketest/lib -L/Users/amanda/miniconda3/envs/snaketest/lib -L/Users/amanda/miniconda3/envs/snaketest/lib -lssl -lcrypto -L/Users/amanda/miniconda3/envs/snaketest/lib -lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a -lcrypto Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://www.gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Originally written by Hrvoje Niksic <firstname.lastname@example.org>. Please send bug reports and questions to <email@example.com>.