Genotype-by-environment interaction and heritability
Quantitative Genetics Practical 12: Replicated genotypes across environments
Learning objectives
Distinguish environmental shifts from genotype-by-environment interaction; interpret reaction norms; estimate variance components in a balanced replicated design; define broad-sense heritability for a genotype mean; and distinguish that target from narrow-sense heritability and offspring response.
A reaction norm describes how one genotype’s expected phenotype changes with environment. Parallel lines can show an environmental effect without interaction. Nonparallel lines show that the genotype contrast changes; crossing lines additionally reverse rankings. Interaction does not require a crossover.
These supplied means illustrate three patterns in arbitrary trait units. They are not observed trial data.
local({ old <-par(mfrow=c(1,3)); on.exit(par(old))for(label innames(patterns)) {matplot(1:2,t(patterns[[label]]),type="b",pch=16:17,lty=1,col=c("#247BA0","#D8A47F"),xaxt="n",xlab="Environment",ylab="Expected trait value",main=label,ylim=c(4,10))axis(1,at=1:2,labels=c("E1","E2"))legend("topleft",c("G1","G2"),col=c("#247BA0","#D8A47F"),pch=16:17,lty=1,bty="n") }})
Figure 1: Parallel environmental responses, nonparallel responses without rank reversal, and a crossover interaction.
Question 1. Can an environment improve the mean trait value without changing genotype rankings?
Suggested answer
Yes. In the parallel example, both genotypes increase by one unit and their contrast remains one. In the nonparallel example, the contrast changes but G1 remains higher. Ranking reverses only in the crossover example.
2. Declare a replicated-genotype experiment
Imagine eight clonally replicated genotypes, each tested in three environments with four independent experimental units per genotype/environment cell. Replicates are separate units, not repeated measurements of the same plant. There are no blocks, spatial trends, missing values or shared residual effects in this teaching design.
For genotype \(i\), environment \(j\) and replicate \(k\), use
\[y_{ijk}=\mu+E_j+G_i+(GE)_{ij}+\epsilon_{ijk}.\]
Environment means \(E_j\) are fixed nuisance effects. Genotype effects have variance \(\sigma_G^2\); independent genotype/environment deviations have variance \(\sigma_{GE}^2\); independent unit residuals have variance \(\sigma_\epsilon^2\). All random components have mean zero and are mutually independent. Environments are treated as exchangeable for interaction sampling around a target mean. This covariance model is a simplification of environments with heterogeneous variances or correlated genotype responses.
The genotype component represents repeatable genetic differences between these complete genotypes. It is not automatically additive breeding value. Randomized allocation and absence of genotype-associated environmental confounding are essential to that interpretation.
The generating variances describe the simulation model; sample variances of eight realized genotype effects need not equal them. The first reaction-norm examples were supplied contrasts, whereas this experiment uses independently generated random components.
Figure 2: Observed genotype means across environments in the synthetic replicated experiment. Apparent differences include sampling error.
An environmental mean shift affects all genotypes. Interaction describes departures from a common shift. A plot of noisy cell means alone does not distinguish interaction variance from residual noise; replication supplies that separation.
4. Estimate variance components from mean squares
For this balanced independent-unit model, expected mean squares are
Solve these equations to obtain method-of-moments estimates. The ANOVA decomposition supplies mean squares; we do not interpret its default fixed-effect genotype test as a random-component test. A random-genotype test would use the interaction mean square as its denominator under this design.
Show R code
fit <-aov(value~genotype*environment,data=data)anova_table <-anova(fit)knitr::kable(anova_table[,c("Df","Sum Sq","Mean Sq")],digits=3)
# Independently reconstruct sums of squares from balanced means.genotype_mean <-rowMeans(cell_mean)env_mean <-colMeans(cell_mean)grand <-mean(cell_mean)interaction_mean <-sweep(sweep(cell_mean,1,genotype_mean,"-"),2,env_mean,"-")+grandSSE <-sum((data$value-cell_mean[cell])^2)stopifnot(abs(MS_G-nEnv*nRep*sum((genotype_mean-grand)^2)/(nG-1))<1e-10,abs(MS_GE-nRep*sum(interaction_mean^2)/((nG-1)*(nEnv-1)))<1e-10,abs(MS_error-SSE/(nG*nEnv*(nRep-1)))<1e-10)
In a different sample, a difference of mean squares can be negative. Report that sampling outcome rather than silently clipping it and calling it an unconstrained estimate. Constrained mixed-model estimation is a separate approach. These simple formulas do not apply unchanged to missing cells, unequal replication, blocks or correlated residuals.
5. Define heritability for the observation unit
The target is a genotype’s main genetic effect across the declared environment population. The observation used to compare genotypes is its mean across \(n_{\mathrm{env}}\) environments and \(n_{\mathrm{rep}}\) units per environment. After common environment effects are accounted for, interaction and residual terms average differently:
This balanced entry-mean definition requires the declared covariance and sampling model; see Piepho and Möhring (2007) for its distinction from unbalanced-trial measures. An entry mean and an individual phenotype are different observation units, so they need different variance denominators.
Show R code
H_mean <-function(variance,environments,replicates) { variance["G"]/(variance["G"]+variance["GE"]/environments+ variance["residual"]/(environments*replicates))}H_model <-H_mean(truth_variance,nEnv,nRep)# This particular seeded sample must yield nonnegative components for the ratio.stopifnot(all(estimates>=0))H_estimated <-H_mean(estimates,nEnv,nRep)c(model_H2_mean=unname(H_model),estimated_H2_mean=unname(H_estimated))
# For the balanced moment estimates, the ratio simplifies algebraically.stopifnot(abs(H_estimated-(1-MS_GE/MS_G))<1e-12)
Environment main effects are common to all entries in each environment. They do not contribute to contrasts between entry means in this fully crossed design. Pooling all 96 observations and dividing genotype variance by their raw variance would include environment shifts and answer a different question.
The last two designs both use 24 units per genotype. Under this independent-interaction model, more environments average interaction variance as well as residual noise. More within-environment replicates reduce residual noise but not that environment’s interaction. Real environmental correlation, costs and representativeness can change this comparison.
Question 2. Does adding environments always improve a genotype-mean evaluation?
Suggested answer
The displayed formula predicts improvement under independent exchangeable interactions and the same target. Correlated environments give less independent information. Environments outside the deployment target can change what is being estimated. Their number alone does not establish relevance or justify the independent-interaction formula.
6. Broad-sense genetic differences are not additive breeding values
Complete genotypes can differ through additive, dominance and epistatic effects. This replicated-genotype design estimates repeatable genetic variation without partitioning those sources. Under an appropriate orthogonal variance decomposition, broad-sense heritability includes all genetic components; narrow-sense heritability includes only additive variance. See Practical 3 for an explicitly additive relationship model.
For a separate hypothetical single-environment population, compare two architectures with the same total genetic variance of four and residual variance of two. Assume a decomposition with no covariance among components.
These are declared component values, not components estimated by our trial. Equal broad-sense heritability does not imply equal additive inheritance or response to sexual selection. Replicating a complete genotype preserves combinations that sexual reproduction can break up. Heritability also refers to a population, environment model and observation unit, not the genetic fraction of one individual’s phenotype.
Exercises
Add a different constant to every observation in each environment. Verify genotype and interaction mean squares stay unchanged in this balanced design.
Set interaction variance to zero in the design comparison. Explain why the two 24-unit designs then have equal model heritability.
If there is only one observation per genotype/environment cell, can this ANOVA separate interaction and unit residual variance?
With one observation per cell, the full interaction model has no residual degrees of freedom. Additional assumptions or a different design are needed to separate interaction from unit error. Treating the combined term as pure interaction would overstate what the design identifies.
Package connection and next topic
This balanced ANOVA is a teaching calculation. Fitted genetic or genotype/environment models belong to estimation tools; gsim owns biological simulation and records, gsel owns objectives and programme design, and gpop owns population summaries. No package interfaces are added here.
Return to the course map. The next gaps are formal HWE testing and a worked association analysis that separates significance, multiple testing and causal interpretation.