CBIO7501 · Lesson 01
Diederik Stapel, social psychologist: invented data for years; his fraud was uncovered in 2011 and 58 of his papers were retracted (Retraction Watch leaderboard). The original lecture slides showed his portrait and press coverage; those images are not ours to share.
Fraud is rare. Most irreproducible research comes from honest people, under pressure (“publish or perish”), with messy files, undocumented steps and software nobody can reinstall.
| Study | What was checked | Result |
|---|---|---|
| Stodden et al. 2018 | 204 papers in Science | data and code obtained for 44%, findings reproduced for 26% |
| Trisovic et al. 2022 | over 9,000 R files on Harvard Dataverse | 74% failed on the first run, 56% after automatic clean-up |
| Samuel & Mietchen 2024 | 22,578 Python notebooks from biomedical papers | 1,203 ran without errors; 879 gave the published results |
The usual reasons: a missing package, a variable defined somewhere else, a file expected in a folder that is not there.
Innovation points out paths that are possible; replication points out paths that are likely; progress relies on both.
Open Science Collaboration (2015), Science 349:aac4716
The Turing Way’s 2 × 2 (figure linked, see Sources):
| Same data | Different data | |
|---|---|---|
| Same analysis | Reproducible | Replicable |
| Different analysis | Robust | Generalizable |
NASEM (2019): reproducibility = same data and code, same result; replicability = new data, consistent result. This course is mostly about the first, which is the minimum: if your own analysis cannot be rerun, nothing else can be checked.
publication only → + code → + code and data → + linked and executable → full replication
(not reproducible) (gold standard)
After Peng (2011). Every step to the right lets a reader check more.
hypothesis → design → data collection → analysis → interpretation → publication
▲ HARKing low power p-hacking publication bias
└──────────────────────────────────────────────────────────────────┘
Questionable practices at each step (after Munafò et al. 2017, figure 1; linked in Sources).
Before the project
During
After
Duke, 2006 to 2011. Genomic signatures to pick chemotherapy for patients, used in clinical trials. Baggerly and Coombes tried to reproduce them and found, among other errors, gene lists shifted by one row and sample labels swapped. Trials were stopped; papers were retracted.
England, October 2020. Thousands of positive COVID-19 tests were missed for about a week: results were gathered in Excel’s old .xls format, which holds at most 65,536 rows per sheet (the current .xlsx holds 1,048,576). Rows beyond the limit were silently dropped.
(News and journal pages from the original lecture slides are not reproduced; see Sources.)
5 minutes. Share a time when you could not rerun an analysis: yours or someone else’s. What was missing? Who was “to blame”: the person, the lab, the journal, the incentives?
| Kind | Examples |
|---|---|
| Technical | software versions, operating systems, hardware, randomness, lost data |
| Human | undocumented steps, manual edits, file chaos, people leaving |
| Design and statistics | low power, flexible analysis, selective reporting |
| Incentives | novelty over rigor, no credit for data or code |
AI is also a tool for reproducibility: explaining code, writing tests and documentation. Check what it writes.
Figure: NBIS, Tools for Reproducible Research, CC BY 4.0
Data (lesson 03) · code (04, 06, 07) · environment (05, 08) · workflow (09, 10) · shared results (11, 12)
Decent: available on request; all metadata needed for the results available
Good: raw data in a public repository; any preprocessing done by scripts, never by hand
Great: a section or repository that helps others reproduce it; open, machine-readable formats (.csv, not .xls)
Decent: the code from processed data to results is available on request
Good: all code from raw data to results is public, with versions (tags, releases)
Great: documented, with instructions to reproduce the results; seeds recorded for random methods
Decent: the key programs are named in the methods
Good: every program is listed, with its version
Great: files or instructions that rebuild the whole environment (a lock file, a container)
Tutorial 01 turns these levels into an audit of a published paper.
The rest of this course is one lesson per pillar, on one example project.
All the time. It is cheapest on day one and most expensive the week before submission.
| Concern | Answer |
|---|---|
| “I will be scooped” | A DOI and a public date establish priority; preprints help |
| “Nobody credits data and code” | Cite them (CITATION.cff, DOIs); they count increasingly |
| “Patient privacy” | Controlled access for sensitive data; share code and metadata (lesson 03) |
| “It is extra work” | Less work than redoing an analysis you cannot rerun |
| “It hurts my career” | Open work is easier to find, evaluate and reuse |
3 minutes. Human genomic data: what could you share openly from a study of 200 patients? What only under controlled access? (We return to this in lesson 03.)
Read next: 01a Reproducibility and 01b Open science, with the openness audit.
Full lecture slides (PDF): Lecture 1, Reproducibility and Lecture 2, Open science.
Text and slides CC BY 4.0 unless marked otherwise. Full list: Sources and credits.
CBIO7501: The Art of Reproducible Research - CC BY 4.0