Description Usage Arguments Details Value Examples
Let L be the number of loci and N the number of alleles. The data frame should have 2L columns and N rows. The rownames should be the individual names. The locus names should be the odd numbered column names. The even numbered column names are not used.
1 | get_snp_genos(GD)
|
snp_frame |
The data frame of SNPs |
A SNP allele can be denoted by any string or number or NA. Each SNP must have no more than two alleles.
This returns a list with the following components:
An L x N matrix of 0, 1, 2, or NA's
The names of the alleles. The first of these is what the "0" allele is while the second is the name of the "1" allele.
1 | snp_genos <- get_snp_genos(fs_dev_test_data$plain_snp_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.