View source: R/fct_calibrations.R
step_cal | R Documentation |
This function applies changepoint::cpt.mean()
to the supplied data (should be a Step.txt file)
and calculates the mean of the of signal before and after the step. This will work only if the calibration was performed with one
step per file. Ideally the trace would look like this: ~~~¬____
step_cal(data, step)
data |
A numeric vector of trap data |
step |
The known distance of each step in nanometers (i.e. how far did you move the stage) |
A list containing the mV difference between before/after step, mv2nm_conversion, and a plot
#Read in raw trap data from step cal something like:
#data <- readr::read_tsv('Step.txt', col_names = c('bead', 'trap'))
todays_step_cal <- step_cal(data$bead, 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.