Day 10 — A short report that answers a question and runs again
Data Analysis in Life Sciences
About this lecture
A lab report, a thesis chapter or a paper is read by someone who was not in the room and will not run your code first. They need to know what was measured, how, what you saw, and what you cannot conclude. A report that announces “the treatment works!” from two overlapping clouds of points, or that only renders on your own laptop, fails that reader. Today you write a short report that answers a biological question honestly and that someone else can rerun.
Today you will:
build a report from four short sections: question and data, methods, results, interpretation;
explain a method in biological words, with the code underneath;
describe a figure honestly: pattern, overlap and one limitation;
check that the project renders from a fresh session and from another folder.
This day brings together Days 6–9. Day 11 asks what to do when the table itself contains errors.
Four sections, four jobs
Question and data: what was asked, what was measured, what one row is.
Methods: how the file was read and how growth was calculated.
Results: a labelled figure and a few calculated facts.
Interpretation: what the pattern is, how much plants vary, one limitation.
A report leads from the data through an analysis to a readable result.
Every sentence should be backed by the data, a figure or the study description.
Question and data: what was measured?
24 seedlings in separate pots; 12 randomly allocated to a nutrient treatment, 12 controls.
Length measured at the start and after seven days, in mm.
One row = one plant. Two lengths of the same plant are not two plants.
Simulated teaching data: say so.
Separate control and treated pots; each plant is its own independent unit.
Methods: biology first, code underneath
“Growth was calculated as final minus initial length for each plant, in mm.”
That tells a reader more than “we used mutate()”. The code still goes in the report, so the calculation can be rerun, followed by three simple checks: