-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update: new classes: duplicated some UMLS: classes as Medgen:, if t…
…hey started with 'C' and a number. - Update: prefixes: In addition to new classes above, renamed UMLS prefix with Medgen for all other classes (which happen to all start with 'CN:' - Update: prefixes: Renamed prior MEDGEN: xref prefixes to Medgen_UID: These IDs don't start with C (CUI; Concept Unique Identifier) or CN (Common Name?). These are internal Medgen UIDs that are duplicative and not for clinical or analytical use. - Rename: bin/ -> src/ - Add: output/: For both release outputs and non-release. - Rename: release/ -> output/release/ - Add: mondo_mapping_status.py: For generating artefacts related to the reporting and management of mappings between Mondo and Medgen. - Add: Python dependency requirements files. - Add: run.sh: For running commands in ODK - Add: config/medgen.sssom-metadata.yml
- Loading branch information
Showing
10 changed files
with
318 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# Standard | ||
dev/ | ||
data/cache/ | ||
output/ | ||
__pycache__/ | ||
.idea/ | ||
.DS_Store | ||
.env | ||
|
||
# Specialized | ||
/*.json | ||
/*.obo | ||
/*.owl | ||
/*.tmp | ||
/*.tsv | ||
/fetch | ||
/ftp.ncbi.nlm.nih.gov/ | ||
/release/ | ||
*ignore/ | ||
.ipynb_checkpoints/ | ||
_archive/ | ||
release/ | ||
tmp/ | ||
.ipynb_checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
creator_id: 0000-0002-2906-7319 | ||
curie_map: | ||
GTR: http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/GTR/ | ||
HP: http://purl.obolibrary.org/obo/HP_ | ||
MESH: http://identifiers.org/mesh/ | ||
MONDO: http://purl.obolibrary.org/obo/MONDO_ | ||
Medgen: http://purl.obolibrary.org/obo/Medgen_ | ||
Medgen_UID: http://purl.obolibrary.org/obo/Medgen_UID_ | ||
NCIT: http://purl.obolibrary.org/obo/NCIT_ | ||
OMIM: https://omim.org/entry/ | ||
Orphanet: http://www.orpha.net/ORDO/Orphanet_ | ||
SCTID: http://identifiers.org/snomedct/ | ||
UMLS: http://purl.obolibrary.org/obo/UMLS_ | ||
oboInOwl: http://www.geneontology.org/formats/oboInOwl# | ||
owl: http://www.w3.org/2002/07/owl# | ||
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# | ||
rdfs: http://www.w3.org/2000/01/rdf-schema# | ||
semapv: https://w3id.org/semapv/ | ||
skos: http://www.w3.org/2004/02/skos/core# | ||
sssom: https://w3id.org/sssom/ | ||
license: http://w3id.org/sssom/license/unspecified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pandas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
distlib==0.3.6 | ||
filelock==3.9.0 | ||
numpy==1.25.1 | ||
pandas==2.0.3 | ||
pbr==5.11.1 | ||
platformdirs==3.1.0 | ||
python-dateutil==2.8.2 | ||
pytz==2023.3 | ||
six==1.16.0 | ||
stevedore==5.0.0 | ||
tzdata==2023.3 | ||
virtualenv==20.20.0 | ||
virtualenv-clone==0.5.7 | ||
virtualenvwrapper==4.8.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/sh | ||
# Wrapper script for docker. | ||
# | ||
# This is used primarily for wrapping the GNU Make workflow. | ||
# Instead of typing "make TARGET", type "./run.sh make TARGET". | ||
# This will run the make workflow within a docker container. | ||
# | ||
# The assumption is that you are working in the src/ontology folder; | ||
# we therefore map the whole repo (../..) to a docker volume. | ||
# | ||
# To use singularity instead of docker, please issue | ||
# export USE_SINGULARITY=<any-value> | ||
# before running this script. | ||
# | ||
# See README-editors.md for more details. | ||
|
||
if [ -f run.sh.conf ]; then | ||
. ./run.sh.conf | ||
fi | ||
|
||
# Look for a GitHub token | ||
if [ -n "$GH_TOKEN" ]; then | ||
: | ||
elif [ -f ../../.github/token.txt ]; then | ||
GH_TOKEN=$(cat ../../.github/token.txt) | ||
elif [ -f $XDG_CONFIG_HOME/ontology-development-kit/github/token ]; then | ||
GH_TOKEN=$(cat $XDG_CONFIG_HOME/ontology-development-kit/github/token) | ||
elif [ -f "$HOME/Library/Application Support/ontology-development-kit/github/token" ]; then | ||
GH_TOKEN=$(cat "$HOME/Library/Application Support/ontology-development-kit/github/token") | ||
fi | ||
|
||
ODK_IMAGE=${ODK_IMAGE:-odkfull} | ||
TAG_IN_IMAGE=$(echo $ODK_IMAGE | awk -F':' '{ print $2 }') | ||
if [ -n "$TAG_IN_IMAGE" ]; then | ||
# Override ODK_TAG env var if IMAGE already includes a tag | ||
ODK_TAG=$TAG_IN_IMAGE | ||
ODK_IMAGE=$(echo $ODK_IMAGE | awk -F':' '{ print $1 }') | ||
fi | ||
ODK_TAG=${ODK_TAG:-latest} | ||
ODK_JAVA_OPTS=${ODK_JAVA_OPTS:--Xmx20G} | ||
ODK_DEBUG=${ODK_DEBUG:-no} | ||
|
||
# Convert OWLAPI_* environment variables to the OWLAPI as Java options | ||
# See http://owlcs.github.io/owlapi/apidocs_4/org/semanticweb/owlapi/model/parameters/ConfigurationOptions.html | ||
# for a list of allowed options | ||
OWLAPI_OPTIONS_NAMESPACE=org.semanticweb.owlapi.model.parameters.ConfigurationOptions | ||
for owlapi_var in $(env | sed -n s/^OWLAPI_//p) ; do | ||
ODK_JAVA_OPTS="$ODK_JAVA_OPTS -D$OWLAPI_OPTIONS_NAMESPACE.${owlapi_var%=*}=${owlapi_var#*=}" | ||
done | ||
|
||
TIMECMD= | ||
if [ x$ODK_DEBUG = xyes ]; then | ||
# If you wish to change the format string, take care of using | ||
# non-breaking spaces (U+00A0) instead of normal spaces, to | ||
# prevent the shell from tokenizing the format string. | ||
echo "Running ${IMAGE} with ${ODK_JAVA_OPTS} of memory for ROBOT and Java-based pipeline steps." | ||
TIMECMD="/usr/bin/time -f ### DEBUG STATS ###\nElapsed time: %E\nPeak memory: %M kb" | ||
fi | ||
|
||
VOLUME_BIND=$PWD:/work | ||
WORK_DIR=/work | ||
|
||
if [ -n "$ODK_BINDS" ]; then | ||
VOLUME_BIND="$VOLUME_BIND,$ODK_BINDS" | ||
fi | ||
|
||
if [ -n "$USE_SINGULARITY" ]; then | ||
|
||
singularity exec --cleanenv $ODK_SINGULARITY_OPTIONS \ | ||
--env "ROBOT_JAVA_ARGS=$ODK_JAVA_OPTS,JAVA_OPTS=$ODK_JAVA_OPTS" \ | ||
--bind $VOLUME_BIND \ | ||
-W $WORK_DIR \ | ||
docker://obolibrary/$ODK_IMAGE:$ODK_TAG $TIMECMD "$@" | ||
else | ||
BIND_OPTIONS="-v $(echo $VOLUME_BIND | sed 's/,/ -v /')" | ||
docker run $ODK_DOCKER_OPTIONS $BIND_OPTIONS -w $WORK_DIR \ | ||
-e ROBOT_JAVA_ARGS="$ODK_JAVA_OPTS" -e JAVA_OPTS="$ODK_JAVA_OPTS" \ | ||
--rm -ti obolibrary/$ODK_IMAGE:$ODK_TAG $TIMECMD "$@" | ||
fi | ||
|
||
case "$@" in | ||
*update_repo*|*release*) | ||
echo "Please remember to update your ODK image from time to time: https://oboacademy.github.io/obook/howto/odk-update/." | ||
;; | ||
esac |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.