define_gel_lanes: Define Gel Lanes

Description Usage Arguments Value Examples

View source: R/define_gel_lanes.R

Description

This function uses the inflect function (bioKIT) to identify local minima in an agarose gel image. From this set of minima, the middle of each lane can be defined. This returns a range, expanded by a set of pixels on either side of the middle.

Usage

1
2
define_gel_lanes(gel_img, x_inflect_threshold = 25, expand_lanes = 10,
  plot_signal = T)

Arguments

gel_img

an image object, created using the imager package.

expand_lanes

how far in each direction from the midpoint should lanes be "expanded? 10 by default.

plot_signal

Display the locations of the ranges? Useful for ensuring accuracy.

inflect_threshold

px threshold for calculating minima; integer, 25 by default.

Value

Returns a dataframe of the calculated information. Can also return a plot.

Examples

1
# ADD_EXAMPLES_HERE

avhgenomics/bioKIT documentation built on May 5, 2019, 12:29 a.m.