Skip to main content
Genetics, Selection, Evolution : GSE logoLink to Genetics, Selection, Evolution : GSE
. 2015 Apr 29;47(1):33. doi: 10.1186/s12711-015-0108-6

A novel recursive algorithm for the calculation of the detailed identity coefficients

Luis Alberto García-Cortés 1,
PMCID: PMC4414392  PMID: 25926309

Abstract

Background

A recursive algorithm to calculate the fifteen detailed coefficients of identity is introduced. Previous recursive procedures based on the generalized coefficients of kinship provided the detailed coefficients of identity under the assumption that the two individuals were not an ancestor of each other.

Findings

By using gametic relationships to include three, four or two pairs of gametes, we can obtain these coefficients for any pair of individuals. We have developed a novel linear transformation that allows for the calculation of pairwise detailed identity coefficients for any pedigree given the gametic relationships. We illustrate the procedure using the well-known pedigree of Julio and Mencha, which contains 20 Jicaque Indians of Honduras, to calculate their detailed coefficients.

Conclusions

The proposed algorithm can be used to calculate the detailed identity coefficients of two or more individuals with any pedigree relationship.

Background

The 15 detailed states of identity were first described by Harris [1] and Gillois [2]. Throughout this paper, they will be referred to identity coefficients as described by Cockerham [3].

To circumvent the absence of recurrence rules to obtain identity coefficients, Karigl [4], following the rules for generalized kinship coefficients [1,3], obtained identity coefficients using a triangular linear transformation. This transformation provided the 9 condensed identity coefficients for any pair of individuals, but the 15 detailed identity coefficients can only be calculated using Karigl’s method under the assumption that neither of the two individuals is an ancestor of the other. To obtain generalized kinship coefficients, Lange and Sinsheimer [5] described an alternative way, which can calculate the detailed coefficients of identity without this limitation. Unfortunately, the implementation of the latter method is not a triangular linear transformation.

An alternative to using multiple kinship coefficients is the use of multiple gametic relationships. These relationships, called chromosome pedigrees by Donnelly [6], have been succesfully used to account for dominance in linear models [7-9]. Here, we use these multiple gametic relationships to develop a new method to calculate the 15 detailed identity coefficients.

Generalized gametic relationships

The coancestry between two individuals X and Y, ϕXY, is usually calculated following simple recurrence rules. These rules can be implemented using tabular methods or languages with recursive function support. To calculate the whole set of coancestries for a given pedigree, only two formulae are required [10]:

ϕXX=1+ϕFM/2,ϕXY=ϕFY+ϕMY/2, (1)

where F and M are the father and the mother of individual X, respectively. These equations operate successively over pairs (X,Y) where X is assumed to be more recent than Y. Let x and x be the paternally and maternally inherited copies at a given locus carried by individual X and y and y the corresponding copies carried by individual Y. The coancestry between X and Y can then be written as:

ϕXY=14Pxy+Pxy+Pxy+Pxy,

where ≡ stands for identical by descent (IBD).

Analogous relationships have been described for gametes [6] as ψab=P(ab) and recurrence rules have been developed for their pairwise relationships [6,7]:

ψaa=1,ψab=1/2ψgb+ψhb, (2)

where a and b denote two gametes in the pedigree. Both g and h are the direct ancestral gametes of a, that is, the gametes of the father or the mother if a is a paternal or maternal gamete, respectively. Although Equations (1) and (2) are closely related, they have different interpretations.

We use the three-way (ψabc), the four-way (ψabcd) and the two-pair (ψab,cd) gametic relationships as counterparts of the conventional generalized kinship coefficients [4]. These generalized gametic relationships correspond to the probability of three or four gametes to be IBD. Note that these multiple gametic relationships correspond to multiple gametic identities, regardless of the identity by descent with other gametes. For instance, for individuals X and Y, whose paternally and maternally inherited gametes are described above,

ψxxy=Pxxy=Pxxyy+Pxxyy.

ψab,cd is the probability that gametes a and b are IBD and simultaneously c and d are also IBD. For instance, for individuals X and Y,

ψxx,yy=Pxxyy+Pxxyy.

The recursive formulae for the whole set of multiple gametic relationships are

ψaa=1,ψab=12ψgb+ψhb,ψaaa=1,ψaab=ψab,ψabc=12ψgbc+ψhbc,ψaaaa=1,ψaaab=ψab,ψaabc=ψabc,ψabcd=12ψgbcd+ψhbcd,ψaa,aa=1,ψaa,ab=ψab,ψab,ac=ψabc,ψaa,bc=ψbc,ψab,cd=12ψgb,cd+ψhb,cd. (3)

