Description Usage Arguments Details Value Examples
This function takes raw data from a calibration curve experiment (yeast expressing pHluorin, flow cytometry data) and does all processing steps to construct a calibration curve that maps fluorescence ratio to pH. Takes *raw* (untransformed) FITC and BV510 channels as inputs.
1 2 3 |
subset |
The dataframe containing the raw calibration curve data. Identifier column should be called 'exp' and formatted as 'cc_pH.fcs' |
background |
The dataframe containing the raw background data. Identifier column should be called 'exp' and formatted as 'experiment_strain_background' with background being either 'buffer' or 'media' |
id |
Name/date of experiment, will end up as part of the cc function name so use plaintext characters and no dashes |
inputs |
A list of column entries that were used during data collection, default is FALSE (inferred from filenames) |
buffer.values |
A list of buffer values for that day, default is FALSE (inferred from filenames) |
xmin |
minimum pH predicted (depends on range of buffer values used) |
xmax |
maximum pH predicted (depends on range of buffer values used) |
FITC.thresh |
Value that untransformed FITC.A (area) signal must exceed; default is 800 |
BV.thresh |
Value that untransformed BV510.A (area) signal must exceed; default is 800 |
start.list |
Edit the starting fitting parameters; default is list(a=.5, b=2, c=7, d=0.25) (keep this form but change numbers) |
return.plot |
Boolean, whether or not to create a plot of the resulting calibration curve. Default is TRUE |
NEW as of 01-2019: now the resulting conversion function can do adaptive background subtraction
WARNING proper background subtraction only achieved when the data are grouped first (see examples)
convert.to.pH function, plot of calibration curve, analysis of fit quality
1 2 3 4 5 | # Given a dataframe 'df' that contains multiple samples with different backgrounds
# background is specified in the column 'recovery'
processed_df <- df %>%
group_by(recovery) %>%
mutate(pH = convert.to.pH(channel1, channel2, media.type = recovery))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.