From 823472edea4ca5214dcd3e6a7f935998a2d08a9e Mon Sep 17 00:00:00 2001 From: "david.seb.fischer" Date: Wed, 21 Jul 2021 11:09:29 +0200 Subject: [PATCH] added uberon to lazily loaded ontologies in ocs --- sfaira/consts/ontologies.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sfaira/consts/ontologies.py b/sfaira/consts/ontologies.py index 7eec586d9..a83003939 100644 --- a/sfaira/consts/ontologies.py +++ b/sfaira/consts/ontologies.py @@ -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"]) @@ -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