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


xiaoli0/samplyzer documentation built on Sept. 4, 2023, 9:23 p.m.