@@ -377,7 +377,9 @@ function recursive_clean!(expr::Any)
377
377
(expr. args[1 ] == :/ ) && (expr. args[3 ] == 1 ) && (return expr. args[2 ])
378
378
haskey (funcdict, expr. args[1 ]) && return funcdict[expr. args[1 ]](expr. args[2 : end ])
379
379
in (expr. args[1 ],hill_name) && return hill (expr)
380
+ in (expr. args[1 ],hillR_name) && return hillR (expr)
380
381
in (expr. args[1 ],mm_name) && return mm (expr)
382
+ in (expr. args[1 ],mmR_name) && return mmR (expr)
381
383
(expr. args[1 ] == :binomial ) && (expr. args[3 ] == 1 ) && return expr. args[2 ]
382
384
# @isdefined($(expr.args[1])) || error("Function $(expr.args[1]) not defined.")
383
385
end
@@ -454,12 +456,21 @@ hill_name = Set{Symbol}([:hill, :Hill, :h, :H, :HILL])
454
456
function hill (expr:: Expr )
455
457
return :($ (expr. args[3 ])* ($ (expr. args[2 ])^ $ (expr. args[5 ]))/ ($ (expr. args[4 ])^ $ (expr. args[5 ])+ $ (expr. args[2 ])^ $ (expr. args[5 ])))
456
458
end
459
+ hillR_name = Set {Symbol} ([:hill_repressor , :hillr , :hillR , :HillR , :hR , :hR , :Hr , :HR , :HILLR ])
460
+ function hillR (expr:: Expr )
461
+ return :($ (expr. args[3 ])* ($ (expr. args[4 ])^ $ (expr. args[5 ]))/ ($ (expr. args[4 ])^ $ (expr. args[5 ])+ $ (expr. args[2 ])^ $ (expr. args[5 ])))
462
+ end
457
463
458
464
# Michaelis menten function made avaiable.
459
465
mm_name = Set {Symbol} ([:MM , :mm , :Mm , :mM , :M , :m ])
460
466
function mm (expr:: Expr )
461
467
return :($ (expr. args[3 ])* $ (expr. args[2 ])/ ($ (expr. args[4 ])+ $ (expr. args[2 ])))
462
468
end
469
+ # Michaelis menten function made avaiable.
470
+ mmR_name = Set {Symbol} ([:mm_repressor , :MMR , :mmr , :mmR , :MmR , :mMr , :MR , :mr , :Mr , :mR ])
471
+ function mmR (expr:: Expr )
472
+ return :($ (expr. args[3 ])* $ (expr. args[4 ])/ ($ (expr. args[4 ])+ $ (expr. args[2 ])))
473
+ end
463
474
464
475
# Allows the user to define new function and enable the @reaction_network macro to see them.
465
476
macro reaction_func (expr)
0 commit comments