Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 2.63 KB

File metadata and controls

70 lines (49 loc) · 2.63 KB
title
Setup

These instructions set out how to obtain and install the course pre-requisites for Linux. It is assumed that you have:

  • access to the Bash shell on a fairly modern Linux system
  • sufficient disk space (~1GB) to store the software and data

TODO - Instructions for Mac. All software is known to work on Mac systems but the setup is slightly different.

You do not need root/administrator level access.

Note

There are other ways to install these tools, and it should also be possible to run the exercises on non-Linux systems. However, this is not covered here. We would welcome contributions in this regard. {: .callout}

Software and data installation

To prepare for the course:

  • Download and unpack the sample dataset tarball
  • Install software packages, including Snakemake and the bioinformatics tools, via Conda:
    • If you don't already have Conda, get the Miniconda installer and follow instructions
    • Get the environment file and run conda env update --file conda_env.yaml
    • Ensure the right environment is active - conda activate snakemake_dash
  • Set up the GEdit or Nano text editor (other text editors will work fine but we only provide specific setup instructions for GEdit and Nano).

Preparing your editor

GEdit

GEdit is the text editor that comes with the GNOME desktop and is a great general-purpose editor. Within the application menus it is normally just called "Text Editor" but you can also start it from the shell by typing "gedit &".

Snakemake uses Python file structure which is very fussy about editor settings, particularly the use of Tab characters. Before writing any code in GEdit, you need to go into the preferences and select the following settings:

  • Insert spaces instead of tabs (under the "Editor" tab)
  • Disable text wrapping (under the "View" tab)

The following settings are also recommended:

  • Set the Syntax to "Python3", rather than "Plain Text"
  • Set Tab width to 4
  • Enable automatic indentation
  • Highlight matching brackets
  • Display line numbers

Nano

The Nano editor works directly in the terminal and is found on virtually every Linux system.

The following command will start editing with the suggested settings, in particular regarding Tab handling as mentioned above.

$ nano -wiSOE -T 4 -Y python Snakefile

You probably want to make an alias for this:

$ alias sfedit="nano -wiSOE -T 4 -Y python"

{% include links.md %}