Introduction to Bash

UofAlogo

Course Homepage
September 2017

This project is maintained by UofABioinformaticsHub

Introduction and Setup

Introduction

General Information

Thank you for your attendance & welcome to the Introduction to Bash: Using the Terminal For Bioinformatics Workshop. This is an offering by the University of Adelaide, Bioinformatics Hub which is a centrally funded initiative from the Department of Vice-Chancellor (Research), with the aim of assisting & enabling researchers in their work. Training workshops & seminars such as this one are an important part of this initiative.

Some additional resources run by the Bioinformatics Hub which may be of interest beyond today are:

Today’s workshop has been put together based on previous material and courses prepared by Dr Stephen Bent (University of Queensland), with generous technical support & advice provided by Dr Nathan Watson-Haigh and Dr Dan Kortschak. We hope it will be useful in enabling you to continue and to advance your research.

Course Summary

In today’s workshop, the morning session will be spent introducing you to the basic tools and concepts required for data handling. In the afternoon session we’ll develop these skills to a more advanced level, with progress in both sessions being made at your own pace. Some people may finish early today, but the majority of you probably won’t.

The majority of data handling and analysis required in the field of bioinformatics uses the command line, alternatively known as the terminal or the bash shell. This is a text-based interface in which commands must be typed, as opposed to the Graphical User Interfaces (aka GUIs) that most of us have become accustomed to. Being able to access these tools enables you to more fully utilise the power & capabilities of your machine, for both Linux & Mac operating systems, and to a lesser extent will even enable you to dig deeper on a Windows system.

Whilst some of the tools we cover today may appear trivial, they are used on a daily basis by those working in the field. These basic tools are essential for writing what are known as shell scripts, which we will begin to cover in the afternoon session. These are essentially simple programs that utilise the inbuilt functions of the shell, and are used to automate processes such as de-multiplexing read libraries, or aligning reads to the genome. A knowledge of this simple type of programming and navigation is also essential for accessing the high-performance computing resources such as phoenix.

Today’s Instructors

Today your helpers will be

Recommendations For Working

In the following pages, we strongly encourage you to manually type all commands. The mistakes you will inevitably make will actually be important learning steps. Additionally, in your work beyond today, you will probably not have any instructions to follow. The experience of typing these commands will equip you for future work far better than if you simply copy & paste.

For today’s session, you will also be provided with red post-it notes. Please use these to signal whether you need help or not by placing them on your monitors. These are easy for instructors to spot so we can make our way over, although do be aware that there will be times when all instructors are busy. This will be important as we all set our computers up in the following section.

Computer Setup

Previously we have run these sessions using Virtual Machines, but today we are opting for running all sessions using the tools locally installed on your own machines today. As there will be a huge variety of laptops in the room, the initial set-up may be a difficult to begin with, but will settle as the day progresses. Although this will present numerous challenges from our perspective, we feel this is a better approach as everyone will leave knowing exactly how to get the ball rolling on their own familiar systems.

Instructions for how to set-up everything on your own machine are at the following pages. Please follow these very carefully, and call an instructor over if you have trouble. In particular, the Windows set-ups may take a while to get sorted.

If you are already running Ubuntu, your computer will already be set-up correctly.

Home