Article view

dtrackr: An R package for tracking the provenance of data

By Robert Challen

Article information

Publication
Published 13 December 2022
Institutions at publication
University of Exeter; University of Bristol
7 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

An accurate statement of the provenance of data is essential in biomedical research. Powerful data manipulation tools available in the tidyverse R package ecosystem (Wickham et al., 2019) provide the infrastructure to assemble, clean and filter data prior to statistical analysis. Manual documentation of the steps taken in the data pipeline and the provenance of data is a cumbersome and error prone task which may restrict reproducibility.dtrackr is a wrapper around a subset of the standard tidyverse data manipulation tools that allows automatic tracking of the processing steps applied to a data set, prior to statistical analysis. It allows early detection and reporting of data quality problems, and automatically documents a pipeline of data transformations as a flowchart in a format suitable for scientific publication, including, but not limited to CONSORT diagrams (Schulz et al., 2010).dtrackr is first and foremost a utility to accelerate and improve research by facilitating documentation, supporting extraction of knowledge from data sets, and the execution of research by helping identify data quality issues. The general capability however fits into a broader context of other provenance or data pipeline research. This includes initiatives such as C2Metadata (Alter et al., 2021), which focus on a language independent representation of a data pipeline, and R packages such as targets (Landau, 2021) which focus on documenting pipeline code, and managing the execution of a pipeline, or RDataTracker which focusses on tracking the execution of a arbitrary R script (Lerner et al., 2018).dtrackr takes a more data oriented approach, which could be complementary, in which we remain agnostic to the detail of a data pipeline script or nature of its execution, but capture a subset of the transformations applied to data alongside the data itself, thereby documenting the data state as it is being manipulated. This is achieved by overriding the execution of dplyr pipeline functions and results in a retrospective record of provenance (Pimentel et al., 2019).dtrackr also has the ability to insert secondary analysis as annotations into the pipeline, and allows control over what information is collected, ultimately with a view to producing simple human readable output. The approach of dtrackr is analogous to a git commit history for dataframes, and there is potential synergy with emerging versioned databases such as dolt (Dolt Is Git for Data!, 2019/2022; Ross, 2022).

Citations per year

Citations per year
YearCitations
2022 0
2023 0
2024 2
2025 2
2026 3

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 7 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United Kingdom1