View source: R/utils.assignment_3.r
utils.assignment_3 | R Documentation |
This function takes one individual and estimates their probability of coming from individual populations from multilocus genotype frequencies.
utils.assignment_3(x, unknown, verbose = 2)
x |
Name of the genlight object containing the SNP data [required]. |
unknown |
Name of the individual to be assigned to a population [required]. |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2, unless specified using gl.set.verbosity]. |
This function is a re-implementation of the function multilocus_assignment from package gstudio. Description of the method used in this function can be found at: https://dyerlab.github.io/applied_population_genetics/population-assignment.html
A data.frame
consisting of assignment probabilities for each
population.
Custodian: Luis Mijangos – Post to https://groups.google.com/d/forum/dartr
require("dartR.data")
res <- utils.assignment_2(platypus.gl,unknown="T27")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.