November 30, 2026

Your Lab Has Three Final Datasets. How Do You Identify the One Behind a Figure?

The most direct answer: work backward from the figure to the file that generated it before you touch any analysis code.

Written byWisPaper TeamAI Research Workflow Team
Editorial illustration for Your Lab Has Three Final Datasets. How Do You Identify the One Behind a Figure?

The most direct answer: work backward from the figure to the file that generated it before you touch any analysis code. Look first at provenance clues inside the figure and its accompanying materials, then match the figure's values and structure against the three datasets, and finally record the file name, version, and preparation steps in the lab's shared documentation. If the three datasets differ only in minor cleaning steps, a figure alone is often not enough; you may need to retrieve the script, log, or data dictionary that produced it.

This article walks through one concrete worked example: a lab member has left, the final report shows a survival-style summary plot, and three similarly named CSV files sit in the project folder. We will follow one repair from the visible artifact back to the correct file, show where the supplied sources add discipline to that process, and end with the handoff step that prevents the same failure next time.

Why the Figure Alone Can Fool You

The failure usually starts quietly. Someone exports a figure for a slide, a manuscript draft, or a progress report. Weeks later, the underlying script has been edited, the raw inputs renamed, or the plotting code copied into a new notebook. The figure now floats free of its source. When a reviewer asks which dataset produced it, the honest answer is no longer obvious.

The FAIR Guiding Principles make this problem explicit: data that will be reused needs persistent identifiers, metadata, provenance, access conditions, and documentation. A figure pasted into a presentation has almost none of that. It is a rendered output, not a research record. Identifying the source dataset therefore means recovering enough provenance to reconnect the figure to one file and one processing step.

The UK Data Service points in the same direction for research handoff: meaningful file names, documented versions, and reusable formats make it possible for a colleague to understand what happened later. When those practices were skipped, the repair is archaeological rather than routine.

Start with What the Figure Already Tells You

Begin with the artifact itself. Note the axis labels, the sample size shown anywhere in the caption or panel, the exact value range, the variable names, and any legend entries. Copy this into a short note. Consider a hypothetical figure titled "Event-free proportion by exposure group," with a y-axis from 0.0 to 1.0 and a legend showing two group labels.

Next, inspect the file metadata around the figure. Does the figure filename hint at a script or dataset? Is there a timestamp near the export? Does the presentation or document contain speaker notes, a data note, or an appendix table with counts? Any of these can act as a bridge. The goal is to find a value you can test against the candidate datasets, not merely a label that sounds plausible.

Where a WisPaper library is already part of the lab's workflow, you can organize the papers and supporting documents that define the analysis so the version history around that figure is easier to revisit. Use My Library to keep the manuscript draft, protocol, and related references together while the investigation is underway.

Build a Fingerprint from the Figure

A figure's traceable parts are its columns of computation. For a summary plot, identify the groups, the time points or bins, the denominators, and the outcome values. If the figure is a table-like display, write out one complete row. For a line plot, pick two or three points and read their approximate coordinates.

A hypothetical fingerprint might be:

  • Exposure groups: "standard" and "extended"
  • Time points: 1, 3, 6, 12 months
  • Group denominators: 84 and 91 at baseline
  • Month 12 values: 0.71 and 0.63

This fingerprint is the test. Each candidate dataset either can or cannot reproduce it after the documented preparation steps. If you cannot read enough precision from the figure, you have learned something useful: the figure is too low-resolution to serve as a research record, and the source must be recovered another way.

Lay the Three Datasets Side by Side

The reliable method is not to guess by filename. It is to compare each candidate's structure against the fingerprint. Open each dataset in a way that will not unexpectedly modify it, and record its variable names, row count, and any obvious version marker in the first few lines.

Apply simple checks:

  1. Does the candidate contain the variables named or implied by the figure?
  2. Do its group labels match the legend exactly or only approximately?
  3. Does its baseline denominator match the figure after intended exclusions?
  4. Does it produce the same rounded values at the selected points?

A mismatch is often as informative as a match. One candidate may contain an extra exclusion flag, another may have month labels stored as text, and the third may be the post-imputation version. The differences themselves reveal which preparation path ends at the figure.

Reconstruct the Preparation Path, Not Just the File

The correcting step is to recreate the small chain from raw data to plotted output. Identify the minimal set of transformations: filtering, renaming, recoding, joining, or aggregating. Run only those steps against a copy of the candidate file, then overlay the resulting values on the figure's fingerprint.

A lab's choice about how to document this depends on local policy. The supplied sources advise what good documentation contains, but they do not dictate a specific folder naming convention, programming language, or sign-off process for your institution. NIH's data management and sharing guidance, for example, covers provenance, supporting documentation, preservation, and conditions for appropriate access as planning considerations. Whether your lab requires a run log in a particular system is a decision your research group must make.

When provenance is thin, the method literature can also help. Reading how similar studies describe dataset construction in published methods sections can supply a checklist of what should be traceable. If you need to find those methodological papers, use WisPaper search to locate scholarly literature on reproducible data preparation in your field.

Decide with a Reproducible Check

At the decision point, you need a small, rerunnable comparison. Write a few lines that load one candidate, apply the preparation steps, generate the summary values, and compare them to the fingerprint. The winning dataset is the one whose path reproduces not just one point but the full set of observed values within rounding tolerance.

Keep that comparison script alongside the figure. It is the evidence for your conclusion. State the result in plain words in the project documentation: the figure was generated from a specific file, through a specific preparation sequence, verified by a specific comparison on a specific date. The UK Data Service's emphasis on documented versions and reusable formats supports exactly this kind of handoff record. Without it, the next person will repeat the same investigation.

What If No Dataset Reproduces the Figure?

Sometimes the repair fails. None of the three files matches after any plausible preparation. That is a meaningful result. It means the figure may have been produced from an earlier file that was overwritten, from an ad hoc subset created in a notebook, or through an undocumented join. In that case, widen the search to archived versions, exported snapshots, or email attachments, and look for timestamps in the figure that point to the relevant working session.

Do not relabel a nonmatching dataset as "close enough." A figure grounded in an unidentifiable source should be regenerated from the best documented candidate, not assigned to a plausible file after the fact. The repair then becomes a regeneration task with a new, recorded provenance chain.

Lock the Finding into the Handoff Record

Once the source is identified, record the file name, location, version, preparation steps, and the check you ran. Use a data dictionary that explains each variable's meaning. Attach the comparison script. Write the access conditions under which the dataset may be shared, drawing on the planning side of the NIH data management and sharing guidance. The FAIR principles' call for metadata, provenance, and access conditions becomes concrete here: the record you write is what makes the file findable and reusable later.

This is the moment to avoid a narrow fix. If the lab had three similarly named final datasets, the deeper problem is a naming and versioning gap. Rename files meaningfully, separate raw from processed, and keep a short manifest. The specific choices remain the lab's own policy, but the supplied sources consistently point to meaningful names, documented versions, and reusable formats as the minimum.

FAQs

No. A single rounded value can match more than one file, especially when the datasets differ only by small cleaning decisions. Use a fingerprint with several independent points, group labels, denominators, and variable names, and reproduce the preparation path rather than relying on one visual similarity.