Calculating Inbreeding

The article of reference about calculating inbreeding is Wright, S. (1922). Coefficient of inbreeding and relationship. American Naturalist, 56. In this article for the coefficient for inbreeding is introduced.

Definition

The inbreeding coefficient is the probability that the two genes on a random locus are equal because they descend from the same gene in an ancestor.

The inbreeding coefficient is a probability, so it will be between 0 and 1. The inbreeding coefficient is based on common ancestry in the parents so we always start from the pedigree to calculate inbreeding. Here's the pedigree of the example we'll use in this article:

Pedigree for the example used in this article

The original method for calculating the inbreeding coefficients is of course from Wright but Henderson & Cunningham have come up with a different method for calculating the same inbreeding coefficients.

The method of Wright

The original method of Wright consisted of finding all common ancestors of the parents and the paths from the parents to these common ancestors. The formula by Wright is (don't worry if you don't have a higher degree in math, I'll explain what it means right after and how it practically works):

Formula of Wright

F is the symbol commonly used for the inbreeding coefficient. Fi is the inbreeding coefficient for bird i. Bird a is a common ancestor of both parents of bird i. Fa is the inbreeding coefficient of the common ancestor a. The n1 and n2 are the number of generation between the common ancestor and both parents. The weird symbol in front is a summation sign. It means that you have to do this for all possible common ancestors and paths and then add the results.

So far the theory - it's far clearer if you do it by example.

Example: FI
In this example A and B are common ancestors for the parents (G and H) of I. The paths from both parents to these common ancestors are:
For ancestor A:
 G - A (n1 = 1)
 G - D - A (n1 = 2)
 H - E - A (n2 = 2)

For ancestor B:
 G - D - B (n1 = 2)
 H - E - B (n2 = 2)

We suppose that A and B are not inbred so (1 + FA) = 1 and (1 + FB) = 1.
The inbreeding because of common ancestor B is:
 F(I<B) = (1/2)(2+2+1) = (1/2)5 = 0.03125 = 3.125%
The inbreeding because of common ancestor A is:
 F(I<A) = (1/2)(1+2+1) + (1/2)(2+2+1) = (1/2)4 + (1/2)5 = 0.0625 + 0.03125 = 0.09375 = 9.375%
The inbreeding coefficient of I is:
 FI = 3.125% + 9.375% = 12.5%

Example: FG
Calculating the inbreeding in G that is a result of father x daughter pairing is:
 A (n1 = 0)
 D - A (n2 = 1)
 FG = (1/2)(0+1+1) = (1/2)2 = 0.25 = 25%

Method of Henderson & Cunningham

This method lets you calculate the inbreeding coefficient for your entire population and also gives you the kinships between individuals.

1. Order all animals from oldest to youngest:
A B D E F G H I

2. Create a square grid with a column and row for each animal:
A B D E F G H I
A                
B                
D                
E                
F                
G                
H                
I                

3. In the diagonal cells (where a column and a row of the same animal cross) write one plus the inbreeding coefficient (1 + F). For the 3 animals without pedigree information we assumed that the inbreeding coefficient is 0, so the diagonal cell becomes 1.

4. The non diagonal cells hold the additive genetic relationship aij. This means that the grid is symmetric because aij = aji. For the animals without pedigree we suppose that they are unrelated: aij = 0.

A B D E F G H I
A 1 0     0      
B 0 1     0      
D                
E                
F 0 0     1      
G                
H                
I                

The rules for further completing the grid are easy. For diagonal cells 1 + aij/2 holds where i and j are the parents of the individual. For non diagonal cells holds aij = (aik + ail)/2 if i is younger then j and k and l are the parents of i.

So for D that has parents A and B:
aAD = (aAA + aAB)/2 = (1 + 0)/2 = 0.5
aBD = (aAB + aBB)/2 = (0 + 1)/2 = 0.5
aDD = 1 + aAB/2 = 1 + 0/2 = 1

Filling these numbers into the grid:

A B D E F G H I
A 1 0 0.5   0      
B 0 1 0.5   0      
D 0.5 0.5 1   0      
E                
F 0 0 0   1      
G                
H                
I                

Next we fill the column and row for E:

A B D E F G H I
A 1 0 0.5 0.5 0      
B 0 1 0.5 0.5 0      
D 0.5 0.5 1 0.5 0      
E 0.5 0.5 0.5 1 0      
F 0 0 0 0 1      
G                
H                
I                

Next filling the column and row for G:

A B D E F G H I
A 1 0 0.5 0.5 0 0.75    
B 0 1 0.5 0.5 0 0.25    
D 0.5 0.5 1 0.5 0 0.75    
E 0.5 0.5 0.5 1 0 0.5    
F 0 0 0 0 1 0    
G 0.75 0.25 0.75 0.5 0 1.25    
H                
I                

Next filling the column and row for H:

A B D E F G H I
A 1 0 0.5 0.5 0 0.75 0.25  
B 0 1 0.5 0.5 0 0.25 0.25  
D 0.5 0.5 1 0.5 0 0.75 0.25  
E 0.5 0.5 0.5 1 0 0.5 0.5  
F 0 0 0 0 1 0 0.5  
G 0.75 0.25 0.75 0.5 0 1.25 0.25  
H 0.25 0.25 0.25 0.5 0.5 0.25 1  
I                

Next filling the column and row for I:

A B D E F G H I
A 1 0 0.5 0.5 0 0.75 0.25 0.5
B 0 1 0.5 0.5 0 0.25 0.25 0.25
D 0.5 0.5 1 0.5 0 0.75 0.25 0.5
E 0.5 0.5 0.5 1 0 0.5 0.5 0.5
F 0 0 0 0 1 0 0.5 0.25
G 0.75 0.25 0.75 0.5 0 1.25 0.25 0.75
H 0.25 0.25 0.25 0.5 0.5 0.25 1 0.625
I 0.5 0.25 0.5 0.5 0.25 0.75 0.625 1.125

(C) Bert Raeymaekers