Research practice

OrthoFinder Reproducibility: Preserve the Evidence Behind Every Evolutionary Claim

OrthoFinder reproducibility requires more than retaining the final orthogroup table. The reported result depends on source annotations, representative selection, species sampling, software versions, configuration, and downstream interpretation. A reproducible project preserves the chain connecting those decisions to the figures and claims. This guide describes an evidence centered research record that supports reconstruction, comparison, and critical review without confusing a successful rerun with proof that every biological conclusion is correct.

Distinguish reproducibility from biological validation

Reproducing a computational result means reconstructing the analysis under a defined set of inputs and methods. Biological validation asks whether the interpretation is supported by appropriate evidence. An exactly repeated result can still be systematically biased by incomplete annotations or an unsuitable design. These goals reinforce one another, but they should not be described as the same achievement.

Also distinguish reproduction from robustness. Reproduction holds the recorded method fixed, while robustness asks what happens under justified alternatives. A result may reproduce perfectly yet change substantially when an incomplete species is removed. Reporting both properties provides a more complete account than presenting one successful rerun as a universal reliability guarantee.

Freeze the sequence collection and its provenance

Archive the actual input files used for the reported analysis, subject to the relevant data permissions. Record assembly and annotation identifiers, source release dates, and checksums. A database name alone is insufficient because the same species can have multiple assemblies and changing gene predictions. A future download may not reproduce the original sequence collection.

Keep raw downloads separate from prepared inputs. Store the scripts or precise rules used to select representatives, rename identifiers, and exclude records. Preserve the mapping between original and analysis identifiers. This allows another researcher to determine whether a missing gene reflects a source annotation, a preparation decision, or a later computational step.

Capture the computational boundary

Record the OrthoFinder release or source revision, dependency versions, operating system, and analysis configuration. Where a container is used, retain a digest when possible rather than relying only on a mutable tag. Where a package environment is used, preserve an appropriate specification and note relevant external system tools.

The recorded command should include explicit choices that affect the analysis. Defaults can change, so retaining local help output or a version appropriate configuration record can be useful. Document scheduler resources and storage locations when they influence execution or restart behavior. These details explain the actual computational boundary rather than an idealized installation.

Worked example: an unexplained family difference

Suppose an illustrative study reports 8,400 families, while a rerun six months later produces 8,560. The researcher remembers using the same species but downloaded refreshed annotations and installed a newer release. Several variables changed simultaneously. The difference cannot be attributed specifically to an improved algorithm, changed gene predictions, or a preparation discrepancy without additional comparisons.

A stronger investigation restores the original archived inputs and software first. Then it changes one defined component, such as the annotation release, and records the effect. Family identifiers should be compared through gene membership rather than label equality. This controlled approach turns an unexplained discrepancy into an interpretable set of changes.

Preserve the path from outputs to claims

Downstream scripts can introduce decisions as consequential as the main analysis. Record table joins, occupancy thresholds, copy number transformations, enrichment backgrounds, and exclusions. Keep the code that generated each reported figure and identify its input files. A final spreadsheet with manually edited values may be difficult to reconstruct even when the original orthology run is well documented.

For a central evolutionary claim, retain a compact evidence dossier containing the relevant sequences, alignment, tree, mapping, and interpretation notes. Broad statistics identify a pattern; the dossier supports its detailed biological explanation. This combination allows a reviewer or collaborator to inspect both the overview and the specific evidence without recreating every exploratory analysis.

Write methods that expose consequential decisions

A useful methods description states the biological question, sampled taxa, annotation sources, representative policy, software versions, chosen analysis settings, and downstream criteria. It should explain why key thresholds or exclusions were used. Avoid replacing this information with a vague statement that standard settings were followed, especially when the settings changed during the project.

Separate predetermined choices from later sensitivity analyses. An unexpected result can reasonably motivate additional checks, but those checks should be described as responses to an observation rather than presented as if they were the original plan. A transparent record supports critical assessment and reduces the risk that selective experimentation becomes invisible.

Case analysis: reconstructing a reported heatmap

Consider an illustrative paper figure showing copy numbers for thirty families across twelve species. To reproduce it, the final image is insufficient. The research record needs the relevant count table, species order, family selection rule, any scaling transformation, and the script or explicit steps that produced the display.

Suppose the original figure used a logarithmic transformation with a defined treatment of zeros, but the script is missing. A later researcher can reproduce the raw counts while obtaining a visually different heatmap. This difference may be presentational rather than biological, yet it prevents exact reconstruction and can change how patterns appear to readers.

