gen_tibble
objectgt_pcadapt.Rd
pcadapt is an algorithm that detects genetic markers under selection. It is based on the
principal component analysis (PCA) of the genotypes of the individuals.
The method is described in Luu et al. (2017),
See the R package pcadapt
, which provides extensive
documentation and examples.
gt_pcadapt(x, pca, k, n_cores = 1)
A gen_tibble
object.
a gt_pca
object, as returned by gt_pca_partialSVD()
or gt_pca_randomSVD()
.
Number of principal components to use in the analysis.
Number of cores to use.
An object of subclass gt_pcadapt
, a subclass of mhtest
.
Internally, this function uses the snp_pcadapt
function from the bigsnpr
package.