Skip to content

Commit

Permalink
added uberon to lazily loaded ontologies in ocs (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsebfischer authored Jul 21, 2021
1 parent 7c92d87 commit 7f2b19b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sfaira/consts/ontologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):
self.id = None
self.individual = None
self.normalization = None
self._organ = OntologyUberon()
self._organ = None
self.organism = OntologyList(terms=["mouse", "human"]) # TODO introduce NCBItaxon here
self.primary_data = OntologyList(terms=[True, False])
self.sample_source = OntologyList(terms=["primary_tissue", "2d_culture", "3d_culture", "tumor"])
Expand Down Expand Up @@ -90,3 +90,9 @@ def disease(self):
if self._disease is None:
self._disease = OntologyMondo()
return self._disease

@property
def organ(self):
if self._organ is None:
self._organ = OntologyUberon()
return self._organ

0 comments on commit 7f2b19b

Please sign in to comment.