For an easier implementation, Equation (3) can be summarized in a simple set of rules

  1. In any n-way relationship, merge groups sharing a given gamete, that is, ψab,ac=ψabac

  2. In any n-way relationship, discard repeated gametes, i.e. ψaabc=ψabc or ψaa,bc=ψa,bc.

  3. Given that the probability of a gamete to be IBD to itself is 1, discard groups of identity including a single gamete, i.e. ψa,bc=ψbc.

  4. Identities with a single gamete are 1 and identities with two or more founder gametes at the same group are 0.

  5. Calculate ψ=12ψ+ψ, where θ stands for any identity pattern and a for a gamete of the youngest individual. For instance ψab,cd=12ψgb,cd+ψhb,cd or ψabc=12ψgbc+ψhbc.

As long as these rules are correct and regardless of the number of gametes involved, they can be used to calculate identities involving more than two individuals.

The detailed identity coefficients

The 15 detailed coefficients of identity for individuals X and Y can be calculated from the generalized gametic relationships by a simple linear transformation. We will consider the 15 partitions or identity states as described by Gillois [2] and Jacquard [11], i.e.,

S1:xxyyS2:xxyyS3:xxyyS4:xyyxS5:xyyxS6:xxyyS7:xxyyS8:xxyyS9:xyxyS10:xyxyS11:xyxyS12:xyxyS13:xyxyS14:xyxyS15:xyxy

The detailed identity coefficients δi are the probabilities of each state Si for a given pair of individuals.

Generalized kinships [4] are a linear transformation of the pairwise detailed identity coefficients. For instance, ψxxyy requires the state S1 to be true, then we can write ψxxyy=δ1. Similarly, ψxxy requires either S1 or S2 to be true and therefore ψxxy=δ1+δ2, and so on for all ψ. A set of 15 equalities is defined to set up the following linear system of equations.

100000000000000110000000000000101000000000000100100000000000100010000000000100001000000000111001100000000100111010000000100000001000000110100001100000101010001010000100000000001000101100000001100110010000001010111111111111111δ1δ2δ3δ4δ5δ6δ7δ8δ9δ10δ11δ12δ13δ14δ15=ψxxyyψxxyψxxyψxyyψxyyψxx,yyψxxψyyψxy,xyψxyψxyψxy,xyψxyψxy1 (4)

The coefficient matrix in Equation (4) is triangular and is equivalent to formula (8) in [4]. Nevertheless, the right hand side here includes the generalized gametic relationships instead of their kinship counterparts.

An example: the detailed identity coefficients of the Jicaque Indians

We reanalyzed the pedigree of the Jicaque indians Julio and Mencha [12] presented in Figure 1 and previously analyzed in [4,11,13]. Previous analyses have focused on the identity coefficients between Julio and Mencha and between two of their progeny. Table 1 shows these results and those of two other pairs: Julio vs. one of their progeny and Mencha vs. one of their progeny.

Figure 1.

Figure 1

The pedigree of the Jicaque Indians Julio and Mencha.

Table 1.

Detailed coefficients of identity for four pairs involving Julio, Mencha and their progeny

Julio-Mencha Progeny-progeny Julio-progeny Mencha-progeny
δ 1 0.01025 0.06580 0.03467 0.03467
δ 2 0.02393 0.04333 0.08252 0.00000
δ 3 0.02490 0.04333 0.00000 0.08252
δ 4 0.02393 0.04333 0.06665 0.06665
δ 5 0.02490 0.04333 0.08228 0.08228
δ 6 0.00708 0.00729 0.00000 0.00000
δ 7 0.05103 0.02383 0.00000 0.00000
δ 8 0.05103 0.02383 0.00000 0.00000
δ 9 0.05127 0.24713 0.08228 0.06665
δ 10 0.10937 0.15900 0.29248 0.00000
δ 11 0.16992 0.15900 0.00000 0.29248
δ 12 0.00708 0.00729 0.06665 0.08228
δ 13 0.05103 0.02383 0.00000 0.29248
δ 14 0.05103 0.02383 0.29248 0.00000
δ 15 0.34326 0.08582 0.00000 0.00000

Program source codes written in Fortran 90 and examples are available at https://github.com/agarcor21/IdentityCoefficients.

Discussion

The identity by descent of two gametes [6-9] is conceptually simpler than the kinship between individuals because it avoids any random sampling of genes. Although the number of gametes is larger than the number of individuals, its simple definition results in more intuitive recursive formulae and easier calculations.

Here, we have provided a novel method to derive the detailed identity coefficients [1,2]. Karigl derived a simple transformation to calculate these coefficients from the multiple kinship coefficients, which provided the 15 identity coefficients when the individuals were not ancestor-descendant related. Lange and Sinsheimer [5] first provided exact equations for these 15 coefficients without any assumption. Depending on the purpose of the study, researchers have used 7 or 9 condensed identity coefficients. For instance, in order to apply the identity coefficients to dominance models, 7 condensed coefficients can be used [8,9]. To our knowledge, the algorithm proposed in [9] has never been used to calculate the 15 detailed coefficients, but the formulas presented in their paper could be used to obtain them in a direct way.

