re_calc_metab: Runs LoLinR over whole SDR arrays and runs

Description Usage Arguments Value Examples

View source: R/re_calc_metab.R

Description

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.

Usage

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)

Arguments

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.

Value

A nested tibble with the model, summary and slopes (per hour change) as list columns.

Examples

1
test_data_merged <- calc_metab(test_data_merged)

daflealab/genlabfunc documentation built on May 27, 2019, 7:25 a.m.