Runs all validation checks. Requires an environment configuration (config) to be set. The config is expected to have templates for each metadataType, where individual and biospecimen depend on species and assay depends on the assay type. Additionally, there should be complete_columns for each metadataType.
check_all(data, annotations, syn, study = NA, samples_table = NA)
data | A tibble or dataframe with the columns:
name, metadataType, species, assay, file_data, template (optional).
The file_data column should be a list column containing
a dataframe with the file data or |
---|---|
annotations | A data frame of annotation definitions. Must contain at
least three columns: |
syn | Synapse client object |
study | A string containing the name of the study (default |
samples_table | Synapse synID for a table containing the columns:
specimenID, individualID, assay, study (default |
List of conditions
if (FALSE) { syn <- synapse$Synapse() syn$login() annots <- get_synapse_annotations(syn = syn) data <- tibble::tibble( metadataType = c( "manifest", "individual", "biospecimen", "assay" ), name = c("a", NA, NA, "c"), species = "human", assay = "rnaSeq", file_data = c( list(data.frame(a = c(TRUE, FALSE), b = c(1, 3))), list(NULL), list(NULL), list(data.frame(a = c(TRUE, FALSE), b = c(1, 3))) ) ) res <- check_all(data, annots, syn) }