Learn R Programming

dartR (version 1.1.11)

gl.filter.monomorphs: Remove monomorphic loci, including those with all NAs

Description

This script deletes monomorphic loci from a genlight {adegenet} object

Usage

gl.filter.monomorphs(x, v = 2, pb = FALSE)

Arguments

x

-- name of the input genlight object [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]

pb

-- display progress bar [FALSE]

Value

A genlight object with monomorphic loci removed

Details

A DArT dataset will not have monomorphic loci, but they can arise when populations are deleted by assignment or by using the delete option in gl.pop.recode(). Retaining monomorphic loci unnecessarily increases the size of the dataset.

Examples

Run this code
# NOT RUN {
gl <- gl.filter.monomorphs(testset.gl)
# }

Run the code above in your browser using DataLab