Used by process_plate function for fluorescence calibration. Function adds calibrated fluorescence column to the data, which is returned. Originally based on flopr::calibrate_flu, but with multiple changes. A list of arguments have been added to allow selection of required conversion factor from table that may include conversion factors from multiple instruments, FPs, etc, and function now includes error checks that report to the user if conversion factors are missing.

calibrate_flu(
  pr_data,
  od_name,
  flu_instr,
  flu_channel,
  flu_gain,
  flu_slug,
  flu_label,
  do_quench_correction = do_quench_correction,
  conversion_factors_csv
)

Arguments

pr_data

a data.frame of parsed plate reader data

od_name

the column name for the optical density data

flu_instr

instrument name

flu_channel

fluorescent channel name

flu_gain

gain

flu_slug

name of fluorescent protein in FPbase slug format

conversion_factors_csv

path of the csv file containing predicted conversion factors for the fluorescent channels

Value