Abstract
Background
Genomic data are used in animal breeding to assist genetic evaluation. Several models to estimate genomic breeding values have been studied. In general, two approaches have been used. One approach estimates the marker effects first and then, genomic breeding values are obtained by summing marker effects. In the second approach, genomic breeding values are estimated directly using an equivalent model with a genomic relationship matrix. Allele coding is the method chosen to assign values to the regression coefficients in the statistical model. A common allele coding is zero for the homozygous genotype of the first allele, one for the heterozygote, and two for the homozygous genotype for the other allele. Another common allele coding changes these regression coefficients by subtracting a value from each marker such that the mean of regression coefficients is zero within each marker. We call this centered allele coding. This study considered effects of different allele coding methods on inference. Both marker-based and equivalent models were considered, and restricted maximum likelihood and Bayesian methods were used in inference.
Results
Theoretical derivations showed that parameter estimates and estimated marker effects in marker-based models are the same irrespective of the allele coding, provided that the model has a fixed general mean. For the equivalent models, the same results hold, even though different allele coding methods lead to different genomic relationship matrices. Calculated genomic breeding values are independent of allele coding when the estimate of the general mean is included into the values. Reliabilities of estimated genomic breeding values calculated using elements of the inverse of the coefficient matrix depend on the allele coding because different allele coding methods imply different models. Finally, allele coding affects the mixing of Markov chain Monte Carlo algorithms, with the centered coding being the best.
Conclusions
Different allele coding methods lead to the same inference in the marker-based and equivalent models when a fixed general mean is included in the model. However, reliabilities of genomic breeding values are affected by the allele coding method used. The centered coding has some numerical advantages when Markov chain Monte Carlo methods are used.
Similar content being viewed by others
Background
There has been growing interest in the use of marker-based models [1] in recent years. In studies using these models, descriptions of the effect of allele coding system on inference and computations are often vague or missing. By allele coding, we refer to the coefficients in the marker matrix of marker-based models. Coefficients, commonly used for allele coding of a marker is 0 when the individual is homozygous for the first allele, 1 when the individual is heterozygous, and 2 when the individual is homozygous for the second allele. Depending on which of the alleles has been chosen as the first allele, the coefficients are different. Thus, this allele coding method does not give unique regression coefficients.
There are other allele coding methods such as the one that use coefficients -1, 0, and 1 instead of 0, 1, and 2, respectively. Different allele coding methods affect coefficients in the statistical models but they do not seem to change the amount of information for statistical inference. Hence, one would expect that the use of different allele coding methods would lead to the same inference. However, allele coding can be of vital importance in computations. First, convergence of iterative methods such as Markov chain Monte Carlo (McMC) methods often used in Bayesian inference can be assumed to be affected by the allele coding method used because different allele coding methods change the correlation structure between marker effects. Second, equivalent models have become popular in animal breeding [2, 3]. An important concept in these methods is the genomic relationship matrix. Differences in allele coding will yield different genomic relationship matrices [4]. Thus, some elements of the inverse of the coefficient matrix can be different and, consequently, reliabilities may be different.
We investigated effects of different allele coding methods using theoretical derivations and a practical example when restricted maximum likelihood (REML) or Bayesian inference is used. Effects on parameter estimates, reliabilities, and McMC computations were studied. We considered marker models and their equivalent breeding value models.
Methods
Genomic marker model
Let us consider a univariate linear mixed effects model for genomic marker effect estimation, e.g. [1],
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ1_HTML.gif)
where y is n × 1 vector of observations, μ is the general mean, Z is a n × m matrix containing a column for each marker locus, g is a m × 1 vector of random SNP marker effects, and e is a random residual vector. There can be other fixed or random effects in the model but their inclusion does not change the following derivations.
Allele coding methods
There are several alternatives for coding the coefficients in the Z matrix. Four allele coding systems are considered. A simple transformation can be made from one allele coding system to another. Our basic allele coding system counts the number of copies of one of the alleles. Depending on which of the alleles is counted, the matrix can be different. In the allele coding system 012, the number of copies of the less frequent allele is counted. Thus, the coefficient is 0 if the individual is homozygous for the more frequent allele, 1 if it is heterozygous, or 2 if it is homozygous for the less frequent allele. In this case, the Z matrix for the basic allele coding system 012 is denoted by Z0.
A general form for the allele coding transformation from the basic allele coding system is where v
m
is a m × 1 vector. This allows many types of allele coding methods. Note that the transformation keeps distances between allele codes within a marker the same. So, the coding 0,1,2 can be changed to - 1,0,1 or 0.5, 1.5, 2.5 by this transformation, but not to -10,0,10.
We define the centered allele coding system as Z
c
= Z0 - P
c
, where each column of the matrix P
c
contains the average allele count for the corresponding marker column. Thus, summing values in each column will give a vector of zeros, i.e., is a vector of zeros. For the centered allele coding system, we have
, i.e.,
. Note that v
m
/ 2 gives the allele frequencies of the markers in the data.
The allele coding transformation allows shifts in the allele codes. The 101 allele coding system is such that - 1 is assigned to the genotype homozygous for the more frequent allele, 0 to the heterozygous individual, and 1 to the individual homozygous for the less frequent allele. For the 101 allele coding system, we have v m = 1 m . The 101 allele coding system is equal to the centered allele coding system when all allele frequencies are equal to 0.5.
In the following, the derivations will use the general allele coding transformation. The matrix Z0 is unique. However, in general the decision on which of the alleles to count is arbitrary. Let the 210 allele coding system be such that the more frequent allele is counted. Then the Z matrix for the 210 allele coding system can be calculated from the 012 coding matrix by where 1
n
is n × 1 vector of ones. The 210 allele coding system is the opposite to the 012 allele coding system but results in this paper apply to the 210 allele coding system as well, with some modifications mentioned separately.
Different allele coding methods imply different models (1) and different models may lead to different parameter estimates. However, the inference considered in this paper is not affected by allele coding, as we demonstrate below.
Inference in marker-based model
Variance component estimation by restricted maximum likelihood (REML), prediction of random effects, and Bayesian inference are all based on the likelihood after marginalization of the fixed effects, i.e., the fixed effects have been integrated out. Bayesian inference requires even more marginalization. In order to show that inference is not affected by allele coding, it is sufficient to show that the likelihood after integrating out the general mean is the same irrespective of allele coding. The following derivation makes no assumptions on the prior densities of marker effects. Thus, the results apply to many models, including BLUP, BayesA and BayesB in [1].
The marginal likelihood for the mixed effects model is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equa_HTML.gif)
where p(y | μ, g, θ ) is the conditional density of y, often a Gaussian density, and θ contains all parameters in the distribution of e, often only the residual variance parameter . Using the transformation result (7) in Appendix A and a change of integration variable
, we can write
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equb_HTML.gif)
where p0 denotes the 012 allele coding system. Hence, the marginal likelihood does not depend on allele coding, a property used in the following derivations.
The REML-likelihood is defined when g and e are multivariate Gaussian distributed, and equals
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equc_HTML.gif)
where η contains all parameters in the distribution of g, commonly only the genetic marker variance parameter . This likelihood is independent of allele coding, and, hence, REML parameter estimation is independent of allele coding. Note that maximum likelihood estimation is based on L(μ, θ , η ) = ∫ p(y | μ, g, θ )p(g | η )d g and is affected by allele coding because, in this case, the general mean is not integrated out.
BLUP estimation of marker effects g assumes that the variance parameters (θ, η ) are known. The conditional distribution p(g | y, θ , η ) = p(y | g, θ )p(g | η )/L(θ, η ) is independent of allele coding. Hence, BLUP ĝ and associated uncertainties do not depend on the allele coding.
In Bayesian inference, the joint posterior after integrating out μ is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equd_HTML.gif)
where p(θ, η) is the joint prior for the parameters, and the denominator p(y) is the integral of the numerator. All terms in the numerator are independent of allele coding, and by marginalization p(y) satisfies the same. Hence, p(g, θ , η | y) does not depend on allele coding.
The general intercept μ is, however, not independent of allele coding. For simplicity of the argument, we assume that parameters (θ, η ) are known, and omit showing these values. According to the transformation result (8) in Appendix A and a change of integration variable , the conditional expectation of the general mean is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ2_HTML.gif)
where p0 denotes density for the 012 allele coding, and is the conditional expectation of the general mean when using the 012 allele coding. Thus, the general mean estimate is different by allele coding when
is not zero. When g and e are multivariate Gaussian distributed, the conditional expectations ĝ and
equal the BLUP and BLUE estimates, respectively.
Finally, the inference is indifferent to the allele being counted. This is demonstrated by studying the centered coding system and assuming that allele in the first marker is counted in the opposite way, i.e., the first column in Z is minus the first column in Z
c
, or z1 = -zc 1. We see that where the entries in
are equal to the entries in g, except for the first entry which equals minus the first entry in g. Since g and
have the same distribution, these two models are equivalent.
Genomic breeding values
Estimating breeding values
In breeding value evaluation, the main interest is in estimation of genomic breeding values for the genotyped animals. In other words, estimation of where ĝ are solutions to the marker effects by a marker-based model like model (1). Because the marker effect solutions are the same for different allele coding systems, the estimated genomic breeding values are different due to differences in the coefficient matrix Z.
Allele coding does not, however, change relative differences between the estimated genomic breeding values, because shows that they are just shifted by a constant. Let us define complete genomic breeding values as
. Substituting
and using equation (2) we obtain
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Eque_HTML.gif)
Consequently, the estimated complete breeding values are the same irrespective of allele coding.
Equivalent model and allele coding
Assume that the marker effects have a Gaussian distribution where I
m
is an m × m identity matrix. The breeding values a = Zg can be calculated directly without estimating ĝ by the model [2, 3]
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equf_HTML.gif)
where the breeding values have prior density of . Often the covariance matrix of the breeding values is scaled by a value such as
where p
i
is the allele frequency of marker i. Then, the breeding values have a prior density of
where the genomic relationship matrix is
and genetic variance is
. Assuming that the residual distribution is e ~ N (0, R), then the mixed model equations for the equivalent model are
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ3_HTML.gif)
The breeding value solutions â from these mixed model equations (3) are the same as the genomic breeding values calculated by where
are marker effects estimated by the marker-based model (1).
Therefore, the conclusion for the marker-based models about relative differences between genomic breeding values being unaffected by allele coding is also true for the equivalent model, although different allele coding methods lead to different genomic relationship matrices. Similarly, variance component estimation by REML and Bayesian methods are unaffected by the allele coding due to equivalence of models with the marker-based models.
The mixed model equations in (3) are not well-defined when the genomic relationship matrix G is singular. However, mixed model equations not requiring an invertible G matrix do exist; see page 48 in [5]. The genomic relationship matrix G can be singular for several reasons. For example, there can be identical twins or clones that have the same genotypes. In addition, for the centered allele coding system the genomic relationship matrix is . The last row of
is equal to the sum of all the other rows. Hence, Z
c
is not of full rank, and G
c
is singular.
Prediction error variances and reliabilities
Gaussian models are often used in practical genomic evaluation of animals. In these models, reliabilities of estimated breeding values â are calculated using elements of the inverse of the mixed model equations such as (3). Reliability of â i is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ4_HTML.gif)
where PEV i is the prediction error variance, i.e., Var(a i | y), of animal i, and G ii is the diagonal element of animal i in the genomic relationship matrix G; e.g. [6], p. 51 in [7]. The prediction error variance for animal i is the diagonal element of the inverse of the coefficient matrix of mixed model equations (3) for animal i. Alternatively,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ5_HTML.gif)
where Cg is the genomic marker effect submatrix in the inverse of the coefficient matrix of the mixed model equation for marker-based model (1) (see Appendix B). The submatrix Cg = Var(g | y) is the same irrespective of the allele coding method used as shown in the chapter on inference on marker-based models. Because the coefficient matrix Z is different depending on allele coding, PEV is also different depending on allele coding. Consequently, the reliability of â depends on allele coding.
More generally, for any of the models considered in this paper, a = Zg where p(g | y) is independent of allele coding and Z depends on allele coding. Therefore, the distribution p(a | y) and, in particular, the variance-covariance matrix Var(a | y) and reliabilities of â depend on allele coding.
The complete breeding value distribution p(a d | y) does not depend on allele coding, unlike PEV associated with â. The proof is based on the demonstration that when applying any function f, the expectations are independent of the allele coding system,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equg_HTML.gif)
where E0 is the expectation when using the basic allele coding method. Therefore, the variance-covariance matrix Var(a d | y) and all higher order moments of the distribution are independent of allele coding. However, the result does not provide actual formulas for the moments.
A closed form formula of the variance-covariance matrix is derived for a Gaussian model. Assume and e ~ N (0, R). For this model, in Appendix B we obtain that
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equh_HTML.gif)
where and
. As demonstrated earlier in this section, this variance-covariance matrix is independent of allele coding. When
, the variance-covariance matrix simplifies to
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ6_HTML.gif)
where Z c is based on the centered allele coding method. The diagonal elements in (6) are different from the PEV i s in (4) because they contain uncertainty about the unknown mean μ as well.
For the complete breeding values a d , we have shown above that prediction error variances are independent of allele coding and we have provided a formula for the Gaussian model. Reliabilities of â d , however, can not be defined in a meaningful way. Substituting the diagonal elements from (6) for the PEV i s in (4) is not appropriate since the denominator in (4) is Var(a i ) not Var(a d ) ii . The denominator in the reliability formula should contain the marginal (unconditional) variance Var(a d ) ii = ∫ Var(μ + a i | μ)dμ, but this variance is infinite.
McMC computations
Theoretical convergence rate
The convergence and mixing of an McMC algorithm depend on the parametrization of the model and on the algorithm used. Theoretical results about the geometric rate of convergence to the stationary distribution for Gibbs sampling algorithms are shown in [8], and as mentioned in [9] this rate also describes the mixing of the algorithm. Below we show specific results about the convergence rate ρ for Gibbs sampling algorithms for simulating from [μ, g | y] in the marker-based model (1), where g is Gaussian and e is Gaussian
. These results provide some ideas about more general models and algorithms where theoretical results cannot be obtained.
Section 2.2 in [8] contains results about various Gibbs-sampling schemes for simulating from a multivariate distribution. Here we apply these results (see Appendix C for details) to two types of Gibbs updating schemes. The first scheme iterates between updating μ and a block of all components in g, and will be called the block updating scheme hereinafter. The second scheme updates μ, g1, ..., g m sequentially one at a time, and will be called the single site updating scheme.
For the block scheme, the convergence rate is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equi_HTML.gif)
where is a m × 1 vector, and
.
For the single site scheme, the convergence rate is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equj_HTML.gif)
where L g is the matrix containing the lower triangle and the diagonal of D-1C g , D is the diagonal of C g , and U g is the matrix containing the upper triangle of D-1C g . This single site Gibbs sampling algorithm is the stochastic counterpart of the Gauss-Seidel algorithm for solving the mixed model equations, and the convergence results are similar, see [10].
When the centered allele coding method is used,
is a vector of zeros and, hence, ρ1 = 0. The centered allele coding method breaks dependency between the general mean and genetic marker effects, as seen from the variance-covariance matrix (derived in Appendix B for a more general situation)
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equk_HTML.gif)
Consequently, absorption of the general mean is done without needing to compute absorption explicitly. Note that, in general, this holds only when the residual variance-covariance matrix is . For the block McMC scheme, the convergence and mixing of the algorithms are of the same order as for non-McMC algorithms that simulate directly from the distribution of interest. For the single site McMC scheme, the centered allele coding method still breaks the dependence between the general mean and marker effects, but as ρ2> 0 illustrates, the individual marker effects g1 , ..., g
m
are not independent and the McMC samples are autocorrelated.
Data and methods
Data
Data for the XII th QTLMAS workshop [11] were used to illustrate the theory. The simulated data had four generations. In each generation, 15 sires and 150 dams were selected randomly to produce the next generation. Each sire was mated to 10 dams and each mating produced 10 progeny. Thus, the base generation had 165 individuals, and the subsequent three generations, 1500 individuals each. In total, the analyzed data had 4665 animals with phenotypes. The simulated trait had a heritability of 0.30. The data had 6000 equally spaced SNP markers on six chromosomes. We deleted markers that had a minor allele frequency less than 1% among the phenotyped individuals and this reduced the number of markers to 5896.
The 012 allele coding method was used to make the base data set. So, the least frequent allele was counted. In addition, 210, 101, and centered allele coding data sets were analyzed.
Variance component analysis
The marker-based model (1) with common genetic variance was used to analyze the data: and
. McMC computations by a single site updating Gibbs sampler were used to calculate posterior mean estimates of the location (μ, g) and dispersion
parameters. The length of the McMC chain was 100000 iterations, of which the burn-in period of 10000 was omitted. Every tenth sample was saved, giving 9000 saved samples. Effective sample sizes were calculated for all parameters using the initial monotone sequence approach [12]. The approach estimates the number of independent samples from the post burn-in samples.
Theoretical convergence rates were calculated for all the allele coding methods in the single site and block updating schemes. Here, the convergence rate also describes the mixing of the McMC chain and was measured by the correlation between successive McMC samples. Because of the Markov property, the k-lag correlation is ρk , where ρ is the convergence rate and k is the lag or distance between samples. In order to compare the theoretical convergence rate to the observed effective sample size, theoretical mixing was calculated relative to the 012 allele coding system as follows. Let ρ012 be the convergence rate from the 012 allele coding system, and ρ the convergence rates from another allele coding system. Mixing of the other allele coding system is equal to mixing of the 012 allele coding system when every kth sample is taken from the McMC samples and ρ012 = ρk . Thus, the relative mixing is k = log(ρ012)/ log(ρ).
Parameter estimation by REML for both the marker-based model and the equivalent model and for all four allele coding methods was done using software DMU [13]. Both AI-REML and EM-REML were investigated. For the equivalent model and the centered allele coding method, the singular genomic relationship matrix was modified by multiplying the diagonals by 1.001 in order to be able invert the matrix. The effect of allele coding on convergence was investigated, and it was checked that the parameter estimates were the same.
Reliabilities of genomic breeding values
Reliabilities were calculated by different allele coding methods using (4) and elements of the inverse of the mixed model equations. The variance components were those estimated by the centered allele coding method using the single site McMC approach. Prediction error variances were calculated by both the marker-based model equations (5) and equivalent model equations (3). Mean, minimum, maximum and standard deviations of reliabilities were calculated for all allele coding methods. Also, correlations between reliabilities from all allele coding methods were calculated.
Results and Discussion
Posterior mean estimates of marker effects and variance components were almost equal between different allele coding methods (Table 1). Correlations of estimates of the marker effects between allele coding methods were higher than 99.98%. Only the general mean (μ) had a different estimate, as expected. The estimated variance components agreed well with those used to simulate the data. Additive genetic variance was , where
, and p
i
are the observed allele frequencies in the reference data. Thus, the heritability estimate was
, compared to the simulated value of 0.30.
Effective sample sizes differed depending on allele coding method. The centered allele coding method had the best mixing, and the 210 allele coding method had the worst (Table 2). In particular, the increase in effective sample size was largest for the general mean. For the centered allele coding method, the general mean was independent from the marker effect g, which led to excellent mixing of this parameter. In general, the marker effects showed excellent mixing. With all allele coding methods, effective sample sizes were at least 5500 for all marker effects, and on average were equal to about 8800.
Theoretical convergence rates (Table 3) displayed the same results as the effective sample sizes discussed above. Note that our Gibbs sampler used single site updates for all parameters. For the single site updating algorithm, the 210 allele coding system was predicted to need 5.64 times more iterations than the 012 allele coding system. The number of effective samples for the general mean parameter (μ) was 5.11 times bigger for the 012 than for the 210 allele coding system. These figures were 0.48 and 0.48 for the 101 allele coding system, and 0.070 and 0.0051 for the centered allele coding system. Theoretical convergence rates for the block Gibbs sampler showed the same pattern as for the single site update (Table 3).
Surprisingly, the block Gibbs sampler was predicted to be worse than the single site Gibbs sampler for all allele coding systems except for the centered allele coding system. However, it is well known in the literature that block-updating schemes may sometimes be worse than single site updating schemes, for examples see [8]. The excellent convergence rate of the block Gibbs sampler with centered allele coding was expected because, in this case, the Gibbs sampler is equal to Monte Carlo sampling.
Table 4 shows convergence of REML in parameter estimation. For the marker-based model, the convergence was independent of the allele coding system, whereas for the equivalent model, the convergence was fastest for the centered coding system and slowest for the 210 coding system, although the differences were small. The parameter estimates obtained (Table 5) were the same, with the exception of for the centered coding system. The difference is due to the need to make the genomic relationship matrix G
c
to be full rank by multiplication of the diagonals by 1.001. In summary, REML parameter estimation is only slightly affected by allele coding.
Reliabilities were affected depending on the allele coding method used. Differences were large (Table 6). Average reliabilities ranged from 0.37 with the 210 allele coding method to 0.80 with the centered allele coding method. The centered allele coding method gave higher reliabilities than achieved by any of the other allele coding methods. Reliabilities calculated by different allele coding methods were also different as judged by the correlation to each other (Table 7). Reliabilities calculated by the marker-based model and the equivalent model approaches were equal within the numerical rounding error.
The observed large differences in reliabilities using different allele coding methods can be explained by differences in estimation uncertainty. Different allele coding systems have different Z matrices. Consider first the 012 and 210 allele coding methods. The 012 allele coding system has a 0 coefficient when the individual is homozygous for the more frequent allele while the 210 allele coding system has a coefficient of 2 instead. In the marker-based model, uncertainty or the inverse of the coefficient matrix is the same irrespective of allele coding method. Reliability is calculated by multiplying the marker uncertainty by the Z matrix (5). Consequently, uncertainty is less in the 012 allele coding system than in the 210 allele coding system because the more frequent homozygous allele multiplies the marker solution and uncertainty by zero. Thus, homozygous genotypes for the more frequent allele do not increase uncertainty when estimating genomic breeding values. Thus, the 012 allele coding system will yield higher reliabilities than the 210 allele coding system, as was observed. This argument can be generalized as follows. In the genomic model considered, uncertainty of a genotype in estimating genomic breeding value is valued relative to a chosen base genotype. The further away an observed genotype is from the base genotype, the larger the coefficient in absolute value in the Z matrix and the higher the uncertainty in genomic breeding value. In the 012 allele coding system, the base genotype is homozygous for the more frequent allele, while in the 210 allele coding, it is homozygous for the less frequent allele. In the 101 allele coding system the base genotype is the heterozygote. The higher the number of heterozygous individuals is in the data the smaller will the uncertainty be, i.e., the higher the reliability will be for the 101 allele coding system. For the centered allele coding system the base genotype is the average genotype in the data. Thus, for this allele coding system the base population is roughly the population we work with [14], and it has the smallest average distance of observed genotypes from the base genotype. In practice, this can be expected to lead to the highest reliabilities.
Different allele coding systems have different model design matrices Z, and, hence, imply different models. Thus, reliabilities from different allele coding systems are in fact from different statistical models. Comparison of reliabilities from different models is meaningless. However, the different allele coding systems lead to the same parameter estimates. If the correct allele coding method, i.e., statistical model, is known, it should be used. Because the true model is unknown and comparison of reliabilities by allele coding method is meaningless, some principles must be used to decide on which allele coding method should be used. These principles will not guarantee the use of a correct model or correct reliabilities. One such principle should be consistency of reliabilities between evaluations. The centered allele coding method changes model from one evaluation to the next because more marker data accumulate. Hence, according to the consistency principle, it cannot be recommended to computate reliabilities. Likewise, the base genotype in the 012 and 210 allele coding methods depend also on the observed allele frequencies, i.e., marker data.
The centered allele coding method is similar to that introduced in [4] where the allele frequencies were from an unselected base population. It was used in order to "give more credit to rare alleles than to common alleles when calculating genomic relationships". As shown, inference is the same irrespective of the allele coding method when a fixed general mean is in the model. However, reliabilities are affected as shown. The use of base population allele frequencies in the centered allele coding method would remove the above mentioned problem of inconsistency between evaluations, but estimating these allele frequencies is elusive. Recently, [15] presented a method for adjusting the G c relationship matrix to become a relationship matrix relative to the base population, thereby avoiding the estimation of base population allele frequencies.
The results in this paper are based on the assumption that phenotypes and genotypes are available for all animals in the analysis. This assumption may often not be satisfied. Models based on an extension of the genomic relationship matrix to include also non-genotyped animals have been presented by [16–18]. The results in the present paper about parameter estimates and estimated breeding values not depending on allele coding do not carry over to the models with an extended genomic relationship matrix.
Conclusions
We showed that, in theory, different allele coding methods led to the same inference in marker-based models when the model has a fixed general mean effect. Practical analyses led to the same conclusions. Also in theory, the centered allele coding method was expected to give better mixing properties when Markov chain Monte Carlo methods were used. This was also observed in practice. When an equivalent breeding value model was used, different allele coding methods proved to lead to the same inference as in the marker-based model. However, reliabilities of breeding values depend on the chosen allele coding system because different allele coding methods change the amount of uncertainty in the estimated breeding values.
Appendix A
In the following, we consider the effect of allele coding method on the densities p(y | μ, g) and p(μ, g, | y). For simplicity of presentation, the parameters in the distribution of g and e are omitted. Let p0 denote density for 012 allele coding. Because the location parameters μ and marker effects g relate to the observations y only through 1
n
μ + Zg, we first study this term. By substituting into the term, we have
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equl_HTML.gif)
So, when different allele coding systems are used, the densities have equality by
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ7_HTML.gif)
By changing the integration variable , we obtain ∫ p (y | μ, g) dμ = ∫ p
0
(y | μ
0
, g) dμ
0
and, hence, p(y) = ∫ ∫ p(y | μ, g)p(g)dμd g = p0(y). From these results, we see that
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equ8_HTML.gif)
The results (7) and (8) are fairly general in terms of distributional assumptions. The only requirements are that p(y | μ, g) depends on μ and g only through 1 n μ + Zg, that an improper uniform prior is used for μ, and that p(y) is finite. The later requirement is to assure the posterior distribution becomes a proper distribution, and this has to be proven for a model to be valid when an improper prior is used.
When e ~ N(0, R), it is not difficult to show that
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equm_HTML.gif)
with . Therefore, ∫ p (y | μ, g) dμ < c0 where the constant c0 is independent of g. Thus, p(y) = ∫ ∫ p(y | μ, g)dμp(g)d g < c0 ∫ p(g)d g = c0 is finite, irrespective of distribution of the marker effects g.
Appendix B
We consider a Gaussian distribution model where and e ~ N (0, R). Consequently, the distribution [μ, g | y] is a multivariate Gaussian distribution. In the following, we derive the variance-covariance matrix for this distribution. The conditional density is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equn_HTML.gif)
where
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equo_HTML.gif)
With ,
and
. The matrix Q is the coefficient matrix in the mixed model equations and the inverse of this matrix is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equp_HTML.gif)
where . Note that the submatrix Cg = Var(g | y) is independent of allele coding, because, as shown in the main text, p(g | y) does not depend on allele coding.
Variance-covariance matrix for the complete breeding value is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equq_HTML.gif)
Appendix C
The results in [8] state that the convergence rate of a Gibbs sampler is equal to the largest modulus eigenvalue of a certain matrix B where the eigenvalues can be complex numbers. As mentioned in [9] this convergence rate is also a a measure of correlation between successive McMC samples, i.e., mixing of the algorithm. The closer the convergence rate is to zero the less correlated are the successive samples.
The B matrix is constructed as follows. Let Q be the inverse of the variance-covariance matrix of the target multivariate normal distribution, in our case the coefficient matrix in the mixed model equations. Assume that a Gibbs sampling scheme is used where the variables are grouped into s blocks and Q is split accordingly into s blocks. First, define
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equr_HTML.gif)
Let L be the block lower triangular matrix with blocks in the lower diagonal being those of A, and let U = A - L. Thus, U is a strictly upper triangle matrix with zeros in the diagonal. Then the matrix of interest is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equs_HTML.gif)
We consider the genomic marker model (1) where g is Gaussian and e is Gaussian
. The conditional distribution [μ, g | y] is a multivariate normal distribution with some mean vector and a variance-covariance matrix with inverse
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equt_HTML.gif)
where ; see Appendix B. We consider two McMC updating schemes. The first scheme iterates two blocks: μ and g. The second scheme updates successively all parameters: μ, g1, ..., g
m
. For the first McMC updating scheme we have
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equu_HTML.gif)
where is a m × 1 vector. Hence,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equv_HTML.gif)
The convergence rate is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equw_HTML.gif)
where ρ lv (B) of a matrix B is a notation for the maximum modulus eigenvalue of B. The final equality follows from a general property for a square matrix form Cvv' where v is a vector, saying that it only has one eigenvalue different from zero which is equal to v'Cv.
For the second McMC update scheme,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equx_HTML.gif)
where D is the diagonal of C g . Hence,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equy_HTML.gif)
where U g is an upper triangular matrix containing the upper triangle of D-1C g and L g is a matrix containing the diagonal and lower triangle of D-1C g . Therefore,
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equz_HTML.gif)
The convergence rate is
![](http://media.springernature.com/full/springer-static/image/art%3A10.1186%2F1297-9686-43-25/MediaObjects/12711_2011_Article_2499_Equaa_HTML.gif)
References
Meuwissen THE, Hayes BJ, Goddard ME: Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001, 157: 1819-1829.
Goddard M: Genomic selection: prediction of accuracy and maximisation of long term response. Genetica. 2009, 136: 245-257. 10.1007/s10709-008-9308-0.
Strandén I, Garrick DJ: Technical note: Derivation of equivalent computing algorithms for genomic predictions and reliabilities of animal merit. J Dairy Sci. 2009, 92: 2971-2975. 10.3168/jds.2008-1929.
VanRaden PM: Efficient methods to compute genomic predictions. J Dairy Sci. 2008, 91: 4414-4423. 10.3168/jds.2007-0980.
Henderson CR: Applications of linear models in animal breeding. 1984, Guelph, Ontario, Canada: University of Guelph
Henderson CR: Best linear unbiased estimation and prediction under a selection model. Biometrics. 1975, 31: 423-447. 10.2307/2529430.
Mrode RA: Linear models for the prediction of animal breeding values. 2005, Wallingford, UK: CABI Publishing
Roberts GO, Sahu SK: Updating schemes, correlation structure, blocking and parameterization for the Gibbs sampler. J Roy Statist Soc Ser B. 1997, 59: 291-317. 10.1111/1467-9868.00070.
Papaspiliopoulos O, Roberts GO, Sköld M: A general framework for the parametrization of hierarchical models. Statist Sci. 2007, 22: 59-73. 10.1214/088342307000000014.
Barrett R, Berry M, Chan TF, Demmel J, Donato J, Dongarra J, Eijkhout V, Pozo R, Romine C, Van der Vorst H: Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods. 1994, Philadelphia, PA: SIAM, 2
Crooks L, Sahana G, De Koning DJ, Lund MS, Carlborg Ö: Comparison of analyses of the QTLMAS XII common dataset. II: genome-wide association and fine mapping. BMC proceedings, BioMed Central Ltd. 2009, 3: S2-
Geyer CJ: Practical Markov chain Monte Carlo. Statist Sci. 1992, 7: 473-483. 10.1214/ss/1177011137.
Madsen P, Jensen J: A users guide to DMU, version 6, Release 5.0. 2011, Aarhus University
Hayes BJ, Visscher PM, Goddard ME: Increased accuracy of artificial selection by using the realized relationship matrix. Genet Res. 2009, 91: 47-60. 10.1017/S0016672308009981.
Powell JE, Visscher PM, Goddard ME: Reconciling the analysis of IBD and IBS in complex trait studies. Nat Rev Genet. 2010, 11: 800-805. 10.1038/nrg2865.
Legarra A, Aguilar I, Misztal I: A relationship matrix including full pedigree and genomic information. J Dairy Sci. 2009, 92: 4656-4663. 10.3168/jds.2009-2061.
Aguilar I, Misztal I, Johnson DL, Legarra A, Tsuruta S, Lawlor TJ: Hot topic: A unified approach to utilize phenotypic, full pedigree, and genomic information for genetic evaluations of Holstein final score. J Dairy Sci. 2010, 93: 743-752. 10.3168/jds.2009-2730.
Christensen O, Lund M: Genomic prediction when some animals are not genotyped. Genet Sel Evol. 2010, 42: 2-10.1186/1297-9686-42-2.
Acknowledgements
Two anonymous reviewers are thanked for their corrections and valuable comments on the first version of the paper. IS acknowledges support from Finnish FABA funded from the TEKES (the Finnish Funding Agency for Technology and Innovation) project "Genomic information in genetic evaluations and breeding programs". OFC acknowledges support from grant 3405-10-0137 funded under the GUDP program by the Danish Ministry of Food, Agriculture and Fisheries, the Milk Levy Fund, Viking Genetics and Nordic Cattle Genetic Evaluation.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
IS wrote the first drafts of the manuscript and OFC helped to revise and finalize it. IS and OFC derived the formulae together. IS did all the data analysis except the REML computations which were done by OFC.
Rights and permissions
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Strandén, I., Christensen, O.F. Allele coding in genomic evaluation. Genet Sel Evol 43, 25 (2011). https://doi.org/10.1186/1297-9686-43-25
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1297-9686-43-25