impute.data: impute missing genotypes based on pop structure characterised...

impute.dataR Documentation

impute missing genotypes based on pop structure characterised using snmf

Description

impute missing genotypes based on pop structure characterised using snmf

Usage

impute.data(input.file, K = NULL, no_cores = 1)

Arguments

input.file

A genind object

K

the number of predetermined clusters in your data (suggest using smnf, ADMIXTURE or similar to explore first)

no_cores

the number of cores to use for the analysis

Value

a genind object with missing data imputed

Author(s)

Chris Brauer

Examples

 ## set directory for results to be written
 setwd("path/to/working/directory")

 # load example coordinate file
 data(rainbow.genind)

 # run analysis for K=6
 imputed.gi <- impute.data(rainbow.genind, K = 6)
 

pygmyperch/melfuR documentation built on April 19, 2024, 7:24 a.m.