Your plan
Everything here is optional. Take what is useful, skip what is not, and go at your own pace. There are no deadlines, and the stars are just a way to see where you have been.
New to code? Start at the top and go down. Already know some Python? The FAQ shows where to jump in.
| stage | star1 | star2 | star3 | |
|---|---|---|---|---|
| Part 1: learn by running code (all in Colab, nothing to install) | ||||
| start | Warm-upreading code like English, in about 10 minutes | NaN | – | – |
| 0 | Python building blocks Corevalues, lists, dictionaries, libraries, tables · about 60 min | NaN | NaN | – |
| 1 | Notebooks, text and loops Corecells, kernel memory, text, loops · about 45 min | NaN | NaN | – |
| 2 | Reading error messages Corewhat error messages mean and what to do · about 30 min | NaN | NaN | – |
| 3 | Tables with pandas Coreload a table, pick columns, filter rows · about 40 min | NaN | NaN | – |
| 4 | Calculations and groups Corenew columns, groups, pivots · about 40 min | NaN | NaN | – |
| 5 | Writing functions Corereuse code with a function · about 40 min | NaN | NaN | – |
| 6 | Checking real data Corelook at real data before trusting it · about 45 min | NaN | NaN | NaN |
| 7 | Summarising by region Coregroup, summarise, interpret · about 40 min | NaN | NaN | NaN |
| 8 | Plotting distributions Corehistogram, box plot, violin, strip, count · about 40 min | NaN | NaN | – |
| 9 | More plots Optionalscatter, line, heatmap · about 45 min | NaN | NaN | – |
| 10 | Checking your conclusion Coredoes the answer survive a different rule? · about 40 min | NaN | NaN | NaN |
| Part 2: your own computer, then the cluster | ||||
| 11 | Setting up your computer Level upterminal, Miniconda, environments, VS Code · about 60 min | NaN | NaN | – |
| 12 | Organising a project Level upfolders, downloads, checksums, helper files · about 45 min | NaN | NaN | – |
| 13 | Running a script Level upone command that rebuilds a result · about 30 min | – | – | – |
| Extra | ||||
| extra | DNA sequences with Biopython Optionaltranslate and read sequence files · about 40 min | – | – | – |
How the parts fit together
Part 1 runs entirely in Colab. Each stage has a short page to read, then a notebook to practise in, then a few questions. Stages marked Core are the main path; Optional ones go deeper.
Part 2 is for when you want to work on your own computer: the terminal, Miniconda, VS Code, project folders, scripts, and finally the HPC cluster. You can skip it until you need it.
A free book to read alongside
Python for Biologists is a free set of short episodes with videos, code and exercises that teach the basics of Python through genomics examples. It assumes no programming or genetics background. It is a good second source for anything in Part 1: when an idea here does not click, look for the same idea there, and code along.
Special thanks to Nilay!