picard is a workflow package that helps initialize and facilitate an OHDSI project by automating start-up tasks and setting basic organization. It draws inspiration from usethis
but designed specifically for OHDSI projects.
You can install the development version of picard from GitHub with:
# install.packages("devtools")
devtools::install_github("OdyOSG/picard")
picard
is used to initialize an OHDSI Study project. This initiates a specific directory structure:
This consistent structure is intended to enforce better organization and a recognizable setup for study nodes to follow.
To start an OHDSI study project using picard
one can follow the example code below:
library(picard)
newOhdsiStudy(projectName = "demo", author = "John Smith", type = "Characterization")
For those familiar with usethis
, an R developer can quickly create files that are needed in the development pipeline for a package. Using this same idea in the context of OHDSI, picard
automates files that are commonly used in the development of an ohdsi study. Once an OHDSI study has started, the user can add files that are commonly used in an OHDSI study such as:
picard
has also introduced new files that may be helpful to a user developing an OHDSI study:
New file templates will be added over time.
Another use-case for picard
is providing tools to a study node to help run a network study. For example, if a study node wants to participate in a study they can download the repo to their local computer using the following command:
picard::downloadStudy(org = "ohdsi-studies", repo = "AntiVegfKidneyFailure",
savePath = "<path_to_study>")
This function will download the repo contents at place them in a folder accessible via R. The study node can now follow the instructions for running the study with the local copy.
Additionally, picard
had created automated messages that can be used to help request for participation to the study host. Eventually, we will add support to post this message directly to the OHDSI Forums.
From experience, cohorts are difficult to keep organized. picard
attempts to organize cohort json in the cohortsToCreate folder making it easier to communicate which json was used in the analysis and target files to build cohorts via CohortGenerator
. Examples of these functions will be provided in time.