View source: R/inferAncestry.R
inferAncestry.default | R Documentation |
Infer anestry with KNN
## Default S3 method:
inferAncestry(testSet, trainSet, ancestry, k = 5)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.