View source: R/gl.filter.heterozygosity.r
gl.filter.heterozygosity | R Documentation |
Calculates the observed heterozygosity for each individual in a genlight object and filters individuals based on specified threshold values. Use gl.report.heterozygosity to determine the appropriate thresholds.
gl.filter.heterozygosity(x, t.upper = 0.7, t.lower = 0, verbose = NULL)
x |
A genlight object containing the SNP genotypes [required]. |
t.upper |
Filter individuals > the threshold [default 0.7]. |
t.lower |
Filter individuals < the threshold [default 0]. |
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]. |
The filtered genlight object.
Custodian: Luis Mijangos – Post to https://groups.google.com/d/forum/dartr
Other filter functions:
gl.filter.allna()
,
gl.filter.callrate()
,
gl.filter.hwe()
,
gl.filter.ld()
,
gl.filter.locmetric()
,
gl.filter.maf()
,
gl.filter.monomorphs()
,
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()
result <- gl.filter.heterozygosity(testset.gl,t.upper=0.06,verbose=3)
tmp <- gl.report.heterozygosity(result,method='ind')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.