calculate_area: Calculate area under spectral curve

Description Usage Arguments Value

Description

Calculates the area under an emission spectra within specified channels, excited by given laser wavelength. The output is a dataframe to facilitate use within dplyr's do() function.

Usage

1
2
calculate_area(wavelengths, excitations, emissions, lasers, channels,
  threshold = 0.01)

Arguments

wavelengths

A vector of wavelengths (nm).

excitations

A vector of excitation intensities.

emissions

A vector of emmision intensities.

lasers

Vector of lasers exciting given proteins e.g. c(488, 642).

channels

Vector of channels for which spectral area is calculated e.g. c('530/30', '670LP').

threshold

Fraction of total spectral area observed in a given channel that is considered to be practically 0.

Value

A data frame with two columns – channel and area.


ssokolen/fluoroscripts documentation built on May 30, 2019, 8:43 a.m.