Learn bioinformatics
A structured course from the first terminal session to a finished tool of your own, with a glossary and articles alongside.
1 course, 15 weeks · 2 weeks online · 29 glossary terms
Course
Three parts. The first gives you the environment, the second gives you programming, and the third brings them together on real work.
Start with week 1.
Part 1. The environment
4 weeks- Week 1Open
The command line, and why it exists at all
Connecting to a remote machine over ssh. The file system, paths and moving around. Permissions. How to look for help.
- Week 2Open
Files and text
Viewing, counting, cutting. Redirecting input and output. Pipelines. Why the pipeline is the central idea of UNIX.
- Week 3In preparation
Searching and processing text
grep, cut, sort, uniq, sed. Regular expressions. A short introduction to awk for working with columns.
- Week 4In preparation
Repetition without manual work
Shell scripts. Variables, loops, command-line arguments. When a script is enough and when you need a real language.
Part 2. Programming
8 weeks- Week 5In preparation
Python: first steps
Values, types, variables. How to run code. How to read an error message.
- Week 6In preparation
Conditions and loops
Boolean expressions. if, for, while. When to use which.
- Week 7In preparation
Data structures
Lists, dictionaries, sets, tuples. Which one for what, and why the choice matters.
- Week 8In preparation
Functions
Breaking a task down. Arguments and return values. Name scope. Why repeated code is a problem.
- Week 9In preparation
Files and parsing text
Reading and writing. Splitting on a delimiter. Converting strings to numbers and back.
- Week 10In preparation
Parsing real files
Processing a large file line by line without loading all of it. Writing your own reader. What to do when a line does not look the way you expect.
- Week 11In preparation
Errors, tracebacks, tests
Kinds of errors. Reading a traceback. Finding a bug with print statements and with a step debugger. Writing a simple test that tells you whether the code still works correctly.
- Week 12In preparation
Libraries
The standard library: argparse, os, collections. Then pandas for tables. When someone else's library saves time and when it hides what is going on.
Part 3. Real work
3 weeks- Week 13In preparation
Biopython
What it covers and what it does not. Comparing your own reader with the library's on the same task. When it is worth it and when it is not.
- Week 14In preparation
Reproducibility
git: why, and the essentials. Environments and dependency management with conda or pixi. Laying out a project so it can be rerun a year later.
- Week 15In preparation
Putting it together
Finishing and presenting the course project. A review of the ground covered.