Unverified Commit 1838e639 authored by St. Elmo's avatar St. Elmo
Browse files

update tests

parent 60eccd99
......@@ -2,9 +2,8 @@
m1 = load_model(model_paths["e_coli_core.json"])
m2 = load_model(CoreModel, model_paths["e_coli_core.json"])
boundary_rxn_ids, boundary_met_ids = boundary_reactions_metabolites(m2)
exchange_rxn_ids = filter(startswith("EX_"), boundary_rxn_ids)
exchange_met_ids = filter(endswith("_e"), boundary_met_ids)
exchange_rxn_ids = filter(looks_like_exchange_reaction, reactions(m2))
exchange_met_ids = [first(keys(reaction_stoichiometry(m2, ex_rxn))) for ex_rxn in exchange_rxn_ids]
biomass_ids = ["BIOMASS_Ecoli_core_w_GAM", "BIOMASS_Ecoli_core_w_GAM"]
......@@ -40,9 +39,8 @@ end
m1 = load_model(CoreModel, model_paths["e_coli_core.json"])
m2 = load_model(CoreModel, model_paths["iJO1366.mat"])
boundary_rxn_ids, boundary_met_ids = boundary_reactions_metabolites(m2)
exchange_rxn_ids = filter(startswith("EX_"), boundary_rxn_ids)
exchange_met_ids = filter(endswith("_e"), boundary_met_ids)
exchange_rxn_ids = filter(looks_like_exchange_reaction, reactions(m2))
exchange_met_ids = [first(keys(reaction_stoichiometry(m2, ex_rxn))) for ex_rxn in exchange_rxn_ids]
biomass_ids = ["BIOMASS_Ecoli_core_w_GAM", "BIOMASS_Ec_iJO1366_core_53p95M"]
......@@ -92,9 +90,9 @@ end
@testset "Community model modifications" begin
m1 = load_model(CoreModel, model_paths["e_coli_core.json"])
boundary_rxn_ids, boundary_met_ids = boundary_reactions_metabolites(m1)
exchange_rxn_ids = filter(startswith("EX_"), boundary_rxn_ids)
exchange_met_ids = filter(endswith("_e"), boundary_met_ids)
exchange_rxn_ids = filter(looks_like_exchange_reaction, reactions(m1))
exchange_met_ids = [first(keys(reaction_stoichiometry(m1, ex_rxn))) for ex_rxn in exchange_rxn_ids]
biomass_ids = ["BIOMASS_Ecoli_core_w_GAM"]
community = join_with_exchanges(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment