DataDrivenEnzymeRateEqs.display_rate_equation
— Methoddisplay_rate_equation(
+)
This function is used to perform data-driven rate equation selection using a general rate equation and data. The function will select the best rate equation by iteratively removing parameters from the general rate equation and finding an equation that yield best test scores on data not used for fitting.
Arguments
general_rate_equation::Function
: Function that takes a NamedTuple of metabolite concentrations (withmetab_names
keys) and parameters (withparam_names
keys) and returns an enzyme rate.data::DataFrame
: DataFrame containing the data with columnRate
and columns for eachmetab_names
where each row is one measurement. It also needs to have a columnsource
that contains a string that identifies the source of the data. This is used to calculate the weights for each figure in the publication.metab_names::Tuple
: Tuple of metabolite names that correspond to the metabolites ofrate_equation
and column names indata
.param_names::Tuple
: Tuple of parameter names that correspond to the parameters ofrate_equation
.range_number_params::Tuple{Int,Int}
: A tuple of integers representing the range of the number of parameters of generalrateequation to search over.forward_model_selection::Bool
: A boolean indicating whether to use forward model selection (true) or reverse model selection (false).
Keyword Arguments
save_train_results::Bool
: A boolean indicating whether to save the results of the training for each number of parameters as a csv file.enzyme_name::String
: A string for enzyme name that is used to name the csv files that are saved.
Returns trainresults, testresults and list of practicallyunidentifiableparams and optionally saves a csv file for each num_params
with the results of the training for each combination of parameters tested and a csv file with test results for top 10% of the best results with each number of parameters tested.