Description Usage Arguments Value
This function randomly assigns individuals to clusters using STRUCTURE assignment probabilities provided in the qmatrix. The qmatrix must have column 'ind', which stores individual ids.
1 2 | STRUCTURE.popgen(qmatrix = NULL, allele.dat, nclusters, stat, NA.symbol,
samp.snps, nsamp)
|
qmatrix |
Dataframe. The STRUCTURE qmatrix, with individuals in column 'ind' |
allele.dat |
Dataframe. Raw allele data (sep = '/') |
nclusters |
Integer. The number of clusters identified by STRUCTURE |
stat |
The population genetics statistic to return. Must be one of the following: 'ind.dist',
'summary', 'allele.freqs',
'heterozygosity', 'richness','fis','fst'. |
NA.symbol |
The code used to represent missing allele data |
samp.snps |
Logical. If TRUE, a specified number SNPs will be randomly sampled in each iteration to account for uncertainty and speed computations. Default is FALSE |
nsamp |
(optional) Integer of SNPs to sample during each iteration |
Summaries based on the chosen population genetic statistic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.