GenGenoMat: Generate Genotype Matrix

View source: R/generate_data.R

GenGenoMatR Documentation

Generate Genotype Matrix

Description

Generate genotypes for n subject at snps variants in linkage equilibrium. Genotypes are generated such that the MAC is always >= 1.

Usage

GenGenoMat(n, snps, maf_range = c(0.001, 0.005))

Arguments

n

Sample size.

snps

Number of SNP in the gene.

maf_range

Range of minor allele frequencies: c(MIN, MAX).

Value

(n x snps) numeric matrix.


AllelicSeries documentation built on April 3, 2025, 7:46 p.m.