plot_absorbance_spectrum.Rd
Processes parsed absorbance spectrum data, collected as a dilution series measured with an A200-1000 absorbance spectrum. Corrects raw data to path length of 1cm by a user-defined method, and normalises to the blanks. Plots spectra and returns processed data.
plot_absorbance_spectrum( spectrum_csv, subset_rows = FALSE, rows_to_keep = c("C", "D"), columns_to_keep = c(1, 12), xrange = c(200, 1000), pl_method = "calc_blanks", buffer_used = "water", concentration_used = 0, temperature_used = 25, outfolder = "." )
spectrum_csv | path of a .csv file of your spectrum data |
---|---|
subset_rows | logical. should script take a subset of the rows (or whole table)? Defaults to FALSE. |
rows_to_keep | character array. If |
columns_to_keep | numeric array. If |
xrange | numerical lower and upper bounds of wavelengths, between which the is subset for plotting. This can be useful for clear plates, which have high background <300nm, so can set the xrange as c(300,800) or similar. |
pl_method | string denoting which method of path length normalisation to
use. Options are |
buffer_used | string corresponding to buffer used for assay, for use in
path length determination. Must be in table used by
|
concentration_used | numeric value corresponding to concentration of
buffer, for use in path length determination. Must be in the same units as
used by table in |
temperature_used | numeric value corresponding to temperature of assay, for use in path length determination. Defaults to 25. |
outfolder | path to folder where output files should be saved. Defaults to current working directory. |
spectrum <- plot_absorbance_spectrum(spectrum_csv = "spectrum_parsed.csv", subset_rows = TRUE, rows_to_keep = c("C","D"), columns_to_keep = c(1:12), pl_method = "calc_blanks", buffer_used = "TBS", concentration_used = 0.005, temperature_used = 30, xrange = c(250,1000), outfolder = "spectrum")