This repository is for use by the MIDAS ISG as is not meant for public use. The original project is located here:https://github.com/biocaddie
The python code included in the repository validates the DATS JSON schemas and the DATS JSON instances against the schemas. To execute the code, it is recommended to use a virtual environment, following these steps:
- If not already installed in your system, first install the virtual environment via
pip
:pip install virtualenv
- Create a virtual environment:
virtualenv venv
- Then, activate the virtual environment:
source venv/bin/activate
- Install the requirements:
pip install -r requirements.txt
- Drop the json file that you want to validate in the json-schemas directory.
- Edit line 22 in tests/test_dats_model.py and replace with the name of the file in the json-instances directory (do not include the name of the directory, only include the filename).
- Finally, you can inspect and run the tests to validate the DATS schemas and JSON instances against the schemas.
python setup.py test