def _build_reaction(identifier, stoichiometry, upper, lower, name, comments): reaction = Reaction(identifier) reaction.id = identifier reaction.name = name reaction.add_metabolites(stoichiometry) reaction.upper_bound = upper reaction.lower_bound = lower reaction.notes["pathway_note"] = comments return reaction