simulGenosDose: Genotypes

View source: R/quantgen.R

simulGenosDoseR Documentation

Genotypes

Description

Simulate SNP genotypes as allele dose additively encoded, i.e. 0,1,2.

Usage

simulGenosDose(nb.genos, nb.snps, geno.ids = NULL, snp.ids = NULL, mafs = NULL)

Arguments

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

Value

matrix with genotypes in rows and SNPs in columns

Author(s)

Peter Carbonetto [aut], Timothee Flutre [ctb]


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.