17.40. test_core_reaction
¶
Test functions of cobra.core.reaction .
17.40.1. Module Contents¶
17.40.1.1. Functions¶
|
Test GPR evaluation. |
|
|
|
Test GPR manipulations. |
|
Test gene knockout effect on reaction. |
|
Test str output for a reaction. |
|
Test str output for a reaction associated with a model. |
|
Test metabolite addition to a reaction from a solved model. |
|
Benchmark metabolite addition to a reaction associated with a model. |
|
Test metabolite addition to a reaction from an unsolved model. |
|
Benchmark metabolite deletion from a reaction. |
|
Test metabolite deletion from a reaction associated with an unsolved model. |
|
Test mass balance of metabolites of a reaction. |
|
Test reaction building from string evaluation. |
|
Test reaction bounds setter. |
|
Test reaction copying. |
|
Test in-place addition of reaction. |
|
Test reaction addition to model. |
|
Test __radd__ for a reaction. |
|
Test scalar multiplication of factors with a reaction. |
|
Test reaction subtraction. |
|
Test reaction removal from a model, retains its bounds. |
|
Test reaction bounds setting for a scenario. |
|
Test reaction bounds setting for a scenario. |
|
Test reaction bounds setting for a scenario. |
|
Test reaction bounds setting for a scenario. |
|
Test reaction bounds setting to zero. |
|
Test reaction bounds change. |
|
Test reaction irreversibility. |
|
Test reaction reversibility. |
|
Test reaction irreversibility to irreversibility. |
|
Test reaction LHS irreversibility to reversibility. |
|
Test model without reactions. |
|
Test reaction knockouts. |
|
Test reaction without model association. |
|
Test absurd left to right reaction. |
|
Test left to right reaction with positive upper bound. |
|
Test reaction irreversibility with negative lower bound. |
|
Test irreversibility reversal from right to left to left to right. |
|
Test lower bound > upper bound makes upper bound to new lower bound. |
|
Test upper bound < lower bound makes lower bound to new upper bound. |
|
Test metabolite addition to reaction (with combine = True). |
|
Test metabolite addition to reaction (with combine = False). |
|
Test in-place scalar factor multiplication to reaction. |
|
Test reaction removal from model. |
|
Test reaction ID change reflection in solver. |
|
Test __repr_html__ functionality. |
|
Test reaction compartment change. |
-
test_core_reaction.
test_gene_knock_out
(model: Model) → None[source]¶ Test gene knockout effect on reaction.
-
test_core_reaction.
test_str_from_model
(model: Model) → None[source]¶ Test str output for a reaction associated with a model.
-
test_core_reaction.
test_add_metabolite_from_solved_model
(solved_model: Model) → None[source]¶ Test metabolite addition to a reaction from a solved model.
-
test_core_reaction.
test_add_metabolite_benchmark
(model: Model, benchmark, solver: Iterable) → None[source]¶ Benchmark metabolite addition to a reaction associated with a model.
-
test_core_reaction.
test_add_metabolite
(model: Model) → None[source]¶ Test metabolite addition to a reaction from an unsolved model.
-
test_core_reaction.
test_subtract_metabolite_benchmark
(model: Model, benchmark, solver: Iterable) → None[source]¶ Benchmark metabolite deletion from a reaction.
-
test_core_reaction.
test_subtract_metabolite
(model: Model, solver: Iterable) → None[source]¶ Test metabolite deletion from a reaction associated with an unsolved model.
-
test_core_reaction.
test_mass_balance
(model: Model) → None[source]¶ Test mass balance of metabolites of a reaction.
-
test_core_reaction.
test_build_from_string
(model: Model) → None[source]¶ Test reaction building from string evaluation.
-
test_core_reaction.
test_mul
(model: Model) → None[source]¶ Test scalar multiplication of factors with a reaction.
-
test_core_reaction.
test_removal_from_model_retains_bounds
(model: Model) → None[source]¶ Test reaction removal from a model, retains its bounds.
-
test_core_reaction.
test_set_bounds_scenario_1
(model: Model) → None[source]¶ Test reaction bounds setting for a scenario.
-
test_core_reaction.
test_set_bounds_scenario_2
(model: Model) → None[source]¶ Test reaction bounds setting for a scenario.
-
test_core_reaction.
test_set_bounds_scenario_3
(model: Model) → None[source]¶ Test reaction bounds setting for a scenario.
-
test_core_reaction.
test_set_bounds_scenario_4
(model: Model) → None[source]¶ Test reaction bounds setting for a scenario.
-
test_core_reaction.
test_set_upper_before_lower_bound_to_0
(model: Model) → None[source]¶ Test reaction bounds setting to zero.
-
test_core_reaction.
test_make_irreversible
(model: Model) → None[source]¶ Test reaction irreversibility.
-
test_core_reaction.
test_make_irreversible_irreversible_to_the_other_side
(model: Model) → None[source]¶ Test reaction irreversibility to irreversibility.
-
test_core_reaction.
test_make_lhs_irreversible_reversible
(model: Model) → None[source]¶ Test reaction LHS irreversibility to reversibility.
-
test_core_reaction.
test_model_less_reaction
(model: Model) → None[source]¶ Test model without reactions.
-
test_core_reaction.
test_reaction_without_model
() → None[source]¶ Test reaction without model association.
-
test_core_reaction.
test_weird_left_to_right_reaction_issue
(tiny_toy_model: Model) → None[source]¶ Test absurd left to right reaction.
-
test_core_reaction.
test_one_left_to_right_reaction_set_positive_ub
(tiny_toy_model: Model) → None[source]¶ Test left to right reaction with positive upper bound.
-
test_core_reaction.
test_irrev_reaction_set_negative_lb
(model: Model) → None[source]¶ Test reaction irreversibility with negative lower bound.
-
test_core_reaction.
test_twist_irrev_right_to_left_reaction_to_left_to_right
(model: Model) → None[source]¶ Test irreversibility reversal from right to left to left to right.
-
test_core_reaction.
test_set_lb_higher_than_ub_sets_ub_to_new_lb
(model: Model) → None[source]¶ Test lower bound > upper bound makes upper bound to new lower bound.
-
test_core_reaction.
test_set_ub_lower_than_lb_sets_lb_to_new_ub
(model: Model) → None[source]¶ Test upper bound < lower bound makes lower bound to new upper bound.
-
test_core_reaction.
test_add_metabolites_combine_true
(model: Model) → None[source]¶ Test metabolite addition to reaction (with combine = True).
-
test_core_reaction.
test_add_metabolites_combine_false
(model: Model) → None[source]¶ Test metabolite addition to reaction (with combine = False).
-
test_core_reaction.
test_reaction_imul
(model: Model) → None[source]¶ Test in-place scalar factor multiplication to reaction.
-
test_core_reaction.
test_remove_from_model
(model: Model) → None[source]¶ Test reaction removal from model.