reduce.allele: Remove low variance alleles (dimensionality reduction)

Description Usage Arguments Value

View source: R/reduce.allele.R

Description

This function helps remove alleles that have low variance in the data set such that it can speed up further analyses for a large data set (e.g., > 10K SNPs).

Usage

1
reduce.allele(x, p = 0.95)

Arguments

x

A returned object (a list) from the function read.genpop().

p

A threshold of variance for the alleles to be removed. For example, if p = 0.95 (default setting), an allele occupied more than 95 percents across all the samples will be removed.

Value

This function return the same object as the function read.genpop() except that the number of columns in the matrix [[1]] is reduced and so is the locus name [[3]].


assignPOP documentation built on Oct. 28, 2021, 1:06 a.m.