calibrate_od: Convert arbitrary optical density units to calibrated units

View source: R/calibrate_od.R

calibrate_odR Documentation

Convert arbitrary optical density units to calibrated units

Description

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.

Usage

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

an updated data.frame with an additional column for calibrated OD


ec363/fpcountr documentation built on Nov. 29, 2024, 12:03 p.m.