inferAncestry.sampleDataset: Infer sample ancestry

View source: R/inferAncestry.R

inferAncestry.sampleDatasetR Documentation

Infer sample ancestry

Description

Infer sample ancestry

Usage

## S3 method for class 'sampleDataset'
inferAncestry(object, trainSet, knownAncestry,
  nPC = 3, k = 5)

Arguments

object

Sample Dataset object for Ancestry predition

trainSet

data frame with genotype PCs for each sample with known ancestry

knownAncestry

a vector with known ancestry for each sample in same order of trainSet

nPC

Use first n PCs to predict ancestry


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