View source: R/process_absorbance_spectrum.R
process_absorbance_spectrum | R Documentation |
Processes raw absorbance spectrum data, collected as a dilution series. Expects 'parsed' data that is tidy and attached to appropriate metadata. Corrects raw data to path length of 1cm by a user-defined method, and normalises to the blanks. Plots spectra and returns processed data.
process_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 = ".",
csv_only = FALSE
)
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 |
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. |
csv_only |
logical. Saves only CSV files as outputs when |
## Not run:
spectrum <- process_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"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.