The genetic model of the disease needs to be specified in this function.
If genetic.model="general"
, there is no link between the GRR for the heterozygous genotype and the GRR for the homozygous alternative genotype.
Therefore, the user has to give two matrices of GRR, one for the heterozygous genotype, the other for the homozygous alternative genotype.
If genetic.model="multiplicative"
, we assume that the the GRR for the homozygous alternative genotype is the square of the GRR for the heterozygous genotype.
If genetic.model="dominant"
, we assume that the GRR for the heterozygous genotype and the GRR for the homozygous alternative genotype are equal.
If genetic.model="recessive"
, we assume that the GRR for the heterozygous genotype is equal to 1: the GRR given is the one associated to the homozygous alternative genotype.
GRR.matrix.del
contains GRR values as if all variants are deleterious. These values will be used only for the proportion p.causal
of variants that will be sampled as causal.
If selected.controls
= T, genotypic frequencies in the control group are computed from genotypic frequencies in the cases groups and the prevalence of the disease.
If FALSE, genotypic frequencies in the control group are computed from allelic frequencies under Hardy-Weinberg equilibrium.
The files Kryukov
or GnomADgenes
available with the package Ravages can be used as the argument genes.maf
.
If GRR.matrix.del
(or GRR.matrix.pro
) has been generated using the function GRR.matrix
, the arguments genes.maf
and select.gene
should have
the same value as in GRR.matrix
.
Only non-monomorphic variants are kept for the simulations.
Causal variants that have been sampled in each group of individuals are indicated in x@ped$Causal
.