ba.fit: Convert time into size using the ladder's peak table.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ba.fit.R

Description

Fits size and time from a ladder's peak table on a log scale, and uses the resulting slope and intercept to convert a sample's time into size.

Usage

1
ba.fit(ladder, sample)

Arguments

ladder

Ladder peak table, a data frame returned by read.ba.peaktable().

sample

Sampple Time/Value table, a data frame returned by read.ba.sample().

Details

Size = exp((Time - intercept) / slope)

Value

A numeric vector of sizes of the same length as the sample's data frame number of rows.

Author(s)

Charles Plessy, RIKEN Omics Science Center

See Also

read.ba.peaktable, read.ba.sample

Examples

1
2
3
ladder <- read.ba.peaktable(system.file("data/ba.results.csv", package = "molaR"))
sample1 <- read.ba.sample(system.file("data/ba.sample1.csv", package = "molaR"))
sample1$size <- ba.fit(ladder, sample1)

charles-plessy/molaR documentation built on April 15, 2021, 1:21 a.m.