View source: R/gl.filter.excess.het.r
gl.filter.excess.het | R Documentation |
Calculates excess of heterozygosity in a genlight object and remove those loci
gl.filter.excess.het(
x,
Yates = FALSE,
mono.rm = FALSE,
recalc = FALSE,
verbose = NULL
)
x |
A genlight object containing the SNP genotypes [required]. |
Yates |
Whether to use Yates's continuity correction [default FALSE]. |
mono.rm |
Remove monomorphic loci after analysis is complete [default FALSE]. |
recalc |
Recalculate the locus metadata statistics if any individuals are deleted in the filtering [default FALSE]. |
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]. |
Returns unaltered genlight object
Author(s): Jesús Castrejón-Figueroa, Diana A Robledo-Ruiz (Custodian: Ching Ching Lau) – Post to https://groups.google.com/d/forum/dartr
https://github.com/drobledoruiz/conservation_genomics/tree/main/filter.excess.het
Robledo‐Ruiz, D. A., Austin, L., Amos, J. N., Castrejón‐Figueroa, J., Harley, D. K., Magrath, M. J., Sunnucks, P. & Pavlova, A. (2023). Easy‐to‐use R functions to separate reduced‐representation genomic datasets into sex‐linked and autosomal loci, and conduct sex assignment. Molecular Ecology Resources.
gl.filter.callrate
Other matched report:
gl.report.allna()
,
gl.report.callrate()
,
gl.report.hamming()
,
gl.report.locmetric()
,
gl.report.maf()
,
gl.report.overshoot()
,
gl.report.pa()
,
gl.report.rdepth()
,
gl.report.reproducibility()
,
gl.report.secondaries()
,
gl.report.taglength()
filtered.gl <- gl.filter.excess.het(x = LBP, Yates = TRUE)
# Use below function to output information of the loci with Yates's continuity correction specified
filtered.table <- gl.report.excess.het(x = LBP, Yates = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.