View source: R/gl.report.excess.het.r
| gl.report.excess.het | R Documentation |
Deprecated. Use
gl.report.hwe(direction = 'excess', min.hobs = 0.5,
method_sig = 'ChiSquare', multi_comp = TRUE, multi_comp_method = 'fdr',
cc_val = 0) instead (cc_val = 0.5 for Yates = TRUE); see
gl.report.hwe.
This wrapper reproduces the workflow of Robledo-Ruiz et al. (2023) for identifying loci with a significant excess of heterozygotes (candidate sex-linked or paralogous loci) by calling gl.report.hwe with the equivalent settings, and will be removed in a future release.
gl.report.excess.het(
x,
Yates = FALSE,
plot.display = TRUE,
plot.theme = NULL,
plot.colors = NULL,
plot.file = NULL,
plot.dir = NULL,
verbose = NULL
)
x |
Name of the genlight object containing the SNP data [required]. |
Yates |
Boolean for Yates's continuity correction. [default FALSE] |
plot.display |
Specify if plot is to be produced [default TRUE]. |
plot.theme |
Ignored (retained for backward compatibility). |
plot.colors |
Ignored (retained for backward compatibility). |
plot.file |
Ignored (retained for backward compatibility). |
plot.dir |
Ignored (retained for backward compatibility). |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default NULL, adopting the global verbosity set by gl.set.verbosity(), or 2 if no global is set]. |
The published workflow is reproduced via gl.report.hwe(direction = 'excess', min.hobs = 0.5, ...): only loci with observed heterozygosity of at least 0.5 are tested, and the false-discovery-rate adjustment is confined to that screened set, as in the original. Differences from the original implementation: the plots are gl.report.hwe's ternary plots rather than the original before/after scatter plots, and the chi-square test is performed by HardyWeinberg::HWChisq (p-values can differ marginally from the original hand-rolled test). The parameters plot.theme, plot.colors, plot.file and plot.dir are accepted for backward compatibility but ignored; a warning names any that are supplied.
A list with two elements: 'results.table' (the gl.report.hwe table for loci with significant heterozygote excess) and 'removed.loci' (a vector of the names of those loci), returned invisibly.
Author(s): Jesus Castrejon-Figueroa, Diana A Robledo-Ruiz. Custodian: Ching Ching Lau – Post to https://groups.google.com/d/forum/dartr
Robledo-Ruiz, D. A., Austin, L., Amos, J. N., Castrejon-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.report.hwe, gl.filter.hwe
Other matched report:
gl.report.allna(),
gl.report.callrate(),
gl.report.contamination(),
gl.report.factorloadings(),
gl.report.fstat(),
gl.report.hamming(),
gl.report.heterozygosity(),
gl.report.hwe(),
gl.report.ld(),
gl.report.ld.map(),
gl.report.locmetric(),
gl.report.maf(),
gl.report.overshoot(),
gl.report.pa(),
gl.report.rdepth(),
gl.report.replicates(),
gl.report.replicates.KING(),
gl.report.reproducibility(),
gl.report.secondaries(),
gl.report.taglength()
if (isTRUE(getOption("dartR_fbm"))) LBP <- gl.gen2fbm(LBP)
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.