Archive the transformation and retain raw values alongside the rendered figure. Record whether missing table entries were treated as unavailable or replaced with zero. Preserve the identifier mapping used to label the selected families. These small details are often more important for reconstruction than a long narrative of exploratory plotting choices.

Now imagine an updated annotation changes three family counts. Generate a new figure from a new recorded input state rather than overwriting the original table. Compare the changed loci and document whether the biological interpretation is stable. The original figure remains reproducible, while the updated analysis becomes a transparent extension.

A successful reconstruction exercise should begin in a clean directory and use only the archived materials. Any missing file, implicit path, or undocumented manual edit becomes a concrete issue to resolve. Completing this exercise before reporting the result gives collaborators a practical demonstration that the evidence chain is usable.

Further analysis

A project manifest can act as the index of the research record without becoming an additional source of truth that drifts from the files. Generate checksums from the archived inputs and verify them before reruns. If a file changes, record a new manifest rather than quietly overwriting the original state.

Choose names that distinguish experiments, not just dates. A run label can encode the intended species set or annotation release while a separate metadata record stores the full details. Human readable naming helps navigation, but immutable identifiers and checksums provide the stronger guarantee of file identity.

For collaborative work, define who can alter prepared inputs and when an analysis becomes frozen for reporting. Shared folders can otherwise accumulate silent replacements. A simple review boundary before production runs prevents a well documented command from being paired with an undocumented change to the underlying sequence collection.

Finally, test the research record by reconstructing one figure from the archived inputs and scripts in a clean working directory. This exercise often reveals missing mappings, implicit file paths, or undocumented filters. Correcting those gaps before publication is more effective than discovering them when another group attempts reproduction.

The research record should also preserve negative decisions that materially shaped the reported analysis. If a candidate family was excluded because of ambiguous locus mapping, record that reason. Without it, another researcher may reasonably include the family and obtain a different result while following the visible method description.

Manual inspection is compatible with reproducible work when its criteria and outcomes are documented. Save the inspected identifiers, the evidence considered, the decision, and the date. A clear review table is preferable to an unexplained statement that suspicious sequences were removed after visual examination.

For a sensitivity analysis, retain the relation between the primary result and each alternative. Specify which input or method changed and which conclusion was being tested. This prevents a collection of output folders from becoming an ambiguous menu of results with no defined analytical role.

Version control can preserve scripts and configuration, while an appropriate data archive preserves sequence inputs and larger outputs. Neither alone guarantees completeness. The record needs a manifest connecting the code state to the data state so that the correct components can be paired during reconstruction.

Before final reporting, review whether every stated number can be traced to a recorded calculation. Counts copied manually into prose can drift after a rerun. Regenerating summaries from the frozen result reduces that risk and makes a late correction easier to apply consistently.

An explicit evidence chain ultimately helps both reproduction and criticism. Others can identify which assumptions they accept, which they would test differently, and how those alternatives affect the reported evolutionary interpretation.

FAQs

Is a software version number enough to reproduce a run?

No. The input sequences, preparation rules, dependencies, configuration, and downstream transformations also matter. A version number is necessary context, but it cannot reconstruct missing annotations or explain undocumented manual edits made after the main analysis finished.

Must every exploratory result be retained permanently?

Not necessarily, but the evidence required to reconstruct reported results and evaluate central decisions should be preserved. Define a retention policy that distinguishes replaceable temporary files from essential inputs, logs, mappings, and outputs. Document any deletion that limits future restart or inspection.

How should results from updated annotations be compared?

Treat the update as a new analysis with an explicit input boundary. Use stable locus mappings where available, inspect changed sequences and membership, and avoid relying only on family identifiers. Separate changes caused by annotation from those caused by software or altered study design.

Conclusion

Reproducible comparative genomics preserves the decisions and evidence that connect sequences to claims. Frozen inputs, identifiable software, traceable transformations, and family focused dossiers make results inspectable and differences interpretable. Reproduction establishes what was done; robustness checks and biological validation establish how much confidence the resulting evolutionary explanation deserves.

Preserving evidence also makes collaboration more efficient. A colleague can inspect a disputed family, rerun a defined calculation, or evaluate an alternative without first reconstructing the project from memory. The practical benefit is a research process in which results can be questioned, reproduced, and improved through a shared, traceable record rather than unverified informal recollection.