Skip to content

Commit

Permalink
add interface kwargs to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo authored and exaexa committed Mar 6, 2024
1 parent 03ddeae commit 06021f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/frontend/enzymes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ all the fluxes in `reaction_isozymes` (mass/mass DW units). Alternatively,
constraint (identified by the given identifier) that limits the enzyme
requirements of the listed fluxes to the given limit (mass/mass DW units).
`interface` and `interface_name` are forwarded to [`flux_balance_constraints`](@ref).
## Note
[`simplified_enzyme_constrained_flux_balance_constraints`](@ref) and
[`enzyme_constrained_flux_balance_constraints`](@ref) differ in how the capacity
Expand All @@ -202,6 +204,8 @@ function simplified_enzyme_constrained_flux_balance_constraints(
reaction_isozymes::Dict{String,Dict{String,Isozyme}},
gene_product_molar_masses::Dict{String,Float64},
capacity::Union{Vector{Tuple{String,Vector{String},Float64}},Float64},
interface::Maybe{Symbol} = nothing,
interface_name = :interface,
)

# setup: get fastest isozyme for each reaction (flux * MW/kcat = isozyme
Expand Down Expand Up @@ -230,8 +234,8 @@ function simplified_enzyme_constrained_flux_balance_constraints(
capacity_limits =
capacity isa Real ? [("totalcapacity", keys(enzyme_speeds), capacity)] : capacity

c = simplified_enzyme_constraints(
flux_balance_constraints(model);
simplified_enzyme_constraints(
flux_balance_constraints(model; interface, interface_name);
fastest_isozyme_forward,
fastest_isozyme_reverse,
capacity_limits,
Expand Down

0 comments on commit 06021f1

Please sign in to comment.