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
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()
def _clear_temp(self): GPRConstrainedModel._clear_temp(self) self._m_r_reg_lookup = None self._r_m_reg_lookup = None