Converts bi-allelic SNPs hierfstat format to dosage format, the number of alternate allele copies at a locus for an individual, i.e. 11 -> 0; 12 or 21 >1 and 22 ->2
a hierfstat data frame without the first column (the population identifier), individuals in rows, columns with individual genotypes encoded as 11, 12, 21 and 22
whether the data set is from a diploid organism
a matrix containing allelic dosages
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.