View source: R/utils.outflank.diploids.r
utils.outflank.MakeDiploidFSTMat | R Documentation |
Creates OutFLANK input file from individual genotype info.
utils.outflank.MakeDiploidFSTMat(SNPmat, locusNames, popNames)
SNPmat |
This is an array of genotypes with a row for each individual. There should be a column for each SNP, with the number of copies of the focal allele (0, 1, or 2) for that individual. If that individual is missing data for that SNP, there should be a 9, instead. |
locusNames |
A list of names for each SNP locus. There should be the same number of locus names as there are columns in SNPmat. |
popNames |
A list of population names to give location for each individual. Typically multiple individuals will have the same popName. The list popNames should have the same length as the number of rows in SNPmat. |
Returns a data frame in the form needed for the main OutFLANK function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.