Esempio n. 1
0
 def test_check_on_inconsistent(self):
     core = set(self.model.reactions)
     inconsistent = set(
         fluxanalysis.consistency_check(self.model,
                                        core,
                                        epsilon=0.001,
                                        tfba=False,
                                        solver=self.solver))
     self.assertEqual(inconsistent, {'rxn_2'})
Esempio n. 2
0
 def test_check_on_inconsistent_with_thermodynamic_constraints(self):
     self.model.remove_reaction('rxn_2')
     core = self.model.reactions
     inconsistent = set(
         fluxanalysis.consistency_check(self.model,
                                        core,
                                        epsilon=0.001,
                                        tfba=True,
                                        solver=self.solver))
     self.assertEqual(inconsistent, {'rxn_7', 'rxn_8'})
Esempio n. 3
0
 def test_check_on_inconsistent_with_thermodynamic_constraints(self):
     self.model.remove_reaction('rxn_2')
     core = self.model.reactions
     inconsistent = set(fluxanalysis.consistency_check(
         self.model, core, epsilon=0.001, tfba=True, solver=self.solver))
     self.assertEqual(inconsistent, {'rxn_7', 'rxn_8'})
Esempio n. 4
0
 def test_check_on_inconsistent(self):
     core = set(self.model.reactions)
     inconsistent = set(fluxanalysis.consistency_check(
         self.model, core, epsilon=0.001, tfba=False, solver=self.solver))
     self.assertEqual(inconsistent, {'rxn_2'})