BFAIR.mfa.sampling.add_constraints

BFAIR.mfa.sampling.add_constraints(model_input, fittedFluxes)[source]

Adds all the constraints defined in the input to a metabolic model.

Parameters
model_inputcobra.Model

Metabolic model.

fittedFluxespandas.DataFrame

Dataframe (reimported output of an INCA simulation) that contains the confidence intervals predicted for the model.

Returns
modelcobra.Model

Metabolic model with adjusted constraints.