Learn R Programming

strvalidator (version 0.3.0)

calculateStutter: Calculate stutter

Description

calculateStutter calculates statistics for stutters.

Usage

calculateStutter(data, ref, back = 2, forward = 1,
    interference = 0, replaceVal = NULL, byVal = NULL,
    debug = FALSE)

Arguments

data
data frame with genotype data in 'slim' format. Requires columns 'Sample.Name', 'Marker', 'Allele', 'Height'.
ref
data frame in 'slim' format with the known profiles. Requires columns 'Sample.Name', 'Marker', 'Allele'.
back
integer for the maximal number of backward stutters (max size difference 2 = n-2 repeats).
forward
integer for the maximal number of forward stutters (max size difference 1 = n+1 repeats).
interference
integer specifying accepted level of interference between peaks. 0 = no overlap between stutters and alleles is allowed. 1 = stutter-stutter interference is allowed. 2 = stutter-allele interference is allowed.
replaceVal
numeric vector with 'false' stutters to replace.
byVal
numeric vector with correct stutters.
debug
logical indicating printing debug information.

Value

  • data.frame with extracted result.

Details

Calculates stutter ratios based on the 'reference' data set. NB! Off-ladder alleles ('OL') is NOT included in the analysis. NB! Labelled pull-ups or artefacts within stutter range IS included in the analysis.