Variance estimation and breeding values on a 50,000-animal pedigree
The three frozen gsim datasets share a pedigree of 50,000 animals. Each GeneSuite fit includes an intercept, sex, cohort and herd. The two-trait model fits each fixed effect separately for each trait. The longitudinal model fits an animal-specific genetic intercept and slope on the recorded time basis.
Results
Pedigree AI-REML and RHE timings
RHE estimation alone took 13.78, 15.40 and 37.01 seconds for one trait, two traits and random intercept–slope, respectively. Peak process-tree RAM was 139, 265 and 173 MiB. These runs ended with variance estimates.
| Pedigree model | Observed trait values | GeneSuite AI updates | Native estimation (s) | GeneSuite through export (s) | Archived DMU total (s) | Native peak (GiB) | Process-tree peak (GiB) | Predictions |
|---|---|---|---|---|---|---|---|---|
| One trait | 42,497 | 4 | 51.1 | 90.3 | 178.42 | 2.60 | 2.69 | 50,000 |
| Two traits | 65,803 | 5 | 257.6 | 304.5 | 818.46 | 4.54 | 4.66 | 100,000 |
| Random intercept and slope | 169,928 | 5 | 109.4 | 265.3 | 1,182.68 | 4.34 | 4.45 | 100,000 |
The archived DMU 5.6 timings cover DMU1 preparation and DMUAI fitting on the same pedigree and records. Those runs fitted intercept and sex on a Core i7-1365U. The current GeneSuite runs also fitted cohort and herd on a Core Ultra 7 258V. A DMU rerun with the full fixed-effects design is pending.
All three fits converged from the original starting covariances and passed the original-equation residual checks. Each fit used the standalone benchmark driver with exact CHOLMOD selected inversion and four requested threads on a Windows laptop with an Intel Core Ultra 7 258V. The native estimation timer covers optimization and its final evaluation. Total time includes preparation and prediction export. Each model was timed once. The longitudinal predictions are genetic values at two time points per animal. Native peak is the Windows working-set high-water mark. Process-tree peak is the sum of working sets sampled every 0.1 seconds.
For one trait, AI-REML estimated genetic variance at 0.988 and residual variance at 1.133, against realised values of 0.980 and 1.126. For two traits, the genetic covariance was 0.407 against 0.401 realised. The longitudinal slope variance was 0.248 against 0.244 realised.
AI-REML timings, memory and residual checks · All 12 AI-REML and RHE estimates with generating and realised values
Ordinary RHE and optional BLUP
| Model | RHE (s) | RHE peak (MiB) | BLUP and export (s) | BLUP peak (MiB) | RHE + BLUP total (s) | AI-REML total (s) | Time saved |
|---|---|---|---|---|---|---|---|
| One trait | 13.78 | 139 | 15.31 | 286 | 29.09 | 90.32 | 61.2 s (67.8%) |
| Two traits | 15.40 | 265 | 21.85 | 636 | 37.25 | 304.53 | 267.3 s (87.8%) |
| Random intercept and slope | 37.01 | 173 | 41.11 | 699 | 78.13 | 265.34 | 187.2 s (70.6%) |
Run model-vc.yml alone for variance and covariance estimates. Run model-blup.yml afterwards if you want breeding values. Each command used four compute threads. Ordinary RHE used 32 probes. Times include input preparation and output. RAM is the process-tree working set sampled every 0.1 seconds, including the runner and native process. Shared pages can count twice.
The one-trait, two-trait and longitudinal models used 42,497, 65,803 and 169,928 observed scalar values. Their BLUP residuals passed the original checks. They returned 50,000 breeding values, 100,000 trait-specific breeding values and 100,000 predictions on the longitudinal grid, respectively.
Prediction accuracy
RHE + BLUP saved 68% to 88% of the time from input preparation through prediction export on these three four-thread runs. The largest increase in root mean squared error (RMSE) was 0.64% for the longitudinal genetic slope. For the other four predictions, RMSE changed by less than 0.15% in either direction.
| Prediction | RHE + BLUP correlation | AI-REML correlation | RHE + BLUP RMSE | AI-REML RMSE | RMSE change with RHE |
|---|---|---|---|---|---|
| One-trait breeding value | 0.74739 | 0.74744 | 0.65806 | 0.65796 | +0.016% |
| Two-trait model, trait 1 | 0.72599 | 0.72594 | 0.68958 | 0.68958 | −0.001% |
| Two-trait model, trait 2 | 0.71079 | 0.71182 | 0.62250 | 0.62160 | +0.145% |
| Longitudinal genetic intercept | 0.88657 | 0.88673 | 0.45915 | 0.45864 | +0.110% |
| Longitudinal genetic slope | 0.64757 | 0.64977 | 0.37789 | 0.37547 | +0.643% |
Each row compares both methods with the same simulated genetic values for all 50,000 animals, matched by pedigree ID. Correlation is the Pearson correlation with truth. Lower RMSE means smaller prediction errors in the original units. The longitudinal intercept is the genetic value at basis zero. The slope is the value at basis one minus the intercept.
Covariance recovery
| Model | Component | Generating | Realised | RHE | AI-REML |
|---|---|---|---|---|---|
| One trait | Genetic variance | 1.000 | 0.980 | 0.969 | 0.988 |
| One trait | Residual variance | 1.125 | 1.126 | 1.140 | 1.133 |
| Two traits | Genetic variance, trait 1 | 1.000 | 0.999 | 1.051 | 1.054 |
| Two traits | Genetic covariance between traits | 0.400 | 0.401 | 0.437 | 0.407 |
| Two traits | Genetic variance, trait 2 | 0.800 | 0.774 | 0.727 | 0.799 |
| Two traits | Residual variance, trait 1 | 1.125 | 1.109 | 1.091 | 1.091 |
| Two traits | Residual covariance between traits | 0.225 | 0.228 | 0.207 | 0.236 |
| Two traits | Residual variance, trait 2 | 0.900 | 0.901 | 0.953 | 0.894 |
| Random intercept and slope | Genetic intercept variance | 1.000 | 0.982 | 0.938 | 0.997 |
| Random intercept and slope | Genetic intercept–slope covariance | 0.150 | 0.140 | 0.103 | 0.146 |
| Random intercept and slope | Genetic slope variance | 0.250 | 0.244 | 0.190 | 0.248 |
| Random intercept and slope | Residual variance | 0.800 | 0.800 | 0.861 | 0.797 |
Generating values include the residual multiplier of 0.75 used in the one- and two-trait simulations. Realised genetic entries use the simulated breeding values or regression coefficients of all 50,000 animals. Residual variances use each trait’s observed records. The two-trait residual covariance uses 23,306 paired observations. The realised values describe this particular pedigree and set of random draws.
Ordinary pedigree RHE on the frozen 50K data
Animal-space calculation reduced native two-trait RHE time from 6.21 to 2.80 seconds and longitudinal native RHE peak RAM from 350 to 133 MiB.
Timing and memory CSV · Covariance CSV · Prediction accuracy CSV