We have proposed using multiple gametic relationships to calculate the 15 detailed identity coefficients. The linear transformation in this paper is similar to equation 8 of Karigl’s approach [4]. Reordering the rows in Equation (4) to follow Karigl’s pattern [4], both formulae only differ on the right hand side. Note that the meaning of both formulae is rather different.

The procedure presented here has been successfully implemented on small pedigrees. In large data sets, the number of calls to the recursive function will depend on the number of generations and the structure of the pedigree. Implementing the procedure in such scenarios is beyond our goal, but path counting or graph theory-based methods [14,15] have been developed to improve the computing efficiency of this calculation.

Acknowledgements

This work was funded by grant CGL2012-39861-C02-02 from Ministerio de Economía y Competitividad. We are most grateful to Ángeles de Cara, Luis Gómez-Raya and Andrés Legarra for comments on the manuscript. We are also grateful to Rohan Fernando for providing the source code of one of the referred algorithms.

Footnotes

Competing interests

The authors declare that they have no competing interests.

Authors’ contributions

LAGC conceived the study, designed and performed all the analyses and drafted the manuscript. The author read and approved the final manuscript.

References

  • 1.Harris DL. Genotypic covariances between inbred relatives. Genetics. 1964;50:1319–48. doi: 10.1093/genetics/50.6.1319. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Gillois M. La relation d’identité en génétique. Ann Inst Henri Poincaré. 1964;B2:1–94. [Google Scholar]
  • 3.Cockerham CC. Higher order probability functions of identity of alleles by descent. Genetics. 1971;69:235–46. doi: 10.1093/genetics/69.2.235. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Karigl G. A recursive algorithm for the calculation of identity coefficients. Ann Hum Genet. 1981;45:299–305. doi: 10.1111/j.1469-1809.1981.tb00341.x. [DOI] [PubMed] [Google Scholar]
  • 5.Lange K, Sinsheimer JS. Calculation of genetic identity coefficients. Ann Hum Genet. 1992;56:339–46. doi: 10.1111/j.1469-1809.1992.tb01162.x. [DOI] [PubMed] [Google Scholar]
  • 6.Donnelly KP. The probability that related individuals share some section of genome identical by descent. Theor Popul Biol. 1983;23:34–63. doi: 10.1016/0040-5809(83)90004-7. [DOI] [PubMed] [Google Scholar]
  • 7.Smith SP, Allaire FR. Efficient selection rules to increase non-linear merit: application to selection. Genet Sel Evol. 1985;17:387–406. doi: 10.1186/1297-9686-17-3-387. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.de Boer IJM, Hoeschele I. Genetic evaluation methods for populations with dominance and inbreeding. Theor Appl Genet. 1993;86:245–258. doi: 10.1007/BF00222086. [DOI] [PubMed] [Google Scholar]
  • 9.Lo LL, Fernando RL, Cantet RJC, Grossman M. Theory for modelling means and covariances in a two-breed population with dominance inheritance. Theor Appl Genet. 1995;90:49–62. doi: 10.1007/BF00220995. [DOI] [PubMed] [Google Scholar]
  • 10.Emik L, Terrill CE. Systematic procedures for calculating inbreeding coefficients. J Hered. 1949;40:51–55. doi: 10.1093/oxfordjournals.jhered.a105986. [DOI] [PubMed] [Google Scholar]
  • 11.Jacquard A. The genetic structure of populations. New York: Springer; 1973. [Google Scholar]
  • 12.Chapman AM, Jacquard AM. Un isolat d’Amérique Centrale: Les indiens Jicaques du Honduras. I.N.E.P., editor. Génétique et Populations. Presses Universitaires de France: 1971.
  • 13.Nadot R, Vaysseix G. Apparentement et identité, algorithme de calcul des coefficients d’identité. Biometrics. 1973;29:347–59. doi: 10.2307/2529397. [DOI] [Google Scholar]
  • 14.Cheng E, Elliott B, Ozsoyoglu ZM. Efficient computation of kinship and identity coefficients on large pedigrees. J Bioinform Comput Biol. 2009;7:429–53. doi: 10.1142/S0219720009004175. [DOI] [PubMed] [Google Scholar]
  • 15.Abney M. A graphical algorithm for fast computation of identity coefficients and generalized kinship coefficients. Bioinformatics. 2009;25:1561–3. doi: 10.1093/bioinformatics/btp185. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Genetics, Selection, Evolution : GSE are provided here courtesy of BMC

RESOURCES