Learn R Programming

strvalidator (version 1.3.0)

detectKit: Detect kit

Description

detectKit finds the most likely STR kit for a dataset.

Usage

detectKit(data, index = TRUE, debug = FALSE)

Arguments

data
data frame.
index
logical, returns kit index if TRUE or short name if FALSE.
debug
logical, prints debug information if TRUE.

Value

  • integer or string indicating the detected kit.

Details

The function first check if there is a 'kit' attribute for the dataset. If there was a 'kit' attribute, and a match is found in getKit the corresponding kit or index is returned. If an attribute does not exist the function looks at the markers in the dataset and returns the most likely kit(s).