Learn R Programming

ezmmek (version 0.2.1)

p_sat_curve: Create saturation curve

Description

Creates a dataframe and plot by applying the standard curve coefficients to the raw saturation data.

Usage

p_sat_curve(d_std, d_sat, man.units = FALSE)

Arguments

d_std

Must be a dataframe that contains 'std.conc' and 'spec'.

d_sat

Must be a dataframe that contains 'time', 'sub.conc' (substrate concentration), 'replicate', and 'spec' (spectral data). If d_sat contains a fifth column, that fifth column will be assumed to be a normalization factor. The rate of reacation will be divided by the values present in the fifth column. The user will be prompted to name the unit of normalization, which will appear on the y-axis, if a fifth column is present.

man.units

If 'man.units = TRUE', the user will be guided through a series of prompts to label the plot axes. If 'man.units = FALSE', a plot will generated with generic axes titles.

Value

List containing new dataframe, regression model, and saturation curve.

Details

The spectral data is converted to concentration of standard. The new dataframe contains the average slope (rate of reaction) and standard deviation for each replicate at each substrate concentration. 'p_sat_curve' plots the new dataframe with substrate concentration on the x-axis, and rate of reaction on the y-axis. It asks the user to specify axis labels with the appropriate units. It predicts and reports Vmax and Km values. It creates a list output containing the new dataframe, an additional new dataframe consisting of predicted curve fit values, the regression model, and the saturation curve plot.

Examples

Run this code
# NOT RUN {
#If 'man.units = FALSE'
p_sat_curve(d_std, d_sat)
p_sat_curve(d_std, d_sat_n)

#If 'man.units = TRUE'
#Run 'p_sat_curve(d_std, d_sat)'.
#When prompted 'Substrate name:', type 'L-Leucine AMC' and press Enter.
#When prompted 'x-axis: What are the units of substrate concentration?', type '3' and press Enter.
#When prompted 'y-axis: What are the units of concentration?', type '3' and press Enter.
#When prompted 'y-axis: What are the units of time?', type '2' and press Enter.

#If 'man.units = TRUE'
#Run 'p_sat_curve(d_std, d_sat_n)'.
#When prompted 'Substrate name:', type 'L-Leucine AMC' and press Enter.
#When prompted 'x-axis: What are the units of substrate concentration?', type '3' and press Enter.
#When prompted 'y-axis: What are the units of concentration?', type '3' and press Enter.
#When prompted 'y-axis: What are the units of time?', type '2' and press Enter.
#When prompted 'Normalization unit:', type 'cell' and press Enter.

# }

Run the code above in your browser using DataLab