VPREDICT !DEFINE F PhenVar Sire + Residual F GenVar Sire * 4 H herit GenVar PhenVar
VPREDICT !DEFINE F phenvar 1 + 2 # Sire + Res F genvar 1 * 4 # Sire * 4 H herit 4 3 # genvar phenvarAssuming that the instructions in the ASReml code box corresponds to a simple sire model ( ~ mu !r Sire) so that variance component 1 is the Sire variance and variance component 2 is the Residual variance, then
F phenvar 1 + 2 | or |
F phenvar Sire + Residual | creates a third component called phenvar |
which is the sum of the variance components, | |
that is, the phenotypic variance, | |
F genvar 1 * 4 | or |
F genvar Sire * 4 | creates a fourth component called genvar |
which is the sire variance component multiplied by 4, | |
that is, the genotypic variance, and | |
H herit 4 3 | or |
H herit genvar phenvar | calculates the heritability. |
VPREDICT !DEFINE F phenvar 1 + 2 # Sire + Res F genvar 1 * 4 # Sire * 4 H herit 4 3 # genvar phenvarIn the example
H herit 4 3 | or |
H herit genvar phenvar | calculates the heritability by calculating |
component 4 (from second line) / component 3 (from first line), | |
that is, genetic variance / phenotypic variance. |
VPREDICT !DEFINE F phenvar 1:3 + 4:6 #F phenvar Sire + Residual R phencorr 7 8 9 #R phencorr phenvar R gencorr 4:6 #R gencorr SireVar(r)=r2[Var(σ2a) / ( 4 σ2aσ2a) +Var(σ2b) / (4 σ2bσ2b) +Var(σab} / σ2ab
R phencorr 7 8 9 | or |
R phencorr phenvar | calculates the phenotypic covariance by calculating |
v8 / √( v7v9)} where components 7, 8 and 9 are created | |
with the first line of the .pin file, and | |
R gencorr 4:6 | or |
R gencorr Sire | calculates the genotypic covariance by calculating |
v5 / √(v4v6) where components 4, 5 and 6 | |
are variance components from the analysis. |
... coop.fmt ywt fat ~ Trait Trait.(age c(brr) sex sex.age) !r us(Trait).sire !f Tr.grp residual units.us(Trait) VPREDICT !DEFINE F phenvar units.us(Trait);us(Trait) + us(Trait).sire;us(Trait) # 1:3 + 4:6 F addvar sire * 4 # 4:6 * 4 H heritA addvar[1] phenvar[1] # 10 7 H heritB addvar[3] phenvar[3] # 12 9 R phencorr phenvar # 7 8 9 R gencorr addvar # 4:6The relevant lines of the .asr file are
Model_Term Sigma Sigma Sigma/SE % C units.us(Trait) 1356 effects Trait US_V 1 1 19.7352 19.7352 18.02 0 P Trait US_C 2 1 2.58252 2.58252 10.37 0 P Trait US_V 2 2 1.70532 1.70532 18.04 0 P us(Trait).sire 184 effects Trait US_V 1 1 1.78978 1.78978 2.09 0 P Trait US_C 2 1 0.573268E-01 0.573268E-01 0.43 0 P Trait US_V 2 2 0.582773E-01 0.582773E-01 1.54 0 PNumbering the parameters reported in bsiremod.asr (and bsiremod.vvp)
F phenvar units.us(Trait);us(Trait) + us(Trait).sire;us(Trait) | or | ||||||||||||||||||||||||||||
F phenvar units + sire | or | ||||||||||||||||||||||||||||
F phenvar 1:3 + 4:6 | |||||||||||||||||||||||||||||
creates new components v7= v1+ v4, | v8= v2+ v5 and
v9= v3+ v6, |
F addvar sire * 4 | or | F addvar 4:6 * 4
| creates new components v10 = 4 v4 | | v11 = 4 v5
and
v12 = 4v6, |
H heritA addvar[1] phenvar[1] | or | H heritA 10 7
| forms v10 / v7 to give the heritability for ywt, |
H heritB addvar[3] phenvar[3] | or | H heritB 12 9
| forms v12 / v9 to give the heritability for fat, |
R phencorr phenvar | or | R phencorr 7 8 9
| forms v8/√(v7v9), | | that is, the
phenotypic correlation between ywt and fat,
| R gencorr addvar | or | R gencorr 4:6 |
forms v5/√(v4v6), | that is, the
genetic correlation between ywt and fat.
| |
- - - Results from analysis of ywt fat - - - units.us(Trait) 1356 effects 1 units.us(Trait);us(Trait) V 1 1 19.7352 1.09518 2 units.us(Trait);us(Trait) C 2 1 2.58252 0.249038 3 units.us(Trait);us(Trait) V 2 2 1.70532 0.945299E-01 us(Trait).sire 184 effects 4 us(Trait).sire;us(Trait) V 1 1 1.78978 0.856354 5 us(Trait).sire;us(Trait) C 2 1 0.573268E-01 0.133318 6 us(Trait).sire;us(Trait) V 2 2 0.582773E-01 0.378424E-01 7 phenvar 1 21.525 1.3639 8 phenvar 2 2.6398 0.27639 9 phenvar 3 1.7636 0.99638E-01 10 addvar 4 7.1591 3.4274 11 addvar 5 0.22931 0.53416 12 addvar 6 0.23311 0.15106 heritA = addvar 10/phenvar 7= 0.3326 0.1476 heritB = addvar 12/phenvar 9= 0.1322 0.0836 phenco 2 1 = phenv 8/SQR[phenv 7*phenv 9]= 0.4285 0.0347 gencor 2 1 = addva 11/SQR[addva 10*addva 12]= 0.1775 0.3835 Notice: The parameter estimates are followed by their approximate standard errors.The first 6 lines are copied from the .asr file.