Welcome! The Unified Molgenis Data Model —or UMDM— is a plug and play Molgenis EMX model for collating metadata on patients and samples, analyses that were performed on the samples, and files that were generated. The model comprises several modules built on the FAIR data principles and the FAIR Genomes Semantic Model. The module system enables the model to be adapted for research or care contexts.
Download the latest version of the model or view the model schema to see what's in the model.
Here is what is included.
For more information on Molgenis, visit molgenis.org.
This repository includes scripts for building the model and collating lookup datasets, but you only need the model and a few other things to get started with building your own database. See the steps below.
To update the UMDM, follow the steps below.
Make all of the changes that are requested. For new entities (i.e., tables), open the YAML file and scroll to the entities
section and enter the following information.
entities:
...
- name: myNewTable
label: My New Table
description: some description about my new table will go here
tags: https://url.to.some/ontology/code/that/describes/my_table
attributes:
...
If you are adding a new lookup, use one of the predefined attribute templates.
attributeTemplateDefault
: the recommended attribute template where the column value
is the primary key. The value, which is a label, will be displayed when referenced in another tableattributeTemplateCode
: an alternative template where the column code
is the primary key. This is useful for lookups where the code should be displayed instead of the labelTo add new attributes, locate the appropriate table in the yaml script and create a new block under attributes
.
entities:
...
- name: myTableThatIWantToEdit
label: My table that I want to edit
description: The table that I want to edit
tags: https://url.to.some/ontology/code/that/describes/my_table
attributes:
...
- name: myNewAttribute
description: a description about my new attribute
dataType: ...
# refEntity: ... # if type is a ref
tags: https://url.to.some/ontology/code/that/describes/my_attribute
Test the model once all changes have been made.
yarn test
This test runs some basic error checking to make sure the model contains valid EMX markup. At the end of test, a print summary of the errors will be provided (if errors were detected). Scroll through the report to see find the errors.
When all of the changes have been made, build the model. Make sure the python library yamlemxconvert is installed and run the following yarn script.
yarn emx:build
Make sure all tag errors have been resolved (Unable to process tag: None
).
When built, deploy to the server. NOTE: make sure you export all data before importing the new model.
yarn m:config
yarn m:predeploy
yarn m:deploy
yarn m:postdeploy
yarn m:demo # if setting up a demo database
If you have added a new lookup table, you will need to update the setup.sh
script.
yarn m:refresh-setup