Skip to content

Commit

Permalink
Filter out dangling gene IRIs.
Browse files Browse the repository at this point in the history
When compiling the merged import module, make sure to filter out IRIs
from <http://www,ncbi.nlm.nih.gov/gene/> and
<http://birdgenenames.org/>, which otherwise end up as dangling classes
under owl:Thing.
  • Loading branch information
gouttegd committed Oct 15, 2024
1 parent 3a11216 commit bab8c69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= 943829f9eb8e1b8d46bf5f3f878364bb18f10e0d9eee11d7c28bfb3dfba894c7
CONFIG_HASH= 0a0a5c4407603e3386ecd7b01d03996f6e25afe375d62acd1943b88594d42c2e


# ----------------------------------------
Expand Down Expand Up @@ -391,7 +391,7 @@ $(IMPORTDIR)/merged_terms_combined.txt: $(ALL_TERMS_COMBINED)

$(IMPORTDIR)/merged_import.owl: $(MIRRORDIR)/merged.owl $(IMPORTDIR)/merged_terms_combined.txt
if [ $(IMP) = true ]; then $(ROBOT) merge -i $< \
remove --select "<http://www.informatics.jax.org/marker/MGI:*>" remove --select "<http://purl.obolibrary.org/obo/OBA_*>" remove --select "<http://purl.obolibrary.org/obo/ENVO_*>" remove --select "<http://purl.obolibrary.org/obo/OBI_*>" remove --select "<http://purl.obolibrary.org/obo/GOCHE_*>" remove --select "<http://www.genenames.org/cgi-bin/gene_symbol_report*>" \
remove --select "<http://www.informatics.jax.org/marker/MGI:*>" remove --select "<http://purl.obolibrary.org/obo/OBA_*>" remove --select "<http://purl.obolibrary.org/obo/ENVO_*>" remove --select "<http://purl.obolibrary.org/obo/OBI_*>" remove --select "<http://purl.obolibrary.org/obo/GOCHE_*>" remove --select "<http://www.genenames.org/cgi-bin/gene_symbol_report*>" remove --select "<http://www.ncbi.nlm.nih.gov/gene/*>" remove --select "<http://birdgenenames.org/cgnc/GeneReport?id=*>" \
extract -T $(IMPORTDIR)/merged_terms_combined.txt --force true --copy-ontology-annotations true --individuals exclude --method BOT \
remove $(patsubst %, --term %, $(ANNOTATION_PROPERTIES)) -T $(IMPORTDIR)/merged_terms_combined.txt --select complement --select annotation-properties \
query --update ../sparql/inject-subset-declaration.ru --update ../sparql/inject-synonymtype-declaration.ru --update ../sparql/postprocess-module.ru \
Expand Down
2 changes: 2 additions & 0 deletions src/ontology/uberon-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import_group:
- <http://purl.obolibrary.org/obo/OBI_*>
- <http://purl.obolibrary.org/obo/GOCHE_*>
- <http://www.genenames.org/cgi-bin/gene_symbol_report*>
- <http://www.ncbi.nlm.nih.gov/gene/*>
- <http://birdgenenames.org/cgnc/GeneReport*>
products:
- id: pr
make_base: TRUE
Expand Down

0 comments on commit bab8c69

Please sign in to comment.