Learn R Programming

dartR (version 1.1.11)

gl.filter.repavg: Filter loci in a genlight {adegenet} object based on average repeatability of alleles at a locus

Description

SNP datasets generated by DArT have in index, RepAvg, generated by reproducing the data independently for 30% of loci. RepAvg is the proportion of alleles that give a repeatable result, averaged over both alleles for each locus.

Usage

gl.filter.repavg(x, threshold = 0.99, v = 2)

Arguments

x

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

threshold

-- threshold value below which loci will be removed [default 0.99]

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

Returns a genlight object retaining loci with a RepAvg greater than the specified threshold deleted.

Examples

Run this code
# NOT RUN {
gl.report.repavg(testset.gl)
result <- gl.filter.repavg(testset.gl, threshold=0.95, v=3)
# }

Run the code above in your browser using DataLab