Atharva Bhagwat

Your plan

0Plan

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.

In [1]:
plan
Out[1]:
stagestar1star2star3
Part 1: learn by running code (all in Colab, nothing to install)
startWarm-upreading code like English, in about 10 minutesNaN––
0Python building blocks Corevalues, lists, dictionaries, libraries, tables · about 60 minNaNNaN–
1Notebooks, text and loops Corecells, kernel memory, text, loops · about 45 minNaNNaN–
2Reading error messages Corewhat error messages mean and what to do · about 30 minNaNNaN–
3Tables with pandas Coreload a table, pick columns, filter rows · about 40 minNaNNaN–
4Calculations and groups Corenew columns, groups, pivots · about 40 minNaNNaN–
5Writing functions Corereuse code with a function · about 40 minNaNNaN–
6Checking real data Corelook at real data before trusting it · about 45 minNaNNaNNaN
7Summarising by region Coregroup, summarise, interpret · about 40 minNaNNaNNaN
8Plotting distributions Corehistogram, box plot, violin, strip, count · about 40 minNaNNaN–
9More plots Optionalscatter, line, heatmap · about 45 minNaNNaN–
10Checking your conclusion Coredoes the answer survive a different rule? · about 40 minNaNNaNNaN
Part 2: your own computer, then the cluster
11Setting up your computer Level upterminal, Miniconda, environments, VS Code · about 60 minNaNNaN–
12Organising a project Level upfolders, downloads, checksums, helper files · about 45 minNaNNaN–
13Running a script Level upone command that rebuilds a result · about 30 min–––
Extra
extraDNA sequences with Biopython Optionaltranslate and read sequence files · about 40 min–––
In [2]:
plan[["star1", "star2", "star3"]].notna().sum().sum()
Out[2]:
0

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.

Start with Stage 0

Special thanks to Nilay!