extract_model_tmas: Extract model tmas

View source: R/save_dye_screen_model_plots.R

extract_model_tmasR Documentation

Extract model tmas

Description

Starting from a tibble containing dsfworld fit information, use extract_model_tmas to pull just resulting tmas into a tidy tibble. Probably belongs somewhere in the fitting function scripts, ultimately.

Usage

extract_model_tmas(
  by_var_fit,
  .var_col = ".var",
  .model_name_col = "model_name",
  .model_tma_col = "model_tma"
)

Arguments

by_var_fit

a tibble, as output by add_model_fits.

.var_col

a string, giving the name of the column in by_var_fit containing the unique-identifier for each dataset. Defaults to ".var"

.model_name_col

a string, giving the name of the column in by_var_fit containing the name of the fitted model used to find a given tma. Defaults to "model_name"

.model_tma_col

a string, giving the name of the column in by_var_fit containing the tma resulting from the model fitting and tma extraction. Defaults to "model_tma".

Value

a tibble of apparent melting temperatures, comprising four columns

  • .var character, giving the unique dataset identifier for each DSF trace.

  • model_name character, giving the name of the model from which the given values and tmas were found, e.g. "model_1", "model_2"

  • which_value character, giving the specific component for a given value, e.g. "sigmoid_1", "sigmoid_2"

  • tma numeric, the value of the calculated tma in reference to normalized Temperatures.


taiawu/dsfworld_package documentation built on June 18, 2024, 5:39 a.m.