Used by process_plate function for optical density calibration. Function adds calibrated_OD column to the data, which is returned. Originally based on flopr::calibrate_od, except instr argument added to allow selection of conversion factor from table that may include multiple instruments, and includes error checks that report to the user if conversion factors are missing.

calibrate_od(pr_data, od_name, instr, conversion_factors_csv)

Arguments

pr_data

a dataframe of parsed plate reader data

od_name

the column name for the optical density data

instr

character string to represent instrument. If do_calibrate = TRUE, used for filtering od_coeffs_csv and fluor_coeffs_csv files for conversion factors of the relevant instrument.

conversion_factors_csv

path of the csv file containing conversion factors for optical density

Value