Learn R Programming

strvalidator (version 1.3.0)

getKit: Get kit

Description

getKit provides information about STR kits.

Usage

getKit(kit = NULL, what = NA, showMessages = FALSE, .kitInfo = NULL,
  debug = FALSE)

Arguments

kit
string or integer to specify the kit.
what
string to specify which information to return. Default is 'NA' which return all info. Not case sensitive.
showMessages
logical, default TRUE for printing messages to the R promt.
.kitInfo
data frame, run function on a data frame instead of the kits.txt file.
debug
logical indicating printing debug information.

Value

  • data.frame with kit information.

Details

The function returns the following information for a kit specified in kits.txt: Panel name, short kit name (unique, user defined), full kit name (user defined), marker names, allele names, allele sizes (bp), minimum allele size, maximum allele size (bp), flag for virtual alleles, marker color, marker repeat unit size (bp), minimum marker size, maximum marker, marker offset (bp), flag for gender marker (TRUE/FALSE). If no matching kit or kit index is found NA is returned. If 'NULL' or '0' a vector of available kits is printed and NA returned.

Examples

Run this code
# Show all information stored for kit with short name 'ESX17'.
getKit("ESX17")

Run the code above in your browser using DataLab