reaction_table: A data frame describing the metabolic model.
gene_table: A data frame showing gene presence
expression_flux_function: a function to convert from gene set expression to flux
Returns
the reaction_table, with a new column, present, and altered upper and lower bounds
Warning
This function relies on gene_eval, which uses eval to evaluate gene expression sets. This gives flexibility, but means that malicious code in the gene_sets argument could get evaluated. gene_sets is evaluated in a restricted environment, but there might be a way around this, so you might want to check for anything suspicious in this argument manually. For more information, read the code.