simulGenosDose | R Documentation |
Simulate SNP genotypes as allele dose additively encoded, i.e. 0,1,2.
simulGenosDose(nb.genos, nb.snps, geno.ids = NULL, snp.ids = NULL, mafs = NULL)
nb.genos |
number of genotypes (i.e. individuals) |
nb.snps |
number of SNPs |
geno.ids |
vector of genotype identifiers (if NULL, will be "geno001", etc) |
snp.ids |
vector of SNP identifiers (if NULL, will be "snp001", etc) |
mafs |
vector of minor allele frequencies; by default, they are uniformly distributed between 0.05 and 0.5 |
matrix with genotypes in rows and SNPs in columns
Peter Carbonetto [aut], Timothee Flutre [ctb]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.