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'})
 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'})
Example #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'})
Example #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'})