inferAncestry.default: Infer anestry with KNN

View source: R/inferAncestry.R

inferAncestry.defaultR Documentation

Infer anestry with KNN

Description

Infer anestry with KNN

Usage

## Default S3 method:
inferAncestry(testSet, trainSet, ancestry, k = 5)

Arguments

testSet

matrix used for test

trainSet

matrix for training PCs

ancestry

ancestries correspond to the training PCs

k

Number of nearest neighbour to use in this classfication


xiaolicbs/genotypeQC documentation built on Sept. 2, 2023, 9:31 p.m.