Skip to end of banner
Go to start of banner

Annotation Schemas

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

The DCC has derived standards for how content is annotated in Synapse and this page describes the management of the keys, definitions, and references used to annotate files. See Synapse Annotations for general information, and search for community-approved terms in the Table of Annotations.

Schemas

The synapseAnnotations Github repo includes schemas for metadata terms. Each term is stored in a JSON mini-schema and the terms are organized by modules in each terms/<module>/ folder. There are subfolders for each module, and the term names include the module.

Edit JSON Schema

  • Copy needed template from: synapseAnnotations/term-templates

  • Paste into new file

    • Edit $id line with <MODULENAME> and <KEY>

    • Increment version with each update

    • Add Term, Definition, and a source for Definition (https://www.ebi.ac.uk/ols/index )

    • Commit changes to a new branch

  • Schema validation checks will automatically start to run in the background.

  • Address any errors until validation passes

  • Open a Pull Request and select DCC curators as reviewers

Update Schemas

Generate Template

  • Github sysbioDCCjsonschemas repo

  • SysBio Metadata Templates: https://github.com/Sage-Bionetworks/sysbioDCCjsonschemas/tree/master/schema_metadata_templates

  • Edit terms in XLS template or construct a JSON file to do this programmatically

  • Ensure latest versions of JSON schemas have been registered. How to

  • To create a Synapse table of all terms in metadata templates:

    • create_Syn_table_from_Syn_schemas.py

  • To generate a Metadata Template:

    • create_template_from_Syn_schema.py

  • cd /Users/ryaxley/Documents/GitHub/sysbioDCCjsonschemas/code/python/.
    python3 create_template_from_Syn_schema.py \
            sysbio.metadataTemplates-ad.manifest \ 
            manifest_test.xlsx excel

  • No labels