Learn R Programming

pcrsim (version 0.1.1)

alleleToSize: Allele to size

Description

alleleToSize Converts allele names to fragment length in base pairs.

Usage

alleleToSize(data, kit, debugInfo = FALSE)

Arguments

data
data frame with at least 'Marker' and 'Allele' columns.
kit
String or number indicating the amplification kit used.
debugInfo
logical for printing debug information.

Value

  • data.frame with an additional column 'Size'.

Details

Estimates the fragment size in base pair based on allele names (i.e. number of repeats). Handles 'X' and 'Y' by replacing them with '1' and '2'. Handles microvariant notation (e.g. '9.3').

See Also

getKit