Skip to main content
VierApparatus
On this page
  1. References

Level 11 · Advanced Research Methodology

Organising Raw and Derived Data

The organisation of raw, processed and derived data within a project so that the origin of every value can be traced, covering the storage of raw data in a read-only location with a record of their origin and checksum, the use of a consistent directory structure that separates raw, processed and analysis-ready data, the naming of files so that their content, date and version are clear, the recording of the transformations that produce each derived dataset in scripts rather than manual edits, the avoidance of duplicated copies that diverge over time, and the periodic verification that derived d

2 min read · Updated

Listen to this moduleComing soon

Learning objectives

  • Organise a project so that raw data are stored unchanged and every derived dataset is regenerated by a recorded procedure.
  • Verify the integrity of stored files with checksums and state how a changed file would be detected.

Raw data are the record of what was measured, and their integrity is the basis of every later result. They should be stored in a location that is protected from accidental change, with a record of their origin, such as the instrument, the date and the person who collected them. A checksum, which is a short code computed from the file's contents, allows any later alteration to be detected. Sandve et al. (2013) recommended that raw data be treated as immutable, since a single silent edit can alter every result that depends on it.

A consistent directory structure separates raw data from processed and analysis-ready data. The raw directory is not written to by any analysis, and the processed directory is populated only by the pipeline. This separation makes the flow of data visible and prevents a derived file from being mistaken for an original. Wilkinson et al. (2016) described how such clarity supports findability, and it also helps a new team member understand the project quickly.

File names should state the content, the date of collection and the version where it matters. A name that encodes these facts allows a reader to identify the right file without opening it, and it avoids the confusion of files named final or revised. Peng (2011) argued that the path from the data to the result must be explicit, and consistent naming is the simplest way to show that path in the file system.

Derived datasets should be produced by scripts that read the raw data and apply recorded transformations. Manual edits to a derived file cannot be traced, and copies made by hand diverge over time as one is changed and the other is not. The project should check periodically that every derived dataset can be regenerated from the raw data, since a dataset that cannot be regenerated is a dataset whose origin is unknown.

References

  1. Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten Simple Rules for Reproducible Computational Research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285
  2. Wilkinson, M. D., Dumontier, M., Aalbersberg, I. J., Appleton, G., Axton, M., Baak, A., Blomberg, N., Boiten, J.-W., Bourne, P. E., Bouwman, J., Brookes, A. J., Clark, T., . . . Mons, B. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data, 3, 160018. https://doi.org/10.1038/sdata.2016.18
  3. Peng, R. D. (2011). Reproducible Research in Computational Science. Science, 334(6060), 1226-1227. https://doi.org/10.1126/science.1213847

Callouts marked Commentary or Speculation in the lesson separate interpretation and open questions from established findings.