Esempio n. 1
0
 def __init__(self, model_id):
     """
     Arguments:
         model_id : String -- a valid unique identifier
     """
     GPRConstrainedModel.__init__(self, model_id)
     self.regulation = OrderedDict()
     self._m_r_reg_lookup = None
     self._r_m_reg_lookup = None
Esempio n. 2
0
 def __init__(self, model_id):
     """
     Arguments:
         model_id : String -- a valid unique identifier
     """
     GPRConstrainedModel.__init__(self, model_id)
     self.regulation = OrderedDict()
     self._m_r_reg_lookup = None
     self._r_m_reg_lookup = None
Esempio n. 3
0
 def remove_reactions(self, id_list):
     GPRConstrainedModel.remove_reactions(self, id_list)
     for (m_id, r_id) in self.regulation:
         if r_id in id_list:
             del self.regulation[(m_id, r_id)]
     self._clear_temp()
Esempio n. 4
0
 def _clear_temp(self):
     GPRConstrainedModel._clear_temp(self)
     self._m_r_reg_lookup = None
     self._r_m_reg_lookup = None
Esempio n. 5
0
 def remove_reactions(self, id_list):
     GPRConstrainedModel.remove_reactions(self, id_list)
     for (m_id, r_id) in self.regulation:
         if r_id in id_list:
             del self.regulation[(m_id, r_id)]
     self._clear_temp()
Esempio n. 6
0
 def _clear_temp(self):
     GPRConstrainedModel._clear_temp(self)
     self._m_r_reg_lookup = None
     self._r_m_reg_lookup = None