Skip to content

Algorithm

HomoeoGWAS has two analyses: a subgenome-partitioned mixed model for additive effects, and an interaction test whose unit is the homoeolog group. Both start from genotypes split by subgenome.

1. Subgenome-partitioned mixed model (homoeogwas fit)

For subgenomes s ∈ {A, B, D, …}:

y = Xβ + Σ_s u_s + e,   u_s ~ N(0, σ²_s K_s),   e ~ N(0, σ²_e I)
  • K_s is the genomic relationship matrix of subgenome s, K_s = Z_s Z_sᵀ / Σ_j 2p_sj(1 − p_sj), built from mean-imputed dosages centred by twice the allele frequency (variants with MAF ≥ 0.01) and scaled to trace n.
  • The variance components are fitted jointly by restricted maximum likelihood (REML) from several starting points; the fit with the highest likelihood is kept. Components below 10⁻³ of the phenotypic variance are flagged as boundary estimates.
  • The proportion of phenotypic variance explained by subgenome s is PVE_s = σ²_s / (Σ σ² + σ²_e). A parametric bootstrap (refits on phenotypes drawn from the fitted model) gives percentile intervals and the probability that each subgenome ranks first.
  • Markers are tested with the one-degree-of-freedom generalized-least-squares statistic χ² = U²/I, with the variance components fixed at the genome-wide fit.
  • With leave-one-chromosome-out (LOCO) enabled, the kernel of the subgenome that carries the tested chromosome is rebuilt without that chromosome's markers, so a marker is not tested against a kinship that already contains it.
  • The genomic inflation factor is λ_GC = median(χ²) / 0.4549.

2. Homoeolog-group interaction test (homoeogwas interact)

Unit. A homoeolog group holds one gene copy per subgenome. A group of two, three or four copies contributes one, three or six pairwise edges; no higher-order coefficient is fitted. Each gene copy is represented by the SNPs assigned to it (gene body ± flank), mean-imputed and standardized.

Encodings. Each edge between copies X and Y is tested with three encodings:

encoding interaction columns main effects in the null
minor-allele burden product of the two minor-allele burdens both burdens
PC1 product of the first principal-component scores of the two gene blocks both PC1 scores
kernel up to nine cross-products of the first three principal components of each copy (a low-rank form of the Hadamard product of the two gene kernels) the top PCs of both copies

Test. The phenotype is inverse-normal transformed. A null model with one relationship matrix per subgenome is fitted by REML and used to whiten the data, W = V̂^{-1/2}. Each encoding is a whitened nested F-test of its interaction columns, conditional on the covariates and on the main effects of both copies.

Combination. The encoding P values of an edge, and then the edge P values of a group, are combined with the equal-weight Cauchy combination

T = (1/m) Σ_j tan{(0.5 − p_j) π},    P = 0.5 − arctan(T) / π

giving one group P value (group-omniB). The encoding and edge P values are reported to show which copy pair and which encoding carry the evidence; they are not part of the discovery family.

3. Experiment-wide error control

All groups of a declared analysis form one family, so the multiplicity correction covers every tested group.

  • Parametric bootstrap. Null phenotypes y*_b = Cβ̂ + V̂^{1/2} z_b, z_b ~ N(0, I), b = 1, …, B, are drawn from the fitted null model and scored with the same whitening matrix. The minimum P value over the family is recorded for each replicate.
  • Adjusted P value. p_adj(g) = (1 + #{b : min_h p*_hb ≤ p_g}) / (B + 1). Groups whose P value falls below the ⌊α(B + 1)⌋-th smallest null minimum are rejected at family-wise level α (single-step minimum P). Replicates with a non-finite statistic contribute a minimum of zero, which is conservative.
  • Structure-aware null (smooth_pc4). Residual variance in diversity panels often follows population structure. The squared whitened residuals of the null fit are regressed on the top four eigenvectors of the mean subgenome relationship matrix (gamma GLM, log link); the fitted variances w, normalized to mean one, rescale the bootstrap draws: y*_b = Cβ̂ + w^{1/2} ∘ (V̂^{1/2} z_b). The observed statistics are unchanged. Enable it with calibration.null_variance: smooth_pc4 (group omniB; requires checkpoint.enabled: true). Configs generated by the workflow and the AI-assistant interface use it by default; a config that does not set it uses the homoscedastic null (w = 1), which also serves as the sensitivity analysis.

Typical settings are B = 2,000 and α = 0.05.

4. Reading a significant group

A significant group reports interaction evidence for that homoeolog group and its genomic neighbourhood. Identifying the interacting partner and the causal genes calls for follow-up (homoeogwas follow-up, allele-specific expression, near-isogenic lines or homoeolog-specific editing), and replication in an independent population.

5. Optional extension: global homoeolog kernel

fit can add a global homoeolog kernel K_hom = K_A ⊙ K_B [⊙ …] to the additive model (kernels.include_hadamard). With four or more subgenomes it falls back to the mean of the pairwise products to avoid rank collapse. This kernel estimates an aggregate variance component; it does not test which homoeolog groups interact, and it is not used by interact.