- Open Access
A class of Bayesian methods to combine large numbers of genotyped and non-genotyped animals for whole-genome analyses
Genetics Selection Evolutionvolume 46, Article number: 50 (2014)
To obtain predictions that are not biased by selection, the conditional mean of the breeding values must be computed given the data that were used for selection. When single nucleotide polymorphism (SNP) effects have a normal distribution, it can be argued that single-step best linear unbiased prediction (SS-BLUP) yields a conditional mean of the breeding values. Obtaining SS-BLUP, however, requires computing the inverse of the dense matrix G of genomic relationships, which will become infeasible as the number of genotyped animals increases. Also, computing G requires the frequencies of SNP alleles in the founders, which are not available in most situations. Furthermore, SS-BLUP is expected to perform poorly relative to variable selection models such as BayesB and BayesC as marker densities increase.
A strategy is presented for Bayesian regression models (SSBR) that combines all available data from genotyped and non-genotyped animals, as in SS-BLUP, but accommodates a wider class of models. Our strategy uses imputed marker covariates for animals that are not genotyped, together with an appropriate residual genetic effect to accommodate deviations between true and imputed genotypes. Under normality, one formulation of SSBR yields results identical to SS-BLUP, but does not require computing G or its inverse and provides richer inferences. At present, Bayesian regression analyses are used with a few thousand genotyped individuals. However, when SSBR is applied to all animals in a breeding program, there will be a 100 to 200-fold increase in the number of animals and an associated 100 to 200-fold increase in computing time. Parallel computing strategies can be used to reduce computing time. In one such strategy, a 58-fold speedup was achieved using 120 cores.
In SSBR and SS-BLUP, phenotype, genotype and pedigree information are combined in a single-step. Unlike SS-BLUP, SSBR is not limited to normally distributed marker effects; it can be used when marker effects have a t distribution, as in BayesA, or mixture distributions, as in BayesB or BayesC π. Furthermore, it has the advantage that matrix inversion is not required. We have investigated parallel computing to speedup SSBR analyses so they can be used for routine applications.
Due to advances in molecular biology, high-density single nucleotide polymorphisms (SNP) data are now being incorporated with phenotypic data into genetic evaluation [1–4] in what has been called genomic prediction or genomic selection . Typically, genotypes are initially available only on a few thousand individuals at many thousands to several hundred thousand SNPs. Phenotypic values or deregressed estimated breeding values (EBV) on these genotyped individuals are used to estimate the effects of the SNPs using Bayesian multiple-regression models in which the marker effects are treated as random . We refer to such models as marker effect models (MEM). The estimated marker effects are then used to predict the breeding values (BV) of animals that may not yet have phenotypes but have been genotyped.
Nejati-Javaremi  proposed an alternative approach to incorporate genotype information into genetic evaluation, where the BV of the animals are fitted, as in a pedigree-based best linear unbiased prediction (BLUP) analysis, but with a genomic relationship matrix, computed from available genotypes, that replaces the pedigree-based additive relationship matrix. We refer to these models as breeding value models (BVM). Fernando  showed that the MEM and BVM provide equivalent predictions of BV and that predictions could be more easily obtained from MEM than from BVM because at the time of their study the number of markers was much smaller than the number of genotyped animals. This situation changed when high-density SNP data became available and the BVM was rediscovered for genomic selection [8, 9]. In this context, BLUP using the BVM is often referred to as G-BLUP.
When MEM are used and not all animals are genotyped, marker-based EBV are typically combined with pedigree-based BLUP EBV from the entire breeding population to improve accuracy, using various selection-index approximations [2, 10]. Legarra et al. [11–14] proposed an alternative to this approximate approach to combine information from genotyped and non-genotyped animals, where in a single step, they obtain BLUP EBV combining phenotypic, pedigree and SNP data using Henderson’s mixed model equations (MME) for a BVM with a modified version of the additive relationship matrix H that reflects the additional information from the SNP genotypes. Thus, their method is called single-step BLUP (SS-BLUP), and is expected to yield unbiased predictions under multivariate normality, even in populations that are undergoing selection and non-random mating. This is important, because genotypes are usually collected only on superior animals and this can lead to biased evaluations. A properly calculated BLUP evaluation has been shown to be free of this selection bias [15–21]. Because their BLUP analysis is based on a BVM, we will refer to their SS-BLUP as SSBV-BLUP.
In SSBV-BLUP, the SNP data are used to construct the matrix G of genomic relationships for the genotyped individuals [6, 8, 22]. Conceptually, the remaining relationship coefficients constructed from pedigree are modified to provide consistency with G. Provided that G−1 and the inverse of the corresponding additive relationship matrix are available, an efficient algorithm has been developed to construct H−1. However, computing G−1 and is an inefficient process, because the computing time to obtain these inverses is proportional to , where n2 is the number of individuals with genotypes. Nevertheless, when n2 is a few thousands, SSBV-BLUP provides an elegant and convenient method to estimate BV that combines the available phenotype, pedigree and SNP data. Due to wide-spread adoption of genotyping in livestock, however, n2 is becoming too large for SSBV-BLUP to remain computationally feasible much longer [23, 24]. One strategy to overcome this problem is to approximate G such that the inverse could be computed efficiently . Another strategy is to obtain solutions to the MME without explicitly inverting G. Because G is very dense and it grows in size as more individuals are genotyped, these strategies are not very promising.
As discussed by Stranden and Garrick , when the number of genotyped individuals exceeds the number of marker covariates, use of MEM, which do not require computing G or its inverse, will lead to more efficient calculations. At present, however, most analyses that use MEM are based on Markov chain Monte-Carlo (MCMC) techniques that are computationally demanding. In addition, analyses using MEM have not been able to accommodate animals without genotypes.
In this paper, we extend MEM to accommodate animals without genotypes and propose alternative MCMC approaches to address computing requirements. The methodology presented here will extend the attractive features of SSBV-BLUP to Bayesian multiple-regression analyses that draw inferences from posterior distributions using MCMC techniques. Our extended MEM will enable BLUP evaluations without having to compute G or its inverse, while combining information from genotyped and non-genotyped animals.
We begin this section with a short introduction to the most widely used MEM and equivalent BVM. Then, we briefly review the theory that underlies SSBV-BLUP and show that the BVM used in SSBV-BLUP is equivalent to an MEM that can be used for single-step Bayesian regression (SSBR). Finally, strategies will be presented to implement a Gibbs sampler for drawing inferences from the posterior distributions of the breeding values.
Marker effect models
The groundbreaking paper of Meuwissen et al.  proposed three multiple-regression, MEM for genomic selection. These models can be described by the following general model:
where y is the vector of trait phenotypes, X is a known incidence matrix that relates the vector of non-genetic, “fixed” effects to y, T=M−E(M), M is a matrix of marker covariates, α is the vector of random, partial-regression coefficients of the marker covariates, and e is a vector of residuals. The expected value of the marker covariates can be written as E(M)=1 k′, where the row vector k′ is the vector of expected values of marker covariates for a random animal in the absence of selection.
Meuwissen et al.  actually used haplotype covariates in their model, but now most analyses are based on SNP marker covariates. Their model assumed that the markers completely capture the first and second moments of the BV. When this is not true, a polygenic residual BV can be added to equation (1). Strandén and Christensen showed that different allele coding methods lead to the same inference of marker effects when the general mean is included in the model and all genotypes are observed . However, centered allele coding, as in matrix T, had a numerical advantage when MCMC methods were used .
In the Bayesian implementation of the MEM, the fixed effects are usually given a flat prior. The α j are a priori assumed independently distributed as:
where are a priori assumed identically and independently distributed (iid) scaled inverted chi-square variables with scale and degrees of freedom ν α . The residuals are typically assumed iid normal with null mean and variance , with a scaled inverted chi-square prior for , with scale and degrees of freedom ν e .
In the first model considered by Meuwissen et al. , the α j were iid normal variables with null mean and a common “known” variance, which is equivalent to our general model with π=0, , and set to the common known variance. This model was called “BLUP” in their paper . The second model that they considered (BayesA) is equivalent to our general model with π=0, and and ν α set to “known” values. Their third model (BayesB) is identical to BayesA, except with π=0.95 or some other “known” value.
Kizilkaya et al. [26, 27] modified the “BLUP” model to have a value of π>0 and an unknown common variance with a scaled inverted chi-square prior and referred to this model as BayesC. Furthermore, Habier et al.  extended the BayesC model in which the value of π is unknown with a uniform prior and referred to this as BayesC π. In Bayesian Lasso, the marker effects are assigned a double exponential prior. This can be achieved by setting π in equation (2) to 0 and using an exponential prior distribution for .
Inferences on the breeding values and other unknown parameters in the model are made from their marginal posterior distributions, using MCMC methods [5, 27, 28]. Let t c′ be the row vector of marker covariates for some selection candidate. Then, the conditional mean for its genomic EBV is , where is the posterior mean of α, which can be computed from the MCMC samples.
Breeding value models
Two mixed linear models are said to be linearly equivalent if the vector y of observations has the same first and second moments in both models . In that sense, a model that is equivalent to (1) can be written as:
where g=T α, and T=M−E(M) is the matrix of centered marker covariates. One of the advantages of using centered marker covariates is that the vector g of breeding values will have null means even if α does not have null means. The covariance matrix of the breeding values is:
Then, in both models (1) and (3), the mean of y is X β and the covariance matrix is:
Thus, these two models are linearly equivalent and the parameters of one model can always be written as linear functions of the parameters of the other model. “Consequently, linear and quadratic estimates under one model can be converted by these same linear functions to estimates of an equivalent model” .
When the number of markers is large relative to the size of g, BLUP of g can be obtained efficiently [8, 9] by solving the MME that correspond to model (3). When π=0 and in (1), the covariance matrix of marker effects is:
and the covariance matrix of the genomic BV conditional on M can be written as:
Furthermore, under some assumptions, the variance of marker effects can be related to the variance of BV as:
Suppose genotypes were not available and the analysis is conditional only on pedigree, which we denote as P. Then, the conditional mean of g given P is null and the conditional covariance matrix is:
where A is the additive relationship matrix, and the variance is computed over the conditional distribution of T. Using this variance for g in setting up the MME for equation (3) results in the usual non-genomic MME for the BVM.
Theory underlying SSBV-BLUP
Legarra et al.  proposed an ingenious strategy to combine information from genotyped and non-genotyped animals in a single BLUP analysis based on a BVM, which we refer to as SSBV-BLUP. Suppose g is partitioned as:
where g1 are BV of the animals with missing genotypes T1 and g2 are BV of those with observed genotypes T2. Following Legarra et al. , the vector g1 can be written as:
where A ij are partitions of A that correspond to g1 and g2. The first term in equation (7) is the best linear predictor (BLP) of g1 given g2, and the second is a residual genetic effect to accommodate deviations between the true breeding value, g1, and its prediction from g2, , which we refer to as ε, the “imputation residual”.
Consider first the conditional distribution of g1 given P. Then, as expected, the variance of g1 is:
where the first term of equation (8) is the variance of the (i.e. predicted from its relatives in g2) and the second term is the variance of ε. Similarly, .
In this situation, where the covariance structure of g1 and g2 is determined entirely by the pedigree, it is easy to see that ε in equation (7) is uncorrelated to g2, and therefore if g1 and g2 are multivariate normal, ε and g2 are independent. Multivariate normality of g1, g2 and consequently of ε will be a good approximation if the effective number of loci that contribute to the BV is large. This will be the case even when the individual marker effects do not have a normal distribution, as in BayesA and BayesB.
Consider now the conditional distribution of g1 given T2. Note that, given the observed genotypes T2, the distribution of g2 changes to a multivariate normal with mean 0 and covariance matrix . Now, to obtain the result in  for the conditional distribution of g1 given T2, we have to assume that the change in the distribution of g1 occurs entirely as a result of the change in the distribution of g2. In other words, we only use the information in T2 that flows to g1 through g2 (see Discussion). Then, it can be reasoned that:
where now the vector has covariance matrix given by the first term of equation (10), and because ε is independent of g2, the second term of equation (10) remains identical to that of equation (8). Similarly, the covariance between g1 and g2 conditional on T2 is:
Furthermore, assuming equation (5), the above results can be combined to show that conditional on T2, g has a multivariate normal distribution with null mean and covariance matrix:
where . An alternative derivation of this matrix was given by Christensen and Lund . The inverse of this matrix is needed to set up the MME, and can be computed as
which is the basis for SSBV-BLUP [11, 13, 14]. Note that this requires that both G−1 and are computed beforehand, which is not computationally feasible because these matrices are dense and large when the number n2 of genotyped animals is large. Furthermore, T2 T 2′ is not full rank when n2 exceeds the number of markers. Thus to obtain a full rank G, ad-hoc adjustments are often made, such as adding small values to the diagonals or regressing G towards A, which is justified when the markers do not capture all the genetic variability. However, due to the increased adoption of SNP genotyping in livestock, G−1 and are becoming too large for SSBV-BLUP to remain computationally feasible [23, 24]. A second problem in SSBV-BLUP is related to the scaling that is done using the SNP frequencies. As mentioned earlier, when all data that were used for selection are available for computing the conditional mean, it can be computed as if selection had not taken place [18, 20, 21]. If selection has taken place, this requires using SNP frequencies from the founders, because these frequencies are not changed by selection. However, in most situations SNP genotypes are not available in the founders and frequencies observed in the genotyped animals are used, which can lead to biased evaluations, particularly in a multi-breed context.
Single-step Bayesian regression
Assuming that BV are captured completely by marker genotypes, the mixed linear model for the phenotypic values can be expressed in terms of a BVM (12) or an MEM (13) as
where we have introduced the incidence matrix Z to accommodate animals with repeated records or animals without records. As in SSBV-BLUP, suppose T1 is not observed. Then it is not possible to use equation (13) as the basis for the MEM. Note that T1α is equal to g1. So, using equation (7) for g1 and writing g2=T2α, the model for the phenotypic values becomes:
To construct the matrix T2 of centered marker covariates, we need to know the value of E(M2)=1 k′, where the row vector k′ is the vector of expected values of marker covariates for a random animal in the absence of selection. However, marker covariates are often available only for animals that have been subject to selection. So, we propose to write g2 as:
where μ g =k′α is assigned a flat prior. The reason μ g can be considered an independent parameter is that k′ is a vector of unknown parameters. Substituting equation (18) for g2=T2α in equation (15) gives:
where , , , J2=−1, ,
The matrix of imputed marker covariates can be obtained efficiently, using partitioned inverse results, by solving the easily formed very sparse system [see Additional file 1]:
where Aij are partitions of A−1 that correspond to partitioning g into g1 and g2. Similarly, the vector can be obtained efficiently by solving the system:
The differences between this MEM (20) and the model that is currently used for Bayesian regression (BR) are: (i) estimation of an extra fixed effect: μ g =k′α, (ii) some of the marker covariates in (20) are imputed, and (iii) a residual term ε has been introduced to account for deviations of the imputed marker covariates from their unobserved, actual values.
When genotypes are not missing, the vector J1 is null, and the covariate for μ g only contains J2, which is in the column space of X2 when the model explicitly or implicitly contains the general mean. In this case, it has been shown that inference on differences between breeding values is not affected by the choice of vector k′ used to center the marker covariates . This includes using k′=0′, which corresponds to not centering, and therefore, μ g does not have to be included in the model. However, when genotypes are missing may not be in the column space of X1, and thus μ g must be included in the model if k′ is not known and the marker covariates are not centered. A thorough investigation of this approach of including μ g as a fixed effect in the model in place of centering the marker covariates is beyond the scope of this paper, but a small simulation is included here to compare the accuracy of prediction when marker covariates are centered with those when marker covariates are not centered but μ g is included in the model.
Regardless of the prior used for α, the distribution of the vector ε of imputation residuals will be approximated by a multivariate normal vector with null mean and covariance matrix (see equation 10), where is assigned a scaled inverse chi-square distribution with scale parameter and degrees of freedom ν g . Imputing the marker covariates needs to be done only once, and it can be done efficiently in parallel. Imputation of unobserved marker covariates will not significantly increase the overall computing time, and the storage costs will not be greater than for centered observed genotypes.
The MME that correspond to equation (20) for BayesC with π=0 are
The submatrix of these MME that correspond to ε are identical to those for g1 from a pedigree-based analysis and are very sparse. Thus, as explained in the next section, conditional on β∗ and α, ε can be sampled efficiently by using either a blocking-Gibbs sampler [32, 33] or a single-site Gibbs sampler, as used in pedigree-based analyses . Note that these MME, which do not have G or its inverse, may be used to overcome the computational problems with SSBV-BLUP. The predicted BV can be written as:
The MME given by equation (23) have the advantage that they will not grow in size as more animals are genotyped, in contrast to the MME corresponding to equation (14) that are given by Aguilar et al. . Results from solving equation (23) will not be identical to those from the MME corresponding to equation (14) because in equation (23), k′ is treated as an unknown, and μ g =k′α is estimated from the genotypic and phenotypic data. However, the MME corresponding to:
where , and a2=M2α will give predictions for breeding values computed as:
identical to those from equation (24).
Consider the pedigree in Table 1, and assume genotypes are available only on individuals 1, 2, and 4. Genotypes M2 at 10 markers are in Table 2. Following Legarra et al. , the relationship matrix is rearranged such that A11 are relationships among individuals 3, 5, and 6, which do not have genotypes, and A22 are relationships among 1, 2, and 4, which have the genotypes in Table 2. The inverse of the rearranged relationship matrix is given in Table 3. The imputed genotypes, , and the marker covariates, J1, for μ g of the non-genotyped animals, could be obtained efficiently by solving the sparse systems (21) and (22), respectively (Table 4). To set up the MME, we will assume that , , and that μ, and μ g are the only fixed effects. Then, the MME (23) and solutions corresponding to the MEM (20) are in Table 5. For comparison, the MME and solutions for the single-step BV model are given in Table 6. The solutions for μ and μ g are identical for the two sets of MME. The BLUP of g obtained as equation (24), using the solutions to equation (23), are identical to those obtained from equation (26), and are in Table 1.
Simulation to compare accuracy of prediction with and without centering of covariates
Accuracy of prediction was computed for SS-BLUP with and without centering of marker covariates. As demonstrated by the preceding numerical example, the MEM given by (20) or the BVM given by (25) can be used to get identical SS-BLUP predictions. When marker covariates were not centered, accuracy was computed with and without fitting μ g in the model. The simulated data consisted of 20 paternal halfsib families, each with 20 offspring. Thus, the pedigree consisted of 20 unrelated sires, 400 unrelated dams and 400 offspring. Only genotypes from the 400 offspring were used in the analysis. Phenotypes from all 400 offspring and from 210 dams were used. Results are given for four scenarios of the simulation. In all four scenarios, the trait was determined by 50 QTL and had a heritability of 0.5. All QTL effects were sampled from a normal distribution with either mean μ α =0 or mean μ α =0.2. The analysis was based on either 100 or 10 000 marker genotypes, including the QTL. Correlations between the predicted and true breeding values for the three analyses and the four scenarios are in Table 7, which contains correlations for the non-genotyped animals, and Table 8, which contains the correlations for the genotyped animals. All three models had almost identical accuracies except when the number of observations exceeded the number of markers and the marker effects had a non-null mean. In this case, the model with centered marker covariates had a higher accuracy. The same accuracy could be achieved by including an extra covariate to model the mean of the breeding values. The results in this simulation indicate that this is necessary only when the number of observations exceeds the number of markers. When the number of markers greatly exceeds the number of observations, this extra covariate may become unnecessary even when the marker effects have a non-null mean.
Strategies to implement a Gibbs sampler
In most implementations of BR, a Gibbs sampler is used to draw inferences from the posterior distribution of the unknowns [5, 27, 33, 34]. This involves sampling from full-conditional posterior distributions. Sampling of fixed effects, β, is almost identical to sampling the marker effects, α. Thus, we will describe the strategy for sampling α directly.
Sampling marker effects and variances
The most time-consuming task in a BR analysis is sampling α from its full-conditional distribution. Detailed derivation of these full-conditionals and illustrative R scripts are in Fernando and Garrick  for BR models with complete genotype data. As shown in equation (10) of , the first step in sampling α i is adjusting y for all other effects in the model. In the case of equation (20), , the vector of adjusted phenotypic values is:
computed with the current values of β∗, α and ε. This vector is used to compute the right-hand-side for α i , , which is needed to sample α i in BayesA, BayesB and BayesC [5, 34]. In BayesB and BayesC, α i is either null or, conditional on the effect variance, normally distributed. Thus before α i is sampled, a Bernoulli variable δ i is sampled that indicates whether α i is null or is normally distributed. Sampling δ i requires computing the full-conditional probability that δ i =1, which also requires r h s i .
Calculation of r h s i can be done more efficiently  by initially computing:
which is the vector y corrected for all effects in the model, using their current values. Then, before sampling α i , the right-hand-side for α i , , is obtained efficiently as:
and after sampling α i , is updated as:
where and are the values of α i before and after sampling. Then, sampling proceeds to the next locus. Thus for each marker covariate, r h s i is always computed, whereas in BayesB and BayesC, the vector only needs to be updated when . In computing r h s i , the first term is the dot product of two vectors of length n, the number of records. In the second term, the scalar w i′w i does not change from one round of sampling to the next, and so it is computed only once for each marker covariate. To speed-up computations, the dot product can be done in parallel, using the message passing interface (MPI) . Suppose m processors are used for computing. Then, the first q elements of each covariate will be stored in memory of the first processor and the second set of q elements in the second processor and so on, where q is the whole part of , and the last processor gets the remaining elements. Similarly, blocks of will also be stored with the m processors. Then, to compute , each of the m−1 processors will do a dot product of length q and the last processor one of length ≤q. Only the scalar result of the dot product from each processor needs to be communicated for the sampling and this will be relatively fast. After sampling α i , updating will also be done in parallel. Before updating , the scalar must be available to all m processors. Then, each processor will update its own block of and will be ready for sampling the effect of the next marker covariate. The remaining calculations related to sampling marker effects do not depend on the number of records and will take only a negligible amount of time. Once the marker effects are sampled, sampling the locus-specific variances of marker effects in BayesA and BayesB, or the common variance in BayesC does not depend on the number of observations [5, 34].
To investigate the speedup from parallel computations, the Lonestar Linux cluster of the Texas Advanced Computing Center was used. According to the documentation at (http://www.tacc.utexas.edu/user-services/user-guides/lonestar-user-guide\#overview) a regular compute node on this cluster contains two Xeon Intel Hexa-Core 64-bit Westmere processors (12 cores in all) on a single board, as an SMP unit. The core frequency is 3.33 GHz and supports four floating-point operations per clock period, with a peak performance of 13.3 GFLOPS/core or 160 GFLOPS/node. Each node contains 24 GB of memory (2 GB/core). The memory subsystem has three channels from each processor’s memory controller to 3 DDR3 ECC DIMMS, running at 1333 MHz. The processor interconnect, QPI, runs at 6.4 GT/s.
Initially, a data set with 1 million individuals and 5000 markers on each individual was used. Obtaining 100 samples of α and for BayesC with π=0 took 1167 seconds on a single core. By extrapolation, ignoring memory limitations, 100 samples for 50 000 markers would take about 11 670 seconds on a single core. Next, MPI  was used for parallel computation on 120 cores across 10 nodes. Then, obtaining 100 samples for 1 million individuals with 50 000 markers took 202 seconds. Thus, the speedup on 120 cores was about 58 times, and obtaining 40 000 samples would take about 22 hours.
Sampling imputation residuals and genetic variance
Using results from , it can be shown that conditional on the sampled value of all other variables and the data, the conditional distribution of ε is multivariate normal with mean that is given by the solution to the following system:
and covariance matrix: . The right-hand-side of equation (31) can be obtained efficiently as , where is the current value of the sub-vector from equation (28) that corresponds to y1. A sample from this distribution can be obtained by using the blocking-Gibbs sampler described by Garcia-Cortes and Sorensen [32, 33]. This requires solving equation (31), which is very sparse, and can be done iteratively. Alternatively, a single-site Gibbs sampler can be used . It can be shown that the full-conditional posterior for is a scaled inverse chi-square distribution with scale parameter:
and degrees of freedom , where n ε is the number of elements in ε. The matrix A11 is very sparse, and thus computing ε′A11ε is fast.
An alternative sampler
Here, we consider the situation where ε is a “nuisance parameter” and interest is only on inference about marker effects: α. The starting point for this sampler is the MME given by equation (23). When π=0 in the prior of marker effects of equation (2), conditional on the variance components in the model, the posterior for the location parameters is a normal distribution with mean given by the solution to these MME and covariance matrix given by the the inverse of the left-hand-side of the MME times . Eliminating ε from (23) results in the following MME:
where . The solution to these MME for and are identical to those from equation (23). Furthermore, the inverse elements of the left-hand-side of these MME are identical to the corresponding inverse elements of equation (23). Thus, equation (32) can be used to draw samples from the posterior of β and α.
In BayesA and BayesC with π=0, the blocking-Gibbs sampler of  can be used to sample all effects jointly. In BayesB, BayesC and BayesC π, the single-site sampler is more convenient. When the number of observations is larger than the number of effects in the model, equation (13.12) of  can be used to compute r h s i efficiently, which is required to sample the ith location effect from its full-conditional posterior distribution [5, 34] as:
where r i is the ith element from the right-hand side of equation (32), C i′ is the ith row from the left-hand side of equation (32), and θ is the vector of sampled values of the fixed effects and marker effects. Once equation (32) is set up, the time for computing r h s i as equation (33) does not depend on the number of observations. Thus, computing time for sampling β and α by either the blocking-Gibbs sampler or by the single-site sampler, using equation (33) to compute r h s i , does not depend the number on observations.
Furthermore, when π is close to 1, the sampled value for most marker effects is null. Then, dramatic reductions in computing time can be achieved as described in the following. Sampling is started with θ=0, and so initially, the vector r h s=r. As sampling proceeds and any non-null effect θ i is sampled, r h s is updated as:
where C i is the ith column of C. Then, before sampling θ i , r h s i would be equal to equation (33). In sampling marker effects, updating r h s using equation (34) is the only non-scalar computation, and when π is close to 1, the number of such updates can be very small. In such situations, 40k samples of BayesB can be obtained on a single core in about half an hour, regardless of the number of observations.
The most intensive computation in setting up equation (32) is that of W 1′P W1 and W 2′W2. First, we consider computing the matrix of crossproducts: W 2′W2. For an arbitrary matrix S of n rows and k columns, the crossproduct S′S can be written as:
where In equation (35), the crossproducts are independent and can be done in parallel.
Next, we consider computing W 1′P W1. This can be undertaken in two steps. In step 1, the columns of B=P W1 are computed in parallel. Column i of this product can be written as:
where W1i is the ith column of W1. The second term in b i can be computed efficiently as Z1 q i , where q i is the solution to the sparse system:
The Cholesky decomposition of this system is also sufficiently sparse for exact computation and has to be done only once. Once B is computed, in the second step, the product W 1′P W1=W 1′B can be computed in parallel, similar to equation (35), as the sum of independent matrix products.
The Lonestar Linux cluster was used to examine the possible speedup that could be achieved by parallel computing of S′S. Initially, a single core on this cluster was used to compute S′S with the number of rows in S, n, equal to 1 million and the number of columns, k equal to 5000. This computation took 11 669 seconds. If memory was not limiting, computation with k = 50 000 would take 100 times longer because now S′S would be 100 times larger than with k=5000. Actual calculations with k = 50 000 were undertaken with 200 nodes. In each node, S i′S i was computed with S i being a slice containing a subset of the 50 000 rows of the S matrix. MPI  was used to compute S′S as the sum of these matrices, as in equation (35). The Eigen C++ template library , which can exploit the multiple cores within a node, was used to compute S i′S i within each node. Although each node of the Lonestar cluster has 12 cores, using 8 cores within each node gave the best result: 912 seconds to compute S′S. This was a speedup of about 1,279 times.
Genomic prediction is based either on marker effects models (MEM), where the effects of marker covariates are explicitly included in the model as random effects, or on breeding value models (BVM), where the markers are used to compute the covariance matrix of the breeding values. Although BLUP using these two types of models can be identical , computing using the BVM is more efficient when the number of marker covariates is much larger than the number of individuals. Furthermore, the BVM has also been used to combine information from genotyped and non-genotyped individuals to obtain BLUP in a single step (SSBV-BLUP) [11, 13, 14].
SSBV-BLUP is based on the conditional covariance matrix, H, of g given both pedigree and observed marker genotypes. When this covariance matrix is written in terms of a single variance component, as in equation (11), a “base correction” is needed to ensure that relationships in G and A are expressed relative to the same base or founder population, as explained in detail by Meuwissen et al. . In the MEM (20) presented here, the variance component for α and for ε are kept separate. This strategy of keeping and separate can also be used in computing H by defining G as instead of as .
Legarra et al.  and Christensen and Lund  gave alternative derivations of the matrix H. The derivation by Legarra et al.  uses the identity given by equation (7), which was also used here to develop the MEM for single-step Bayesian regression. Here, we reasoned that if g has a multivariate normal distribution, g2 and ε would be independent because they are also uncorrelated. Furthermore, we assumed that when conditioning on the observed marker information, the change in the distribution of g1 results directly from the change in the distribution in g2. However, one might argue that this assumption is not reasonable because when you condition on the observed value of M2, the change in the distribution of g1 results from the correlated change in the distribution of M1 and not from the change in the distribution of g2.
However, this is valid only for multivariate normal variables, and multivariate normality is not a good approximation for the distribution of marker covariates. They also used an expression for the conditional variance of the missing genotypes that is valid only for multivariate normal variables. They did not explicitly recognize these approximations in their derivation, but pointed out that the conditional distribution of breeding values of the non-genotyped animals will only be approximately normal. Similar reasoning was also used by de los Campos et al.  who clearly showed that conditional on M2, g1 has a mixture of scaled-multivariate normal densities.
While we agree that conditional on M2, g1 has a mixture of scaled-multivariate normal densities, it must be noted that even the unconditional distribution of g1 is only approximately normal. Furthermore, in G-BLUP, what is being conditioned on is not the observed value of M2 but the observed value of M2 M 2′. To see this, note that there are many different M2 matrices that result in the same matrix for G, i.e. M2 M 2′, and thus the same G-BLUP breeding values. In other words, G-BLUP depends on M2 only through M2 M 2′, and therefore, all M2 that result in the same M2 M 2′ will also result in the same G-BLUP. However, M2 M 2′ is proportional to the covariance matrix of g2. Thus, it would be correct to say that in G-BLUP, what is being conditioned on is the covariance matrix of g2 changing from being proportional to A22 to being proportional to M2 M 2′. This conditioning may be thought of as a selection process, where the unselected samples of g1 and g2 have a multivariate normal distribution with null mean and covariance matrix , while in the selected samples, selection based on g2 results in its mean still being null but its covariance matrix changing to . Then, the correlated change in g1 is given by equation (10), which is a result from Pearson  that was also used by Henderson  to develop theory for BLUP under a selection model. However, given the selection process that we have described, the distribution of g may not be multivariate normal.
Hickey et al.  imputed genotypes for non-genotyped individuals so that all individuals have genotypes for fitting a MEM. In their case, imputation was undertaken using linkage and linkage disequilibrium information. However, they did not account for any imputation residual. Liu et al.  also have described a single-step MEM for combining information from genotyped and non-genotyped animals, which includes a residual polygenic component. Their analysis requires repeated multiplication of by a vector, and an efficient algorithm has been developed for this multiplication. In another approach (Theo Meuwissen, personal communication, October 3, 2013), the LDMIP algorithm  was used to impute missing genotypes, and for each SNP where the genotype of an individual i was not known with certainty, a random effect with covariance matrix G LA was fitted to account for the variability that is incompletely explained by the imputed genotype, where G LA is the linkage analysis based covariance matrix . One of the advantages of this approach is that imputation of genotypes by LDMIP at a locus j uses information from the genotypes of all linked loci, in addition to the genotypes at locus j. The implied imputation in SSBV-BLUP [11–14] and the method presented here, only uses genotypes at the current locus. Furthermore, best linear prediction is used for imputation, which is optimal only for normally distributed variables. In contrast, in LDMIP, conditional probabilities of the missing genotypes, given all observed genotypes at locus j and linked loci, that are computed approximately by iterative peeling and combine both linkage and LD information, are used to impute genotypes. Although the covariance matrix G LA is easier to justify than the covariance of ε used here and in SSBV-BLUP, normality of the residuals of a single SNP covariate is more difficult to justify than normality of ε. Use of mixture genetic models  addresses this weakness, but more work is needed to make these analyses efficient for routine use.
The single-step Bayesian regression approach presented here and SSBV-BLUP have the same appealing property that phenotype, genotype and pedigree information are combined in a single-step. Unlike SSBV-BLUP, SSBR is not limited to normally distributed marker effects; SSBR can be used with t-distributed marker effects, as in BayesA, and with mixture models, as in BayesB and BayesC π. Furthermore, it has the advantage that matrix inversion is not required. However, this comes at the expense of using MCMC methods that are computationally intensive, but these methods have the advantage that computing time and memory requirements increase linearly with the number of observations and number of markers. Thus, as demonstrated here, computing clusters can be used to parallelize and speedup MCMC analyses for routine applications.
Hayes BJ, Bowman PJ, Chamberlain AJ, Goddard ME:Invited review: genomic selection in dairy cattle: progress and challenges. J Dairy Sci. 2009, 92: 433-443. 10.3168/jds.2008-1646.
VanRaden PM, Van Tassell CP, Wiggans GR, Sonstegard TS, Schnabel RD, Taylor JF, Schenkel FS:Invited review: reliability of genomic predictions for north american holstein bulls. J Dairy Sci. 2009, 92: 16-24. 10.3168/jds.2008-1514.
Wolc A, Stricker C, Arango J, Settar P, Fulton JE, O’Sullivan NP, Preisinger R, Habier D, Fernando R, Garrick DJ, Lamont SJ, Dekkers JCM:Breeding value prediction for production traits in layer chickens using pedigree or genomic relationships in a reduced animal model. Genet Sel Evol. 2011, 43: 5-10.1186/1297-9686-43-5.
Garrick DJ:The nature, scope and impact of genomic prediction in beef cattle in the United States. Genet Sel Evol. 2011, 43: 17-10.1186/1297-9686-43-17.
Meuwissen THE, Hayes BJ, Goddard ME:Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001, 157: 1819-1829.
Nejati-Javaremi A, Smith C, Gibson JP:Effect of total allelic relationship on accuracy of evaluation and response to selection. J Anim Sci. 1997, 75: 1738-1745.
Fernando RL:Genetic evaluation and selection using genotypic, phenotypic and pedigree information. Proceedings of the 6th World Congress on Genetics Applied to Livestock Production: 11-16 June 1998. 1998, Armidale, 329-336.
VanRaden PM:Efficient methods to compute genomic predictions. J Dairy Sci. 2008, 91: 4414-4423. 10.3168/jds.2007-0980.
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.
Saatchi M, McClure MC, McKay SD, Rolf MM, Kim J, Decker JE, Taxis TM, Chapple RH, Ramey HR, Northcutt SL, Bauck S, Woodward B, Dekkers JCM, Fernando RL, Schnabel RD, Garrick DJ, Taylor JF:Accuracies of genomic breeding values in american angus beef cattle using k-means clustering for cross-validation. Genet Sel Evol. 2011, 43: 40-10.1186/1297-9686-43-40.
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.
Misztal I, Legarra A, Aguilar I:Computing procedures for genetic evaluation including phenotypic, full pedigree, and genomic information. J Dairy Sci. 2009, 92: 4648-4655. 10.3168/jds.2009-2064.
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 evaluation of holstein final score. J Dairy Sci. 2010, 93: 743-752. 10.3168/jds.2009-2730.
Christensen OF, Lund MS:Genomic prediction when some animals are not genotyped. Genet Sel Evol. 2010, 42: 2-10.1186/1297-9686-42-2.
Henderson CR, Kempthorne O, Searle SR, Von Krosigk CM:The estimation of genetic and environmental trends from records subject to culling. Biometrics. 1959, 15: 192-218. 10.2307/2527669.
Henderson CR:Best linear unbiased estimation and prediction under a selection model. Biometrics. 1975, 31: 423-447. 10.2307/2529430.
Goffinet B:Selection on selected records. Genet Sel Evol. 1983, 15: 91-98. 10.1186/1297-9686-15-1-91.
Gianola D, Fernando RL:Bayesian methods in animal breeding. J Anim Sci. 1986, 63: 217-244.
Fernando RL, Gianola D:Statistical inferences in populations undergoing selection or non-random mating. Advances in Statistical Methods for Genetic Improvement of Livestock. Edited by: Gianola D, Hammond K. 1990, New York: Springer, 437-457.
Im S, Fernando RL, Gianola D:Likelihood inferences in animal breeding under selection: a missing-data theory view point. Genet Sel Evol. 1989, 21: 399-414. 10.1186/1297-9686-21-4-399.
Sorensen D, Fernando RL, Gianola D:Inferring the trajectory of genetic variance in the course of artificial selection. Genet Res. 2001, 77: 83-94. 10.1017/S0016672300004845.
Habier D, Fernando RL, Dekkers JCM:The impact of genetic relationship information on genome-assisted breeding values. Genetics. 2007, 177: 2389-2397.
Legarra A, Ducrocq V:Computational strategies for national integration of phenotypic, genomic, and pedigree data in a single-step best linear unbiased prediction. J Dairy Sci. 2012, 95: 4629-4645. 10.3168/jds.2011-4982.
Faux P, Gengler N, Misztal I:A recursive algorithm for decomposition and creation of the inverse of the genomic relationship matrix. J Dairy Sci. 2012, 95: 6093-6102. 10.3168/jds.2011-5249.
Strandén I, Christensen OF:Allele coding in genomic evaluation. Genet Sel Evol. 2010, 43: 25-
Kizilkaya K, Fernando RL, Garrick DJ:Genomic prediction of simulated multibreed and purebred performance using observed fifty thousand single nucleotide polymorphism genotypes. J Anim Sci. 2010, 88: 544-551. 10.2527/jas.2009-2064.
Habier D, Fernando RL, Kizilkaya K, Garrick DJ:Extension of the Bayesian alphabet for genomic selection. Proceedings of the 9th World Congress on Genetics applied to Livestock Production: 1-6 August 2010. 2010, Leipzig, 468-468. [http://www.kongressband.de/wcgalp2010/assets/pdf/0468.pdf],
de los Campos G, Naya H, Gianola D, Crossa J, Legarra A, Manfredi E, Weigel K, Cotes JM:Predicting quantitative traits with regression models for dense molecular markers and pedigree. Genetics. 2009, 182: 375-385. 10.1534/genetics.109.101501.
Henderson CR: Applications of Linear Models in Animal Breeding. 1984, Edited by Shaeffer LR. Guelph: University of Guelph
Fernando RL, Habier D, Stricker C, Dekkers JCM, Totir LR:Genomic selection. Acta Agric Scand. 2007, 57: 192-195.
Gianola D, de los Campos G, Hill WG, Manfredi E, Fernando R:Additive genetic variability and the bayesian alphabet. Genetics. 2009, 183: 347-363. 10.1534/genetics.109.103952.
Garcia-Cortes LA, Sorensen D:On a multivariate implementation of the Gibbs sampler. Genet Sel Evol. 1996, 28: 121-126. 10.1186/1297-9686-28-1-121.
Sorensen DA, Gianola D: Likelihood, Bayesian,and MCMC Methods in Quantitative Genetics. 2002, New York: Springer
Fernando R, Garrick D:Bayesian methods applied to GWAS. Genome-Wide Association Studies and Genomic Prediction. Edited by: Gondro C, van der Werf J, Hayes B. 2013, New York: Humana Press,
Legarra A, Misztal I:Technical note: computing strategies in genome-wide selection. J Dairy Sci. 2007, 91: 360-366.
Message Passing Interface Forum: MPI: A Message-Passing Interface Standard, Version 3.0. 2012, Tennessee: University of Tennessee
Guennebaud G, Jacob B:Eigen v3. 2010, [http://eigen.tuxfamily.org],
Meuwissen THE, Luan T, Woolliams JA:The unified approach to the use of genomic and pedigree information in genomic evaluations revisited. J Anim Breed Genet. 2011, 128: 429-439. 10.1111/j.1439-0388.2011.00966.x.
de los Campos G, Hickey JM, Pong-Wong R, Daetwyler HD, Calus MP:Whole-genome regression and prediction methods applied to plant and animal breeding. Genetics. 2013, 193: 327-345. 10.1534/genetics.112.143313.
Pearson K:Mathematical contributions to the theory of evolution. XI. on the influence of natural selection on the variability and correlation of organs. Philo Roy Soc. 1903, 200: 1-66. 10.1098/rsta.1903.0001.
Hickey JM, Kinghorn BP, Tier B, van der Werf JH, Cleveland MA:A phasing and imputation method for pedigreed populations that results in a single-stage genomic evaluation. Genet Sel Evol. 2012, 44: 9-10.1186/1297-9686-44-9.
Liu R, Goddard ME, Reinhardt F, Reents R:Computing strategies for a single step SNP model with an across country reference population. Proceedings of the 2013 Annual Meeting of the European Federation of Animal Science: 26-30 August 2013. 2013, Nantes, 452-452.
Meuwissen T, Goddard M:The use of family relationships and linkage disequilibrium to impute phase and missing genotypes in up to whole-genome sequence density genotypic data. Genetics. 2010, 185: 1441-1449. 10.1534/genetics.110.113936.
Fernando RL, Grossman M:Marker assisted selection using best linear unbiased prediction. Genet Sel Evol. 1989, 21: 467-477. 10.1186/1297-9686-21-4-467.
Habier D, Totir LR, Fernando RL:A two-stage approximation for analysis of mixture genetic models in large pedigrees. Genetics. 2010, 185: 655-670. 10.1534/genetics.110.115774.
The authors are grateful to Hao Cheng and Claas Heuer for assistance in the investigation of parallel computing to speed up SSBR calculations. This work was supported by the US Department of Agriculture, Agriculture and Food Research Initiative National Institute of Food and Agriculture Competitive grant no. 2012-67015-19420 and by National Institutes of Health grant R01GM099992.
The authors declare that they have no competing interests.
RLF conceived the idea for SSBR and developed it in collaboration with DJG and JCMD. DJG proposed the alternative sampler where ε is eliminated from the mixed model equations. The manuscript was prepared by RLF with input and suggestions from DJG and JCMD. All authors read and approved the final manuscript.
About this article
- Message Passing Interface
- Estimate Breeding Value
- Well Linear Unbiased Prediction
- Genomic Estimate Breeding Value
- Impute Genotype