bioinformatics.science is in open beta. Send feedback
bioinformatics.science

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

Linux and Programming Languages for Bioinformatics

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
  1. Week 1

    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.

    Open
  2. Week 2

    Files and text

    Viewing, counting, cutting. Redirecting input and output. Pipelines. Why the pipeline is the central idea of UNIX.

    Open
  3. Week 3

    Searching and processing text

    grep, cut, sort, uniq, sed. Regular expressions. A short introduction to awk for working with columns.

    In preparation
  4. Week 4

    Repetition without manual work

    Shell scripts. Variables, loops, command-line arguments. When a script is enough and when you need a real language.

    In preparation

Part 2. Programming

8 weeks
  1. Week 5

    Python: first steps

    Values, types, variables. How to run code. How to read an error message.

    In preparation
  2. Week 6

    Conditions and loops

    Boolean expressions. if, for, while. When to use which.

    In preparation
  3. Week 7

    Data structures

    Lists, dictionaries, sets, tuples. Which one for what, and why the choice matters.

    In preparation
  4. Week 8

    Functions

    Breaking a task down. Arguments and return values. Name scope. Why repeated code is a problem.

    In preparation
  5. Week 9

    Files and parsing text

    Reading and writing. Splitting on a delimiter. Converting strings to numbers and back.

    In preparation
  6. Week 10

    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.

    In preparation
  7. Week 11

    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.

    In preparation
  8. Week 12

    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.

    In preparation

Part 3. Real work

3 weeks
  1. Week 13

    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.

    In preparation
  2. Week 14

    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.

    In preparation
  3. Week 15

    Putting it together

    Finishing and presenting the course project. A review of the ground covered.

    In preparation
Syllabus, course project and reading list