Learn R Programming

dartR (version 1.1.11)

utils.recalc.callrate: A utility script to recalculate the callrate by locus after some populations have been deleted

Description

SNP datasets generated by DArT have missing values primarily arising from failure to call a SNP because of a mutation at one or both of the the restriction enzyme recognition sites. The locus metadata supplied by DArT has callrate included, but the call rate will change when some individuals are removed from the dataset. This script recalculates the callrate and places these recalculated values in the appropriate place in the genlight object.

Usage

utils.recalc.callrate(x, v = 2)

Arguments

x

-- name of the genlight object containing the SNP data [required]

v

-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]

Value

The modified genlight object

Examples

Run this code
# NOT RUN {
#result <- dartR:::utils.recalc.callrate(testset.gl)
# }

Run the code above in your browser using DataLab