region.ratio: Compare sums within regions

View source: R/integration.R

region.ratioR Documentation

Compare sums within regions

Description

Given two or more regions (pairs of lower and upper bounds), calculate the ratio of the integrated sum of each additional region relative to the integrated sum of the first region. The ratio is computed individually for each sample.

Usage

region.ratio(
  electrophoresis,
  ...,
  bound.variable = "length",
  sum.variable = "molarity"
)

Arguments

electrophoresis

An electrophoresis object.

...

Two or more pairs (vectors) of boundaries, e.g. c(100, 200), c(200, 500), c(500, 700).

bound.variable

Which variable the boundaries refer to.

sum.variable

Which variable to sum in each region.

Value

A matrix of ratios of sums within the regions, each region relative to the first region, for each sample.

See Also

integrate.custom, dv200, illumina.library.ratio


jwfoley/bioanalyzeR documentation built on Aug. 1, 2023, 4:46 a.m.