def test_flux_balance_rxn_2(self): fluxes = dict( fluxanalysis.flux_balance(self.model, 'rxn_2', tfba=False, solver=self.solver)) self.assertAlmostEqual(fluxes['rxn_2'], 0)
def test_flux_balance_rxn_3(self): fluxes = dict(fluxanalysis.flux_balance( self.model, 'rxn_3', tfba=False, solver=self.solver)) self.assertAlmostEqual(fluxes['rxn_1'], 500) self.assertAlmostEqual(fluxes['rxn_2'], 0) self.assertAlmostEqual(fluxes['rxn_3'], 1000) self.assertAlmostEqual(fluxes['rxn_6'], 1000)
def test_flux_balance_tfba_exchange_d(self): fluxes = dict(fluxanalysis.flux_balance( self.model, 'ex_D', tfba=True, solver=self.solver)) self.assertAlmostEqual(fluxes['ex_A'], -10) self.assertAlmostEqual(fluxes['ex_D'], 10) self.assertAlmostEqual(fluxes['rxn_2'], 10) self.assertAlmostEqual(fluxes['rxn_4'], 0) self.assertAlmostEqual(fluxes['rxn_5'], 0)
def test_flux_balance_tfba_exchange_d(self): fluxes = dict( fluxanalysis.flux_balance(self.model, 'ex_D', tfba=True, solver=self.solver)) self.assertAlmostEqual(fluxes['ex_A'], -10) self.assertAlmostEqual(fluxes['ex_D'], 10) self.assertAlmostEqual(fluxes['rxn_2'], 10) self.assertAlmostEqual(fluxes['rxn_4'], 0) self.assertAlmostEqual(fluxes['rxn_5'], 0)
def test_flux_balance_rxn_2(self): fluxes = dict(fluxanalysis.flux_balance( self.model, 'rxn_2', tfba=False, solver=self.solver)) self.assertEqual(fluxes['rxn_2'], 0)