Learn R Programming

pcrsim (version 0.1.1)

addSimAlleles: Add simulated alleles

Description

addSimAlleles Adds the peak height from the two simulated alleles from simPCR and returns a list of the total peak heights for the simulated marker.

Usage

addSimAlleles(data)

Arguments

data
List returned from simPCR.

Value

  • list the totel peak height for each marker.

Details

'data' contains short tandem repeat (STR) marker/locus names in the required column. Based on the provided kit name other information is attached to 'data' in new columns.

Examples

Run this code
# Create test data.
x <- list(c(250, 260), c(123,109))
# Add simulated heterozygote peak heights to a total peak height for each locus.
addSimAlleles(x)

Run the code above in your browser using DataLab