The different ways genes and their alleles interact during the transmission of genetic traits that effect the outcome of gene expression.