Learn R Programming

pcrsim (version 1.0.2)

calculateDegradation: Calculate Degradation Parameter

Description

Calculate the degradation parameter (probability of degradation per base pair).

Usage

calculateDegradation(conc, size, debug = FALSE)

Arguments

conc
numeric vector with measured concentrations.
size
numeric vector with number of base pairs for the targets.
debug
logical to print debug information.

Value

numeric calculated degradation parameter.

Details

Calculates the degradation parameter given the concentrations measured with two targets of different size. NB! The concentration from the shorter fragment must be given first with the corresponding target size first in the size vector.

Examples

Run this code
# The DNA concentration for a degraded sample measured with probe sizes 70 and 220 bp
# was 85 and 0.5 ng/ul respectively.
# Calulate the degradation parameter:
calculateDegradation(conc=c(85,0.5), size=c(70,220))

Run the code above in your browser using DataLab