impute.data | R Documentation |
impute missing genotypes based on pop structure characterised using snmf
impute.data(input.file, K = NULL, no_cores = 1)
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 |
a genind object with missing data imputed
Chris Brauer
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.