| Data validation functionsFunctions to perform data validation and QA/QC checks, and report results as successes, warnings, or failures. | |
|---|---|
| Run all validation checks | |
| Check annotation keys | |
| Check annotation values | |
| Valid annotation keys | |
| Valid annotation values | |
| Check that a given set of keys are all present in an annotations dictionary | |
| Check a set of keys and their values | |
| Check coercibility | |
| 
 | Check column names against their corresponding template | 
| Check for complete columns | |
| Check for empty columns | |
| Check that files are present in manifest | |
| 
 | Check ids | 
| Check uniqueness of individual and specimen IDs | |
| Check data against a JSON Schema | |
| Check a data frame of data against a JSON Schema | |
| Check synID of parent in manifest | |
| Check for ages over 90 | |
| Check for duplicated file paths | |
| Check data against existing IDs | |
| Validation helpersFunctions used by the data validation functions above. | |
| Get Synapse annotations | |
| Get Synapse table | |
| Get metadata template keys | |
| Get Synapse validation schema | |
| Get excel or csv template | |
| Get JSON schema template | |
| Convert data frame to JSON | |
| Get metadataType indices | |
| Shiny app functionsFunctions to generate and run the dccvalidator Shiny application. Also includes modules that make up the app. | |
| Run the Shiny application | |
| App server | |
| App UI | |
| Main dccvalidator UI | |
| Synapse Oauth Module | |
| Show busy indicator | |
| UI function for results boxes module | |
| UI for the file summary module | |
| Create a modal dialog if user is not in required team(s) or certified | |
| Gather all template ids | |
| App-supporting functionsFunctions that the dccvalidator app uses to ensure the user is able to use the application and to provide instructions. | |
| Check if user is certified | |
| Check team membership | |
| Sets up global OAuth variables | |
| Do the OAuth process | |
| Has authorization code | |
| Attempt to log into Synapse | |
| Check if logged in as user | |
| Wrapper for modals | |
| Constructors for validation resultsThese functions generate custom conditions for reporting check failures, warnings, and successes. | |
| Create a condition of the given type | |
| Create custom conditions for reporting | |
| Updating metadata template dictionariesThese functions validate annotations data structure, generate new dictionary sheets from the annotations, and upload new versions of the templates. | |
| Add Dictionary Sheets | |
| Get Template synIDs | |
| Update Template Dictionaries | |
| Verify Dictionary Structure | |
| Internal developmentThese functions help with development needs, such as changing which Synapse endpoints to use. | |
| Set Synapse Staging Endpoints | |