Here are my codes, taking ala_B as an example. Note: bigg is my metabolites.
metabolite_cobra = cobra.Metabolite('ala_B', name=metabolite_name, compartment='C_e')
reaction_EX = cobra.Reaction("EX_" + 'ala_B'+'_e')
reaction_EX.name = metabolite_name + ' Exchange'
reaction_EX.lower_bound = -1000
reaction_EX.upper_bound = 1000
reaction_EX.add_metabolites({metabolite_cobra: -1})
I was wondering if you could provide some insights into why this might be occurring. I am keen to understand if there might be something I am overlooking.