def testRun(self): model = load_cbmodel(SMALL_TEST_MODEL, flavor='cobra') solution = gene_deletion(model, DOUBLE_GENE_KO, 'pFBA') self.assertEqual(solution.status, Status.OPTIMAL) self.assertAlmostEqual(solution.values[model.biomass_reaction], DOUBLE_KO_GROWTH_RATE, 2) self.assertAlmostEqual(solution.values['R_EX_succ_e'], DOUBLE_KO_SUCC_EX, 2)
def testRun(self): model = load_cbmodel(SMALL_TEST_MODEL, flavor='cobra') solution = gene_deletion(model, ROOM_GENE_KO, 'ROOM') self.assertEqual(solution.status, Status.OPTIMAL) self.assertTrue(solution.values['R_EX_succ_e'] > 1e-3)