About the course
Data Analysis in Life Sciences is a five-week introduction to computing for biologists. It starts with the kinds of files your data come in and ends with an analysis that someone else can re-run from the raw data. The aim is that in later lab courses and in your thesis you analyse data in R rather than by hand in a spreadsheet. The course introduction slides explain why.
No previous experience with the terminal, programming, or statistics is assumed. All course datasets are simulated teaching data.
What you will be able to do
- Tell plain-text data files from Word and Excel files, find files by their path, and estimate how much memory a dataset needs.
- Inspect and organise lab files with a few command-line tools, locally and on a remote Linux computer.
- Import biological measurements into R, check them, calculate new variables, summarise groups, and make labelled plots.
- Describe variation with mean, variance and SD, and tell the spread of individual plants from the uncertainty of an estimate.
- Use a t-test and a straight-line fit, reporting effect size, uncertainty, units, and limitations.
- Write an R Markdown report that renders from its saved data and code.
The course does not cover database searching, sequence alignment, or omics analysis; those come in later courses.
Weekly checkpoints
| Week | By the end of the week you can |
|---|---|
| 1 — Files and the terminal | Open a data file as plain text, give its path, find it in the terminal, and run a first calculation in R |
| 2 — R and reports | Import a table, calculate growth, plot it, and render a report from its source |
| 3 — Variation | Check a messy table, summarise groups, and explain SD versus uncertainty |
| 4 — Comparisons and lines | Estimate a difference with a confidence interval, analyse paired data, and fit a calibration line |
| 5 — Bigger data and reproducibility | Estimate a dataset’s memory needs, work on a remote computer, and reproduce a small study from a fresh folder |
Three places where you type commands
| Where | Typical commands | What it acts on |
|---|---|---|
| Terminal on your laptop (Ubuntu or Mac Terminal) | pwd, ls, unzip |
Files and programs on your laptop |
| R Console in RStudio | mean(), read_csv(), ggplot() |
R objects, and files R can reach |
Remote terminal after ssh |
pwd, ls, supported remote commands |
Files and programs on the remote computer |
A folder called data exists on many computers. When something cannot be found, first check which computer and which folder you are in.
What to keep
Keep the raw data unchanged. Save your R code and .Rmd files, not only screenshots or printed numbers, and keep generated figures and HTML reports next to their source. The downloads page has the course folder and a working report template.
Some exercises offer a chemistry-lab alternative to the biology example; choose one. Each gives every definition, quantity, unit and formula you need, so no chemistry course is required.
Getting help
Note the exact error message, the line or chunk that produced it, the file name, and whether you were working locally or remotely. Never include passwords or login codes in a help request.