step_cal: Performs Step Calibration of the Laser Trap

View source: R/fct_calibrations.R

step_calR Documentation

Performs Step Calibration of the Laser Trap

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

step_cal(data, step)

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

#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 March 26, 2024, 4:26 p.m.