step_cal: Performs Step Calibration of the Laser Trap

Description Usage Arguments Value Examples

View source: R/fct_calibrations.R

Description

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: ~~~¬____

Usage

1

Arguments

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)

Value

A list containing the mV difference between before/after step, mv2nm_conversion, and a plot

Examples

1
2
3
#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)

brentscott93/lasertrapr documentation built on Aug. 1, 2020, 12:51 p.m.