Reproducibility
This part is about running an analysis again, for a referee, a colleague or yourself a year later, and getting the same result. It starts with what a claim of reproducible says, what is held fixed, what may vary, and when two results count as the same, and then captures the inputs a result depends on, one kind at a time: the seeds and the order of the arithmetic inside your own program, then the software environment it runs with, frozen from a list of names to a lockfile of hashes, then the machine it runs on, which you cannot freeze, and so record. A section on workflows follows, pipelines of many steps, each with an environment of its own, and the same pipeline in Snakemake, Nextflow and Parsl. The last page is about archiving a result when you publish it, and ends with a checklist for your own project.
| Title | Description |
|---|---|
| What reproducible means | What a claim that an analysis is reproducible says: what is held fixed, what may vary, and when two results count as the same; the five Rs, from re-runnable to replicable; a real pipeline checked by a looser rule than identical bytes; and a map of the inputs the rest of this part captures. |
| Which workflow manager? | make, Snakemake, Nextflow and Parsl, sorted by whether they pull or push and whether each step has an environment of its own; what follows for a dry run, a graph that depends on results, deciding which steps are already done, moving the files, and provenance; which to reach for first; and the volume of the unit ball, the pipeline every page of this section runs. |
| Seeds, and the order of a sum | The two principles behind a program that gives the same output every run, a fixed seed and a fixed order of execution; why the π of the part on parallelism prints the same line on every page; a sum of floats that changes with the number of pieces it is split into, and with the order the pieces finish; where the same happens in OpenMP, Numba, BLAS and MPI; and the fixes, cheapest first. |
| Freezing an environment | Why an environment.yml, a module load or a README’s ‘Python 3’ gives a different environment months later; the ladder from names to versions to a lockfile and an image’s digest, and what each lockfile pins; locking from the recipe rather than exporting after drift; containers; and what a lockfile does not cover. |
| Recording the machine | The part of the environment that belongs to the centre, its modules, MPI, GPU driver, kernel and CPU, which no lockfile pins: a script that records them at the top of every job; why one lockfile still runs different code on different CPUs, and which equivalence to claim on one kind of node and across them; Intel MKL’s conditional numerical reproducibility; and choosing variants in the recipe rather than by what was detected. |
| Workflows | Pipelines of many steps, run again: which workflow manager, by whether it pulls or pushes and whether each step has an environment of its own; then the same pipeline, the volume of the unit ball with a step planned at run time, in Snakemake, Nextflow and Parsl. |
| Archiving a result | Keeping every input of a result where it can still be found when you publish it: a manifest of hashes for the data, the code at a tag, the lockfiles and the packages they name, the container image and the jobs’ records; a DOI from Zenodo and the source in Software Heritage, each with a hash beside it; and a checklist for your own project, drawn from the whole of this part. |