View source: R/gl.filter.monomorphs.r
gl.filter.monomorphs | R Documentation |
This script deletes monomorphic loci from a genlight {adegenet} object
A DArT dataset will not have monomorphic loci, but they can arise, along with loci that are scored all NA, when populations or individuals are deleted.
Retaining monomorphic loci unnecessarily increases the size of the dataset and will affect some calculations.
Note that for SNP data, NAs likely represent null alleles; in tag presence/absence data, NAs represent missing values (presence/absence could not be reliably scored)
gl.filter.monomorphs(x, verbose = NULL)
x |
Name of the input genlight object [required]. |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2, unless specified using gl.set.verbosity]. |
A genlight object with monomorphic (and all NA) loci removed.
Custodian: Arthur Georges – Post to https://groups.google.com/d/forum/dartr
Other filter functions:
gl.filter.allna()
,
gl.filter.callrate()
,
gl.filter.heterozygosity()
,
gl.filter.hwe()
,
gl.filter.ld()
,
gl.filter.locmetric()
,
gl.filter.maf()
,
gl.filter.overshoot()
,
gl.filter.pa()
,
gl.filter.parent.offspring()
,
gl.filter.rdepth()
,
gl.filter.reproducibility()
,
gl.filter.secondaries()
,
gl.filter.sexlinked()
,
gl.filter.taglength()
# SNP data
result <- gl.filter.monomorphs(testset.gl, verbose=3)
# Tag P/A data
result <- gl.filter.monomorphs(testset.gs, verbose=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.