Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

included / formerly refactor #167

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions omim2obo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def omim2obo(use_cache: bool = False):
# - Non-OMIM triples
graph.add((URIRef('http://purl.obolibrary.org/obo/mondo/omim.owl'), RDF.type, OWL.Ontology))
graph.add((URIRef(oboInOwl.hasSynonymType), RDF.type, OWL.AnnotationProperty))
graph.add((URIRef(MONDONS.omim_included), RDF.type, OWL.AnnotationProperty))
graph.add((URIRef(MONDONS.includedEntryInOMIM), RDF.type, OWL.AnnotationProperty))
Copy link
Contributor Author

@joeflack4 joeflack4 Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename

Discussed w/ Nico today. These are not the same.We need to keep both.

  • @joeflack4 Rename omim_included to omimIncluded or OMIM_INCLUDED (see: comment)
    • Do same for 'formerly'
  • @joeflack4 Don't remove includedEntryInOMIM

Copy link
Contributor Author

@joeflack4 joeflack4 Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snake or camel case

Nico wrote:

Look how clingen_label is formatted I think it's all upper case with underscore, so OMIM_INCLUDED should be as well (always check other examples of the same thing you are adding to determine correct casing)

Originally we were doing snake case, but then we 3 met a few weeks ago and coming out of that meeting, determined this and omimFormerly should be camel case, but I don't remember why.

Edit:

    <owl:AnnotationProperty rdf:about="http://purl.obolibrary.org/obo/mondo#CLINGEN_LABEL">
        <rdfs:subPropertyOf rdf:resource="http://www.geneontology.org/formats/oboInOwl#SynonymTypeProperty"/>
    </owl:AnnotationProperty>

@twhetzel Can make the judgement on this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on this, I think UPPER_SNAKE_CASE is best.

graph.add((URIRef(OMO['0003000']), RDF.type, OWL.AnnotationProperty))
graph.add((BIOLINK['has_evidence'], RDF.type, OWL.AnnotationProperty))
graph.add((TAX_URI, RDF.type, OWL.Class))
Expand Down Expand Up @@ -252,7 +252,7 @@ def omim2obo(use_cache: bool = False):
if label_endswith_included_alt or label_endswith_included_inc:
graph.add((omim_uri, RDFS['comment'], Literal(included_detected_comment)))
for included_label in cleaned_inc_labels:
graph.add((omim_uri, URIRef(MONDONS.omim_included), Literal(label_cleaner.clean(included_label, abbrev))))
graph.add((omim_uri, URIRef(MONDONS.includedEntryInOMIM), Literal(label_cleaner.clean(included_label, abbrev))))

# Gene ID
# Why is 'skos:exactMatch' appropriate for disease::gene relationships? - joeflack4 2022/06/06
Expand Down