示例#1
0
 def test_fva_single(self):
     variability = FVA(ec_core_model, reactions=['R_EX_ac_e'])
     self.assertTrue(all([lb <= ub if lb is not None and ub is not None else True
                          for lb, ub in variability.values()]))
     self.assertEqual(1, len(variability))
示例#2
0
 def testRun(self):
     model = load_sbml_model(SMALL_TEST_MODEL, kind=GPR_CONSTRAINED)
     fix_bigg_model(model)
     variability = FVA(model)
     self.assertTrue(all([lb <= ub if lb is not None and ub is not None else True
                          for lb, ub in variability.values()]))
示例#3
0
 def test_fva_full(self):
     variability = FVA(ec_core_model)
     self.assertTrue(all([lb <= ub if lb is not None and ub is not None else True
                          for lb, ub in variability.values()]))
     self.assertEqual(len(ec_core_model.reactions), len(variability))