Skip to content

Latest commit

 

History

History

diseaseOntology

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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