General and Specific Combining Ability in AlphaSimR
Gregor Gorjanc and Chris Gaynor
2026-12-01
Source:vignettes/articles/CombiningAbility.Rmd
CombiningAbility.RmdIntroduction and reading guide
General combining ability (GCA) describes a parent’s average performance in crosses with a specified set of mates. Specific combining ability (SCA) describes how a particular cross departs from the performance predicted by the two parents’ GCA effects (Sprague and Tatum 1942). Both depend on the parents and crossing design used to define them.
This article uses a small, complete factorial crossing design between
two sets of inbred diploid parents. It distinguishes the cross means
returned by AlphaSimR from centered GCA effects and SCA
deviations. The companion vignette("traits") introduces
trait specification, the Quantitative
Genetics article explains genetic values and their variances, and
the Genetic Recombination
article explains inheritance during crossing.
| If you want to understand… | Start with… |
|---|---|
| What GCA and SCA mean | A decomposition of cross performance |
What calcGCA() returns |
A complete crossing example |
| How testers affect GCA | Changing the tester set |
| How GCA and SCA contribute to variation | Variance among crosses |
| How to use combining ability in selection | Selection and prediction |
Run the examples in order. Every function that takes a
simParam argument is given one explicitly, so that the
examples can coexist with other simulations in an R session.
A decomposition of cross performance
Let be the mean genetic value of offspring from female parent and male parent . In a complete factorial design, every female is crossed with every male. Giving each cross equal weight, define:
The centered GCA effects are and , and the SCA deviation is . Thus:
The GCA effects average to zero within each parental set. The SCA matrix has zero row and column means. A positive SCA deviation means that a cross performs better than predicted by the two GCA effects; it does not necessarily mean that the cross has the highest genetic value.
This is a decomposition across crosses, whereas
genParam() decomposes the genetic values of individuals
into breeding values and dominance deviations. The two are closely
related. In a factorial between two sets of parents,
corresponds to the hybrid’s breeding value and
to its dominance deviation, and in large designs bv() and
dd() of the hybrids are close to them. They need not agree
exactly, because they are calculated differently.
genParam() estimates an average effect for each locus
separately, by regression on allele dosage in the hybrid population, and
gives an allele the same effect whichever parent it came from. The GCA
effects average over the crosses actually made. They are therefore a
regression on parental identity rather than on loci, and they also
absorb differences in allele frequency between the two parental sets and
linkage disequilibrium among the loci carried by a small number of
parents. Nor are GCA effects the bv() of the parents within
their own populations, which refer to random mating within that
population rather than crossing to the other set. The comparison with genParam below checks how close the
two are for the example.
A complete crossing example
We create six female and six male inbred lines, all drawn from the same founder population. These are two sets of parents, not simulated heterotic groups. The trait includes additive and dominance effects. Because the diploid parents are fully inbred, each cross has a single F1 genotype, so its genetic value also represents its family mean.
set.seed(1942)
founders = quickHaplo(nInd=12, nChr=2, segSites=40, inbred=TRUE)
SPgca = SimParam$new(founders)
SPgca$addTraitAD(nQtlPerChr=20, mean=10, meanDD=0.8, varDD=0.2)
parents = newPop(founders, simParam=SPgca)
females = parents[1:6]
males = parents[7:12]
hybrids = hybridCross(females, males, crossPlan="testcross",
returnHybridPop=TRUE, simParam=SPgca)
combining = calcGCA(hybrids, use="gv")returnHybridPop=TRUE calculates hybrid values without
retaining their full genotypes. It assumes that both sets of parents are
fully inbred, which holds here because they were created from inbred
founders. The assumption is not checked: parents that are not fully
inbred give incorrect hybrid values without an error. Use
returnHybridPop=FALSE when offspring genotypes are needed,
for example for subsequent crossing or genomic prediction.
Means returned by calcGCA
For this balanced design, calcGCA() returns:
| Output | Meaning |
|---|---|
GCAf |
Mean cross performance for each female parent |
GCAm |
Mean cross performance for each male parent |
SCA |
Mean performance of each female-by-male cross |
Despite their names, these outputs retain the overall mean:
SCA is not the centered SCA deviation
.
We calculate the centered quantities below. The id column
identifies parents or crosses, and Trait1 contains values
for the first trait. Cross IDs join the mother and father IDs with an
underscore.
combining$GCAf
#> id Trait1
#> 1 1 14.55903
#> 2 2 12.31083
#> 3 3 13.38569
#> 4 4 13.63986
#> 5 5 13.00220
#> 6 6 13.62170
combining$GCAm
#> id Trait1
#> 1 7 13.15205
#> 2 8 13.10086
#> 3 9 13.09531
#> 4 10 13.04437
#> 5 11 13.72957
#> 6 12 14.39715
head(combining$SCA)
#> id Trait1
#> 1 1_7 14.36159
#> 2 1_8 13.88414
#> 3 1_9 15.15709
#> 4 1_10 14.25152
#> 5 1_11 14.36191
#> 6 1_12 15.33796Centered GCA effects and SCA deviations
Arrange the genetic values by parental identity, rather than relying on the order in which the crosses were generated.
M = matrix(NA_real_, nrow=nInd(females), ncol=nInd(males),
dimnames=list(females@id, males@id))
rowIndex = match(hybrids@mother, females@id)
colIndex = match(hybrids@father, males@id)
M[cbind(rowIndex, colIndex)] = gv(hybrids)[, 1]
stopifnot(!anyNA(M))
crossMean = mean(M)
gcaFemale = rowMeans(M) - crossMean
gcaMale = colMeans(M) - crossMean
expected = crossMean + outer(gcaFemale, gcaMale, "+")
sca = M - expected
round(gcaFemale, 3)
#> 1 2 3 4 5 6
#> 1.139 -1.109 -0.034 0.220 -0.418 0.202
round(gcaMale, 3)
#> 7 8 9 10 11 12
#> -0.268 -0.319 -0.325 -0.376 0.310 0.977
round(sca, 3)
#> 7 8 9 10 11 12
#> 1 0.070 -0.356 0.923 0.068 -0.507 -0.198
#> 2 -0.819 0.409 -0.691 0.884 0.008 0.209
#> 3 -0.401 -0.486 -0.579 0.315 0.351 0.801
#> 4 -0.020 1.364 -0.164 -1.809 1.214 -0.585
#> 5 -0.376 -0.110 0.515 0.099 -0.400 0.273
#> 6 1.546 -0.821 -0.003 0.442 -0.665 -0.499
# Verify centering and reconstruction before rounding.
stopifnot(max(abs(rowMeans(sca))) < 1e-10,
max(abs(colMeans(sca))) < 1e-10,
max(abs(M - (expected + sca))) < 1e-10)
# Check the relationship to calcGCA's uncentered output.
stopifnot(isTRUE(all.equal(
unname(rowMeans(M)),
combining$GCAf$Trait1[match(females@id, combining$GCAf$id)]
)))
stopifnot(isTRUE(all.equal(
unname(colMeans(M)),
combining$GCAm$Trait1[match(males@id, combining$GCAm$id)]
)))
crossIds = paste(hybrids@mother, hybrids@father, sep="_")
stopifnot(isTRUE(all.equal(
gv(hybrids)[, 1],
combining$SCA$Trait1[match(crossIds, combining$SCA$id)],
check.attributes=FALSE
)))Each cell in sca is the residual after accounting for
both parents’ average cross performance. Dominance permits such
departures even though every offspring within a cross has the same
genotype. SCA therefore does not require segregation within a
family.
Changing the tester set
GCA is defined relative to a set of mates. Here we keep the female
lines fixed and compare their mean performance against all six males
with that against the first three males. setPhenoGCA()
makes the testcrosses and averages their performance for each candidate
parent.
allTesters = setPhenoGCA(females, testers=males, use="gv",
inbred=TRUE, onlyPheno=TRUE, simParam=SPgca)
fewerTesters = setPhenoGCA(females, testers=males[1:3], use="gv",
inbred=TRUE, onlyPheno=TRUE, simParam=SPgca)
stopifnot(max(abs(allTesters[, 1] - rowMeans(M))) < 1e-10,
max(abs(fewerTesters[, 1] - rowMeans(M[, 1:3]))) < 1e-10)
round(cbind(
mean_all=allTesters[, 1],
mean_subset=fewerTesters[, 1],
gca_all=allTesters[, 1] - mean(allTesters[, 1]),
gca_subset=fewerTesters[, 1] - mean(fewerTesters[, 1])
), 3)
#> mean_all mean_subset gca_all gca_subset
#> [1,] 14.559 14.468 1.139 1.352
#> [2,] 12.311 11.640 -1.109 -1.476
#> [3,] 13.386 12.593 -0.034 -0.523
#> [4,] 13.640 13.729 0.220 0.613
#> [5,] 13.002 12.708 -0.418 -0.408
#> [6,] 13.622 13.558 0.202 0.442Both the mean and the centered GCA effects can change when testers change; rankings can also change. A parent therefore has combining ability relative to a specified tester set, rather than a single GCA that applies to every breeding population.
With onlyPheno=FALSE, setPhenoGCA() returns
the candidate population with these testcross means stored in its
phenotype slot, and with its fixEff slot set to the value
of the fixEff argument, which genomic selection models
read. The candidates’ own genetic values are unchanged. The
inbred=TRUE option assumes that both candidates and testers
are fully inbred, as for hybridCross() above, and does not
check it. With inbred=FALSE, the function samples one
offspring per candidate-tester pair and averages those sampled values.
Segregation therefore adds sampling variation even with
use="gv". The reps argument, like
varE, h2 and H2, applies only
with use="pheno" and is ignored with use="gv".
It reduces phenotypic error; it does not increase the number of
offspring sampled per pair. hybridCross() and
setPhenoGCA() make one offspring per pair. To average
several offspring per cross, generate them with the
nProgeny argument of makeCross2() and
summarize their values explicitly.
Variance among crosses
For the complete, equally weighted design above, the centered GCA and SCA contributions are orthogonal across crosses. Consequently:
We use population variances, dividing by the number of values, as in the Quantitative Genetics article.
populationVariance = function(x) mean((x - mean(x))^2)
components = c(femaleGCA=populationVariance(gcaFemale),
maleGCA=populationVariance(gcaMale),
SCA=populationVariance(as.vector(sca)))
round(c(components, total=sum(components),
observed=populationVariance(as.vector(M))), 4)
#> femaleGCA maleGCA SCA total observed
#> 0.4654 0.2451 0.4614 1.1719 1.1719
stopifnot(abs(sum(components) -
populationVariance(as.vector(M))) < 1e-10)These are descriptive variances for the chosen crosses, not estimates
of universal GCA or SCA variance components. The simple sum relies on
the complete design and equal weights. In an incomplete or unbalanced
design, row and column means alone do not provide this orthogonal
partition. calcGCA() uses an additive female-plus-male
model to adjust parental means for unbalanced designs; its
SCA output remains the observed cross means. Each offspring
record has equal weight in that fit, while fitted parental means average
equally over the opposite set of parents. Incomplete designs need to be
connected to identify parental effects.
When one side contains only one parent, as for crosses to a single tester, the GCA of each parent on the other side is the mean of its records, so repeated records per cross are averaged.
Estimating variance components from noisy trials requires an appropriate statistical model and an informative design.
Comparison with genParam
To compare the decomposition across crosses with the breeding values
and dominance deviations of individuals, make the same crosses again
with their genotypes retained, so that genParam() can be
applied to them. Each cross has a single genotype, so its genetic value
is the same as in M.
hybridGenotypes = hybridCross(females, males, crossPlan="testcross",
simParam=SPgca)
hybridParam = genParam(hybridGenotypes, simParam=SPgca)
rowIndex = match(hybridGenotypes@mother, females@id)
colIndex = match(hybridGenotypes@father, males@id)
stopifnot(isTRUE(all.equal(gv(hybridGenotypes)[, 1],
M[cbind(rowIndex, colIndex)],
check.attributes=FALSE)))
gcaSum = gcaFemale[rowIndex] + gcaMale[colIndex]
scaDeviation = sca[cbind(rowIndex, colIndex)]
round(c(GCAwithBV=cor(gcaSum, hybridParam$bv[, 1]),
SCAwithDD=cor(scaDeviation, hybridParam$dd[, 1])), 3)
#> GCAwithBV SCAwithDD
#> 0.969 0.956
round(rbind(
combiningAbility=c(additive=sum(components[c("femaleGCA", "maleGCA")]),
dominance=unname(components["SCA"])),
genParam=c(additive=hybridParam$varA[1],
dominance=hybridParam$varD[1])
), 3)
#> additive dominance
#> combiningAbility 0.711 0.461
#> genParam 0.689 0.505The GCA sum and SCA deviation are highly correlated with
bv() and dd() of the hybrids, and their
variances are similar to varA and varD, but
with six parents on each side they are not equal. The agreement improves
as more parents are crossed.
Selection and prediction
The examples use use="gv" to expose the simulated
genetic values. Using phenotypes introduces environmental variation. For
example, setPhenoGCA(..., use="pheno", varE=..., reps=...)
averages simulated testcross phenotypes rather than genetic values.
Specify the trial error and replication to represent the intended
testing scheme.
For choosing parents, compare their average performance against the relevant tester population. For choosing a commercial hybrid, compare its total predicted performance, including the mean, both GCA effects, and SCA. Selecting the largest SCA residual alone can overlook crosses with better total performance.
The genomic prediction functions RRBLUP_GCA() and
RRBLUP_SCA() fit marker models to hybrid data; they do not
simply tabulate cross means as calcGCA() does. The former
fits separate parental-origin additive marker effects, and the latter
also includes dominance effects. Both require training offspring with
genotypes and retained parental origin, so use
returnHybridPop=FALSE when generating those offspring. With
setEBV(..., value="gv"), both models predict total hybrid
genetic values; the SCA model does not return a centered SCA deviation
through this option. Both can fit several traits at once, with every
trait recorded on every training offspring, by giving
traits more than one trait. See
vignette("GenomicSelection") for model choice and
prediction.
As an extension, replace the inbred parents with outbred parents and
simulate several offspring per cross using makeCross2().
Cross means will then be estimated from segregating offspring. Compare
variation among cross means with variation within crosses, keeping this
family partition distinct from the GCA/SCA partition among cross
means.