Skip to content

bsmn/grantdatavalidator

Repository files navigation

grantdatavalidator

The goal of this pacakge is to validate grant data that has passed NDA validation for use in the BSMN. The submission description and instructions for creating a valid submission are available in Synapse here (requires membership in the BSMN consortium to view).

Installation

You can install grantdatavalidator with devtools:

devtools::install_github("bsmn/grantdatavalidator")

Example

This is a basic example which shows you how to validate manifests uploaded to Synapse.

It assumes that you have uploaded the three required manifest files and annotated them with the appropriate nda_short_name (one of genomics_subject02, genomics_sample03, or nichd_btb02) and grant.

library(grantdatavalidator)
library(synapser)
synLogin()

# A table that aggregates all submitted manifests - don't change this
manifestsviewid <- 'syn12031228'

# the Synapse folder ID of where the three manifests are
parentid <- 'syn12345678'

res <- validate(manifestsviewid, parentid)

RStudio

If you install this package and use RStudio, there is an RMarkdown template available titled 'BSMN Grant Data Validation Report'.