Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 640 Bytes

File metadata and controls

19 lines (13 loc) · 640 Bytes

Disease Ontology

Load data from the disease ontology. First download the latest version of the JSON formatted release

REPO=https://github.com/DiseaseOntology/HumanDiseaseOntology.git
LATEST=$(git ls-remote $REPO --tags v\* | cut -f 2 | sed 's/refs\/tags\///' | grep '\bv[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\b' | sort -d | tail -n 1)
echo "latest version: $LATEST"

wget https://github.com/DiseaseOntology/HumanDiseaseOntology/raw/$LATEST/src/ontology/doid.json

mv doid.json doid_${LATEST}.json

Then load this through the general loadFile script

node bin/load.js file diseaseOntology doid_${LATEST}.json