In this blog, we will go through the process of obtaining estimated breeding values (EBVs) with ASReml-R. Here is an overview of the different steps:
- Prepare and clean phenotypic and pedigree and/or genomic data.
- Choose the right statistical model for your needs and data (Animal vs Parental).
- Build the additive relationship matrix (A, G or H) and obtain its inverse.
- Fit the mixed model using
asreml(). - Check model diagnostics.
- Estimate the heritability of your trait.
- Extract the EBVs and calculate reliabilities.
Understanding EBVs and Why They Matter
In breeding programmes, Estimated Breeding Values (EBVs) quantify the genetic potential of an individual as a parent for the expression of a trait. They form the backbone of modern selection decisions — whether you’re improving dairy yield, disease resistance in crops, or growth in aquaculture.
EBVs are Best Linear Unbiased Predictions (BLUPs) of the additive genetic effects in a mixed model. These models help to separate the additive genetic effects from environmental noise and other genetic influences (i.e., dominance and epistatic effects). This makes EBVs more reliable to make decisions than raw phenotypic averages or simple family means.
To further understand EBVs with rigour and clarity, read Unravelling Breeding Values: How One Value Depends on Others, which introduces how ASReml-R quantifies genetic merit.
Further background:
- Historical context for BLUP: Robinson, G.K. (1991). That BLUP is a good thing: The estimation of random effects. Statistical Science 6(1): 15-52.
- Technical foundations: Walsh, B., Visscher, P. M., & Lynch, M. (2025). Genetics and Analysis of Quantitative Traits (2nd ed.). Oxford University Press.
Step 1: Prepare Your Data
Start by organising your data into:
- Phenotypic file: individual ID, response variables, and explanatory variables (e.g. year, block, treatment).
- Pedigree file: individual ID, sire, and dam (with NA or 0 for unknown parents). This will be used to create the numerator relationship matrix needed in the model.
- Genomic file: marker data matrix with individual ID as row headers and markers as column headers. This will be used to create the genomic additive relationship matrix.
Check that:
- Individual IDs in the phenotypic data match those in the pedigree (or the genomic data, depending on what you are using).
- The pedigree file is ordered so that each individual appears after its parents.
- In the R environment, verify that the variables are correctly coded as either numeric or factors.
For examples of phenotypic, pedigree, and genomic datasets, see the ASReml-R Cookbook examples D008, D008ped, and D022genomic, respectively.
Step 2: Choose the Right Model
Select a model type based on your breeding needs and type of data. In some cases, you don’t have individual offspring measurements (e.g. measurements by unit of area), or you simply only need the EBVs of the parents, and for this, you can fit a Parental model. These models are less computationally demanding, and hence, they can be easier to fit. However, you often need the EBVs of all measured individuals, and for this, you need to fit an Animal model. This will also depend on what type of genotypic data you have: parents, offspring or both!
ASReml-R can handle both with ease. For more guidance, see Parental versus Animal Model: What is the difference and how do we choose?
Step 3: Build the Relationship Matrix
The relationship matrix quantifies relatedness between individuals, and it is best to use the inverse of this matrix in sparse format when fitting a model with ASReml. To directly obtain the A-1 from the pedigree data, ASReml-R has the ainverse() function where you can directly use the pedigree file described in Step 1:
Ainv <- ainverse(pedigree)
Note that several options are available when using this function, and some of them are described in detail in this ASReml-R Cookbook example: ASR013.
For the genomic-based relationship matrix G-1, you can clean the marker data and precompute the matrix using the ASRgenomics R package.
Watch our tutorial video to learn how to compute a genomic relationship matrix (G) and its inverse from marker data in ASReml-R. In addition, the recipes ASR027 and ASR026 of the ASReml-R Cookbook show examples on how to clean marker data and how to use them to create G-1 with ASRgenomics, respectively. Note that pedigree and genomic information can also be combined to create a hybrid pedigree/genomic matrix H. This can be quite useful when genomic data are available only for a portion of the studied individuals.
Step 4: Fit the Mixed Model Using asreml()
The code below shows how you can write a basic Animal model with ASReml-R:
library(asreml)
model <- asreml(
fixed = trait ~ fixed_effects,
random = ~ vm(ID, Ainv),
residual = ~units,
data = mydata
)
For a specific example on how to run an Animal model with pedigree data, explore this example in the ASReml-R Cookbook: ASR010: LMM with pedigree information – Atlantic salmon.
For an example using genomic data, check out the tutorial video: GBLUP using ASReml-R 4.
Finally, have a look at How Can I Make My GBLUP Analysis in ASReml-R Run Faster? for performance optimisation.
Step 5: Check Model Diagnostics
Before going further into the results, make sure you are using a suitable model:
- Examine if your residuals are Normally distributed using the
plot(model)function. - Review convergence messages.
- When testing alternative model structures, you can compare the models using statistics such as AIC, BIC and Likelihood Ratio Tests.
Step 6: Estimate the Heritability of Your Trait
Once the model converges and you are satisfied with it, you can take a look at the estimated variance components:
vc <- summary(model)$varcomp
Then, you can estimate your trait heritability:
h2 <- vpredict(model, h2 ~ V1 / (V1 + V2))
This step is quite important because it indicates, for the trait studied and the data at hand, the portion of the phenotypic variation that is attributable to the additive genetic component. For the EBVs to be meaningful, this parameter shouldn’t be close to zero.
Step 7: Extract EBVs and Calculate Reliability
After fitting your model and checking your heritability, you can extract the EBVs, such as:
ebvs <- summary(model, coef=TRUE)$coef.random
head(ebvs)
Note that if you have additional random effects in your model, you will have to filter the EBVs from the list of BLUPs output that will contain estimations for all the random effects.
You can also calculate the reliability of your EBVs using the following formula:

where σ2a is the additive genetic variance, and PEV is the predictor error variance, which corresponds to the squared standard error (SE) of the EBV:

Note that some people might prefer to visualise the robustness of the results in terms of accuracy (r), which is simply the square root of the reliability:

Once extracted, you can rank the results to identify your best candidates. Don’t forget to keep an eye on the reliability, as high values are indicative of a lower confidence in the result.
For a practical example, see Calculating Accuracy and Reliability of Random Effect Estimates with ASReml-R.
Frequently Asked Questions
What’s the difference between BLUP and EBV?
BLUPs are the solutions associated with any random effects in a mixed linear model; EBVs are only the portion of the BLUPs associated with the additive genetic random effect.
Can ASReml-R estimate breeding values using genomic data?
Yes — ASReml-R supports genomic relationship matrices (G), as well as hybrid matrices (H) models.
What affects EBV reliability?
Many factors can influence EBV reliability, such as quality of data, number of records, number of relatives, strength of relatedness, and the inclusion of correlated traits.
Can I use ASReml-R for plant, animal, or aquaculture breeding?
Absolutely. ASReml-R is used across all species for genetic evaluation, and selection support.
Start Your ASReml-R EBV Analysis Today
Try ASReml-R free for 30 days and check out the ASReml-R Cookbook for practical examples to start estimating breeding values with confidence.
Or get in touch with the VSNi Consultancy Team — our statistical genetics experts can help tailor models to your breeding goals and data, and can help you review your whole breeding pipeline.