Пример #1
0
 def type(self):
     if "interactionType" in self._interaction:
         if isinstance(self._interaction["interactionType"], list):
             return mif.CvTerm(self._interaction["interactionType"][0])
         if isinstance(self._interaction["interactionType"], dict):
             return mif.CvTerm(self._interaction["interactionType"])
     return None
Пример #2
0
 def types(self):
     if "interactionType" in self._interaction:
         if isinstance(self._interaction["interactionType"], list):
             ret = []
             for t in self._interaction["interactionType"]:
                 ret.append(mif.CvTerm(t))
             return ret
     return None
Пример #3
0
 def evidenceType(self):
     if "evidenceType" in self._interaction:
         if isinstance(self._interaction["evidenceType"], dict):
             return mif.CvTerm(self._interaction["evidenceType"])
     return None
Пример #4
0
 def interactorType(self):
     if "interactorType" in self._interaction:
         if isinstance(self._interaction["interactorType"], dict):
             return mif.CvTerm(self._interaction["interactorType"])
     return None