Most analyses can be repeated on the day they are finished. Far fewer can be repeated six months later, by someone else, or by you after the laptop has been rebuilt. The difference is rarely talent. It is a set of small habits: recording versions, keeping parameters in files, and writing down what was actually run. This guide is a practical minimum for a small lab that does not have a dedicated research software engineer.
Three words that get confused
Repeat means you run the same analysis again and get the same result. Reproduce means someone else, using your data, code and description, gets the same result. Replicate means a new experiment or dataset reaches the same conclusion. They are different achievements. A result can be repeatable in your hands, not reproducible by a colleague, and still replicate in an independent study. Reproducibility is the one you can control at the keyboard.
Start with the raw data
Treat raw data as read-only. Do not edit a FASTQ, a count table or a spectrum in place. Copy it into an analysis directory, record where the copy came from, and compute a checksum so you can tell later whether the file changed.
Name files predictably and avoid spaces. A date in ISO format at the start of a filename sorts correctly and removes ambiguity: 2026-11-10_sample01_R1.fastq.gz. Keep a short README that explains what each directory contains and which script produces which output.
If the data are large, you still need a record. A manifest listing file names, sizes, checksums and source accessions is enough to identify the exact input later.
Record versions, not just names
"Ran DESeq2" is not a record. DESeq2 version 1.30 and version 1.40 are not the same software, and neither are the R version, the Bioconductor release or the annotation package behind them. A version record should cover:
- the analysis tool and its version;
- the language runtime (R or Python) and the package manager;
- the versions of the key libraries;
- reference genomes and annotation releases;
- databases downloaded during the analysis, with their release date.
The easiest way to capture this is to let the environment file do it. In Python, export a conda environment or a lockfile. In R, use renv to capture package versions. If you use containers, record the image name and tag, or better, the digest, because tags can be reassigned.
Keep parameters in files, not in your memory
A command typed into a terminal is gone as soon as the terminal closes. Put parameters in a configuration file, a script, or a workflow definition. If you change a threshold, the change should show up in a diff.
The same applies to interactive work. If you click through a point-and-click tool, write down the settings in a note as you go, and export the session file if the tool has one. A screenshot of a settings panel is better than nothing, but a text record is searchable.
Seeds count as parameters. Any step that involves randomness — clustering, downsampling, train/test splits, stochastic optimisation — needs a recorded seed if you want the same output again.
Use version control for code and text
Git is not only for software teams. A lab analysis repository with scripts, notebooks, configuration and notes is easier to track than a folder of files named final_v3_really_final. Commit at meaningful points, write short messages that say what changed, and tag the commit used for a paper or report.
Do not commit large raw data or credentials. Keep those outside the repository and record their location and checksum. A .gitignore that excludes data, temporary outputs and secrets prevents most accidents.
If Git feels heavy, start with one repository per project and three commands: status, add, commit. That is enough to answer "what changed since the version that produced the figure?"
Put the steps in a workflow
A workflow manager such as Snakemake or Nextflow describes the steps, their inputs and outputs, and the software each step needs. It reruns only what is out of date and records what was executed. This is valuable even for a small project, because it turns a sequence of remembered commands into a file that can be read and rerun.
A shell script with set -euo pipefail and comments is a reasonable intermediate step. The important property is that the whole analysis can be started from one place, not that the tool is sophisticated.
Write a computational notebook that is not a diary
Lab notebooks record what was done, including dead ends. Computational records should do the same, but in a form that can be rerun. A useful project log has an entry per session with the date, the goal, the commands or script used, the output, and any decision made. Keep the failed attempts; they explain why the final choice was made and stop the next person from repeating them.
For the paper itself, the methods section is the public record. The habits here feed directly into writing the bioinformatics part of a methods section.
Archive the version that produced the result
When a paper is submitted, archive the exact code and any derived data that can be shared. A repository tag is useful, but a tag can be deleted or the repository can disappear. A DOI from a service such as Zenodo or figshare fixes a snapshot and makes it citable.
Check the license before publishing code, and check consent and privacy rules before publishing data. Not everything can be open, but everything can be described.
A minimum standard for a small lab
You do not need to adopt every practice at once. A workable minimum is:
- Raw data read-only, with checksums and a manifest.
- One project directory with a README and a predictable layout.
- Code under version control, with the paper's version tagged.
- An environment file or container that records versions.
- Parameters in a configuration file, including seeds.
- A session log with dates, commands and decisions.
- An archived, citable snapshot at submission.
If a project meets those seven points, a new student can pick it up, and a reviewer's request for a reanalysis becomes an afternoon rather than a crisis. The RNA-seq analysis workflow is a good place to see these habits applied to a real pipeline, and our QSAR service shows how the same record-keeping appears in a modelling report.
Where labs usually get stuck
The common failures are mundane. The analysis ran on a laptop that has since been replaced. The person who wrote the script left. The annotation database was updated and nobody recorded which release was used. A parameter was changed in the graphical interface and never written down. A figure was edited by hand and the script no longer produces it.
Each of these is prevented by a record made at the time. The cost of recording is minutes; the cost of reconstruction is often days, and sometimes the result cannot be reconstructed at all.
Key points
- Raw data should be read-only, checksummed and described in a manifest.
- Record tool, language, library and database versions, not just tool names.
- Keep parameters and seeds in files so changes are visible in a diff.
- Use version control for code and text, and tag the version used in a paper.
- A workflow manager or a single runnable script beats a list of remembered commands.
- Keep a dated log of commands, outputs and decisions, including failures.
- Archive a citable snapshot of code and shareable data at submission.
When to ask for help
If your group needs a reproducible workflow, a documented environment or a computational record that will survive staff changes, we can set it up around your existing analysis. You can order an analysis. For model-specific validation and reporting, see validating a QSAR model.
Sources
- The Turing Way: A handbook for reproducible, ethical and collaborative data science
- conda: Managing environments
- Sustainable data analysis with Snakemake
- The FAIR Guiding Principles for scientific data management and stewardship
- Semantic Versioning 2.0.0
Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.