Description Usage Arguments Value Examples
counts alleles from a geno_counts matrix
1 | alle_freqs(x, proportion = T, smidge = 0.5)
|
x |
the geno counts matrix |
proportion |
if false it returns the counts. if true the proportions (summing to one) |
smidge |
small amount to add to count of each allele (could be useful if there are zero counts on some alleles) |
A matrix with 2 rows (corresponding to alleles 0 and 1) and L columns.
1 2 3 4 | snp_genos <- get_snp_genos(fs_dev_test_data$plain_snp_data)
snp_indics <- genos_to_indicators(g = snp_genos$mat)
geno_counts <- count_genos(snp_indics)
afreqs <- alle_freqs(geno_counts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.