Description Usage Arguments Value Examples
Functions to generate genetic data in the form of single
nucleotide variants (SNVs). The function
generate_singleton_data
generates singletons (i.e. SNVs with
one observed minor allele); generate_doubleton_data
generates doubletons (i.e. SNVs with two observed minor alleles), and the
function generate_genodata
generates n_ind
observations of n_SNV
SNVs with random minor allele frequencies.
1 2 3 4 5 | generate_genodata(n_SNV = 100, n_ind = 1000)
generate_singleton_data(n_SNV = 100, n_ind = 1000)
generate_doubleton_data(n_SNV = 100, n_ind = 1000)
|
n_SNV |
Integer specifying the number of SNVs that are generated. |
n_ind |
Integer specifying the number of observations that are generated. |
A dataframe containing n_ind
observations of n_SNV
SNVs.
1 2 3 4 5 6 7 8 9 | set.seed(10)
genodata1 <- generate_singleton_data()
compute_MAF(genodata1)
genodata2 <- generate_doubleton_data()
compute_MAF(genodata2)
genodata3 <- generate_genodata()
compute_MAF(genodata3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.