Commit 352df865 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

please add function types

parent f2b59ef9
Pipeline #55091 passed with stages
in 6 minutes and 46 seconds
......@@ -12,13 +12,14 @@ function make_gecko_model(
coupling_row_gene_product = Int[]
coupling_row_mass_group = String[]
gene_name_lookup = Dict(genes(model) .=> 1:n_genes(model))
gene_row_lookup = Dict{Int,Int}()
mass_group_lookup = Dict{String,Int}()
gids = genes(model)
(lbs, ubs) = bounds(model)
rids = reactions(model)
gene_name_lookup = Dict(gids .=> 1:length(gids))
gene_row_lookup = Dict{Int,Int}()
mass_group_lookup = Dict{String,Int}()
for i = 1:n_reactions(model)
isozymes = reaction_isozymes(rids[i])
if isempty(isozymes)
......@@ -106,7 +107,10 @@ function make_gecko_model(
columns,
coupling_row_reaction,
collect(
zip(coupling_row_gene_product, gene_product_limit.(coupling_row_gene_product)),
zip(
coupling_row_gene_product,
gene_product_limit.(gids[coupling_row_gene_product]),
),
),
collect(
zip(coupling_row_mass_group, mass_fraction_limit.(coupling_row_mass_group)),
......
Supports Markdown
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