Description Usage Arguments Value Examples
View source: R/re_calc_metab.R
re_calc_metab
takes the LoLinR method of
estimating the best fitting change in oxygen consumption
but applies this to a nested dataframe of many SDR plate runs.
Time is converted from min to hours automatically.
1 2 | re_calc_metab(nested_df, sdr_id, cell_id, min_time, max_time,
set_slope_na = FALSE, metab_method = "pc", alpha_value = 0.8)
|
nested_df |
The nested df imported using import_metab(). Time must still be in minutes (e.g. Time_min) |
sdr_id |
A string. Identify of SDR plate. |
cell_id |
A string. Identify of Cell to change. |
min_time |
An integer. Use to trim data and recalc slopes |
max_time |
An integer. Use to trim data and recalc slopes |
set_slope_na |
Use to set slope for ID to missing |
metab_method |
A string. Either "pc" or "eq". "pc"" is the suggested method by Colin for oxygen consumption data. It is the default. |
alpha_value |
Now defaults at 0.8. |
A nested tibble with the model, summary and slopes (per hour change) as list columns.
1 | test_data_merged <- calc_metab(test_data_merged)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.