Git Product home page Git Product logo

dsmb's Introduction

dsmb

Reproducible Clinical Trial Data and Safety Monitoring Board (DSMB) Reporting with R and tangram

This project is a best practices template for constructing a complex reporting task, in this case a DSMB report. The data pipeline is carefully constructed to be restartable from any point, and it creates a clear separation of concerns. Spreading the data pipeline code throughout a report is bad practice and generally results in copy and paste errors and tables that don't agree. By utilizing this data pipeline strategy and making a small investment in structuring your project, one can save a lot of frustration and effort in the bigger scope of the project.

Project Directories

  • data/YYYYMMDD-HHMM contains all data from a given date (raw and transformed).
  • pipeline contains data pipeline processing code. This pipeline is restartable from any script in the chain. It continues execution till the end of the chain by design.

Project files

  • dsmb-open-example.Rmd is the example Rmarkdown for an open report.
  • dsmb-closed-example.Rmd is the example Rmarkdown for a closed report.
  • dsmb-report.template is the main LaTeX shell for the report.
  • pipeline/01-extract.R Extract raw data script.
  • pipeline/02-save-raw.R Save the raw data asis for reproducibility.
  • pipeline/03-load-raw.R Load the raw data into memory.
  • pipeline/04-patch.R Apply any necessary raw data patches.
  • pipeline/05-transform.R Transform the raw data into something easily used in reporting.
  • pipeline/06-save.R Save the transformed data in a useful format.
  • pipeline/07-load.R Load the transformed data into memory. This is the only script required to compile a report if the pipeline is complete.
  • pipeline/current-timestamp.txt The timestamp of which directory to use in the data directory for working with data. This is overwritten by 02-save-raw.R when a new extraction is done.

dsmb's People

Contributors

spgarbet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

alopezcasanel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.