Search tips
Search criteria 


Logo of gseBioMed CentralBiomed Central Web Sitesearchsubmit a manuscriptregisterthis articleGenetics, Selection, Evolution : GSEJournal Front Page
Genet Sel Evol. 2017; 49: 50.
Published online 2017 June 15. doi:  10.1186/s12711-017-0324-3
PMCID: PMC5472000

On marker-based parentage verification via non-linear optimization



Parentage verification by molecular markers is mainly based on short tandem repeat markers. Single nucleotide polymorphisms (SNPs) as bi-allelic markers have become the markers of choice for genotyping projects. Thus, the subsequent step is to use SNP genotypes for parentage verification as well. Recent developments of algorithms such as evaluating opposing homozygous SNP genotypes have drawbacks, for example the inability of rejecting all animals of a sample of potential parents. This paper describes an algorithm for parentage verification by constrained regression which overcomes the latter limitation and proves to be very fast and accurate even when the number of SNPs is as low as 50. The algorithm was tested on a sample of 14,816 animals with 50, 100 and 500 SNP genotypes randomly selected from 40k genotypes. The samples of putative parents of these animals contained either five random animals, or four random animals and the true sire. Parentage assignment was performed by ranking of regression coefficients, or by setting a minimum threshold for regression coefficients. The assignment quality was evaluated by the power of assignment (Pa) and the power of exclusion (Pe).


If the sample of putative parents contained the true sire and parentage was assigned by coefficient ranking, Pa and Pe were both higher than 0.99 for the 500 and 100 SNP genotypes, and higher than 0.98 for the 50 SNP genotypes. When parentage was assigned by a coefficient threshold, Pe was higher than 0.99 regardless of the number of SNPs, but Pa decreased from 0.99 (500 SNPs) to 0.97 (100 SNPs) and 0.92 (50 SNPs). If the sample of putative parents did not contain the true sire and parentage was rejected using a coefficient threshold, the algorithm achieved a Pe of 1 (500 SNPs), 0.99 (100 SNPs) and 0.97 (50 SNPs).


The algorithm described here is easy to implement, fast and accurate, and is able to assign parentage using genomic marker data with a size as low as 50 SNPs.


The advent of DNA markers has facilitated verification of candidate parents thus enabling more accurate pedigrees for genetic evaluation, resolution of conflicts in the trading of breeding animals, and basic parent identification in extensive production systems. For the last two decades, this verification was based on short tandem repeat markers (STR), which are commonly called micro-satellites, are highly polymorphic and thus allow discrimination between individuals even when the total number of markers used is small. Due to their highly polymorphic character, parentage assignment on the basis of STR can be done by simple exclusion or by categorical allocation. For an exhaustive review of parentage assignment algorithms see [1].

However, in the last decade bi-allelic single nucleotide polymorphisms (SNPs) have quickly become the marker of choice for genotyping projects. Their sheer abundance has made them much more suitable for genome-wide association studies than other polymorphic markers. Furthermore, imputation techniques provide a compatibility layer between different SNP genotypes relieving researchers of the necessity to regenotype ancient animals as SNP panels change. Gradually, SNP genotypes have become the backbone of genomic selection which is now replacing pedigree selection in many livestock industries [2].

Animal breeding is done within an economic environment, and it was only a matter of time before questions arose about the need to genotype animals twice, with STR for parentage verification and with SNPs for genomic selection. Since many ancient animals have been genotyped with STR only, a first step to merge both approaches was to impute STR from SNP genotypes [3]. While this provides the necessary compatibility link between STR-based parentage verification and SNP genotypes during a transition period, parentage verification should omit imputation and rely on SNPs once SNP genotypes for both parents and offspring are available. However, compared to STR the bi-allelic nature of SNPs requires many more markers for a successful parent identification and based on results from simulations and real data it was suggested that between 50 to 500 markers were necessary [47]. In addition, it has been necessary to develop new algorithms that could exploit information from SNP genotypes for that purpose. One method counts the number of opposing homozygous marker loci (OHL), and the result is used as a possible measure of parentage [8, 9]. With this method, parents are identified as having the smallest number of loci with a homozygosity status opposite to that of the offspring because opposing homozygosity between parents and offspring is theoretically impossible, but can result from genotyping errors. Although improvements in the computational efficiency have made application of the method practical [10], its main shortcoming remains, which is that the sample of putative parents must contain one or two true parents, and knowledge about how many true parents are in the sample must exist [11]. Likelihood-based methods (LH) [12, 13], which were originally developed to use STR, can allow for the absence of the true parents but are slow. Modified likelihood methods have been developed for application to SNP genotypes but have difficulty assigning parents when the number of SNPs is small (100 or less) [11].

This article describes a non-linear optimisation approach for parentage assignment, called “constrained genomic regression” (CGR), which overcomes the limitation of OHL counting. The algorithm was tested on a data set of 19,051 Australian Angus beef cattle SNP genotypes which contained 14,816 sire-offspring pairs. CGR results were compared to results from parentage assignment via OHL counting [8, 9] and to LH-based parentage assignment implemented in the publicly available software “Cervus” [12].



The problem to solve can be written as a simple linear regression equation:


where y is the vector of marker genotypes of the animal with uncertain parentage (explained animal), X is a column matrix of marker genotypes of the possible parents (explanatory animals), and e is the vector of residuals which cannot be explained. Columns in X can be genotypes of single animals (e.g. sire or dam), or functions of genotypes of single animals or several animals (e.g. population allele frequencies or expected gene content). Values in vector b are regression coefficients regressing y on the columns in X.

Assuming that the variance of y is equal to I σ2, minimising e’e would yield an ordinary least square solution. Since the parameter space of values in b is unconstrained, regression coefficients may become negative. To avoid this, the parameter space of b can be constrained to the interval between zero and , and the sum over b can be constrained to be equal to 1. Thus, Eq. 1 becomes:


subject tobi0{i=1,,N}


Minimising Eq. 2 with respect to b constrained by Eqs. 3 and 4 yields a vector b with values that explain the genotype in y as a linear function of genotypes in X. Coefficients in b are interpreted as the proportion of values in vector Xb explained by each column in X. Note that only the combination of constraints 3 and 4 guarantees that coefficients in b have this meaning.

If X contained genotypes of putative sires and dams only, values in b are not guaranteed to give unambiguous results for parentage assignment. Thus, it is highly advisable to always add to X the vector of population allele frequencies, or depending on the allele coding, the vector of expected gene content.


Genotypes of 19,051 animals of the Australian Angus beef cattle breed were used as a test data set which included 14,816 sire-offspring pairs (thus multiple progeny per sire). The genotypes were obtained from the Australian Beef Cooperative Research Center (, Beef CRC) database and from cooperating breeders using the Illumina 50K Bead Chip, and were coded as “0” and “2” for the homozygous genotypes and “1” for the heterozygous genotype. After quality control, 40,627 SNPs were used in the analysis.

Configuration of genotypes

Subsets of 500, 100 and 50 SNPs were randomly selected from the full 40k genotypes. To ensure sufficient contrast between individual genotypes, the sample space for the 100 and 50 SNP set was restricted to those SNPs with a minor allele frequency higher than 0.3.

Animal assignment to the equation

From the full set of 19,051 animals, 14,816 animals were selected which had a genotyped sire in the data set. These animals will be called “explained animals” in the remainder of the article. For each of these animals, a unique Eq. 1 was formed where the genotype was used to construct the y vector. Matrix X always contained six columns, but they were filled in two different ways: (1) two columns for the genotype of the known sire and the vector of expected gene contents, and the remaining columns for the genotypes of a set of four randomly selected animals (Xsire), and (2) one column for the vector of expected gene contents and the remaining columns for the genotypes of a set of five randomly selected animals (Xran). Columns in X might be interpreted as a pool of putative parents. This pool will be called “explanatory animals” in the remainder of the article.

Note that the randomly selected animals excluded parents, offspring, full sibs and half sibs of the animal in y, and were re-sampled for every y. Furthermore, the allele coding required use of the expected gene content rather than the allele frequency.

Parentage assignment

Two different methods were used to assign parentage to individuals in X. The first (CGRR) ranked the coefficients in b after excluding the coefficient for the expected gene content. The sire was the individual with the greatest coefficient. Note that this method is similar to ranking of OHL counting results and does not allow for the rejection of all putative parents. It also requires knowledge about the number of true parents in the data set. It was therefore used only for the test runs using Xsire.

The second method (CGRT) requires setting a minimum threshold for the coefficients in b. Every animal which has a coefficient below this threshold is ruled out as a potential parent. If the threshold is set appropriately (higher than ), constrained Eq. 4 will ensure that the number of explanatory animals with coefficients higher than the threshold is lower or equal to 2, thus avoiding parentage over-assignment.

Assignment statistics

Coefficients in b were summarised within each combination of SNP genotype set and X matrix in terms of means, standard deviations, minimum and maximum for single columns in X (sire, expected gene content) and for the sub-matrix in X containing the randomly chosen animals.

In addition, the power of assignment (Pa) was calculated as:

number of correct parent assignmentsmaximum number of true parents,

where the denominator was 14,816, which is the total number of true parents in the data set when Xsire was used. The power of exclusion (Pe) was calculated as:

1-number of wrong parent assignmentsmaximum number of parents,

where the denominator was 29,632, which is twice the number of progeny or the total number of possible parents.

Parentage verification based on counting opposing homozygous loci and likelihood evaluation

CGR results were compared to OHL counting [8, 9] and a LH-based methodology [12]. Since OHL counting requires that the sample of putative parents contains at least one true parent, this method was applied to the Xsire set only.


CGR was implemented in a FORTRAN program which called the NLopt library [14]. The optimisation solver used the augmented Lagrangian algorithm as a global solver and the method of moving asymptotes as a local solver. Note that the NLopt library is also available as an R package. Thus, the interested reader may implement the above methodology in a simple R script.

For LH-based parentage verification, the publicly available software “Cervus” was used [12]. Cervus requires three steps: (1) allele frequency analysis, (2) parentage simulation, and (3) parentage assignment. Parameters for step 2 were set as follows: type = “parent pair with unknown sex”, number of offspring = 10,000, number of candidate parents per offspring = 5, proportion of parents sampled = 1, proportion of loci typed = 1, proportion of loci mistyped = 0.01, confidence is calculated using = delta, confidence levels = 80%(relaxed) and 95%(strict). Parameters for step 3 were set as follows: type = “parent pair with unknown sex”. Note that the latter analysis type was chosen because it does not require prior knowledge about the data set.

Cervus results were evaluated for each y only for the parent pair with the highest lod score. For the Xsire data set, two cases were distinguished: Case (A) the lod score was not significant. If the true sire was in the parent pair, the numerator of Eq. 5 was increased by one. Case (B) the lod score was significant. If the true sire was in the parent pair, the numerators of Eqs. 5 and 6 were increased by one. If the true sire was not in the parent pair, the numerator of Eq. 6 was increased by two. For Xran data set, the numerator of Eq. 6 was increased by 2 for every significant parent pair only.

All computations were carried out on a computer with an Intel(R) Core(TM) i7-3770 processor and 32GB of memory.


Parentage assignment

Tables 1 and 2 summarise the results for parentage assignment using different SNP genotypes and different pools of explanatory animals. For the CGRT algorithm, the threshold to assign parentage was set to . Descriptive statistics for the regression coefficients are in Table 1.

Table 1
Mean (x¯), standard deviation (s), minimum (min) and maximum (max) of the regression coefficients
Table 2
Power of assignment (Pa) and power of exclusion (Pe)

When 500 randomly selected SNPs were used as genotypes and the sample of putative parents contained the true sire, Pa of all algorithms was higher than 0.99 with marginal differences between the methods. Thus, CGRR, CGRT, OHL counting and LH detected the true sire equally well. When the sample of putative parents did not contain the true sire, CGRT and LH successfully rejected the randomly selected animals as parents with CGRT resulting in four and LH in zero incorrect assignments out of 29,632 possible assignments (see Table 2, upper part).

Decreasing marker density to 100 SNPs randomly selected from those which had a minor allele frequency higher than 0.3 made the correct assignment more difficult (see Table 2, middle part). When the sample of putative parents contained the true sire, the best results were achieved by LH which detected 14,735 true sires correctly, followed by CGRR with 14,711 and OHL counting with 14,699 correctly assigned sires. It should be noted that OHL counting, as well as CGRR, will automatically assign a wrong parent if the true parent is missed. The same data set yielded the opposite ranking of algorithms when parameter Pe was evaluated. CGRT achieved the best result with only 15 incorrectly assigned parents, followed by CGRR (105), OHL counting (117) and LH (213). When the set of putative parents did not contain the true sire, LH performed best rejecting all random animals as parents, whereas CGRT assigned incorrect parentage in 96 cases, resulting in a Pe of 0.997.

A further decrease in marker density to 50 SNPs randomly selected from those which had a minor allele frequency higher than 0.3 yielded the same algorithm ranking as the 100 SNP data set, but with slightly deteriorated Pa and Pe values for all algorithms (see Table 2, lower part). When the set of putative parents contained the true sire the decrease in Pa was strongest for CGRT (0.918), followed by OHL counting (0.978), CGRR (0.983) and LH (0.988). Pe ranked the algorithms inversely with LH (0.954) showing the strongest deterioration, followed by OHL counting (0.989), CGRT (0.991) and CGRR (0.992). LH assigned five times more often false parentage than CGRR. However, when the set of putative parents contained only random animals, LH assigned false parentage in 40 cases, whereas CGRT assigned 960 parents falsely.

Computational demand

Besides reading the data, CGR solving time for Eq. 2 for all 14,816 animals was 18 real time seconds irrespective of the number of SNPs used, which is 0.001 real time seconds per animal. Note that using all 40k SNPs increased the solving time only marginally to 21 real time seconds. The LH method implemented in Cervus needed 180, 51 and 35 real time seconds for the 500, 100 and 50 SNP data sets, respectively. OHL counting was not evaluated in terms of speed but can be assumed to provide results most quickly.


Results show that parentage can be successfully assigned with as few as 500 SNPs using CGRR, CGRT, OHL counting or a likelihood-based method, and for which all four approaches perform equally well. However, OHL counting, and therefore CGRR as well, are less suitable for practical applications because they are incapable of rejecting all putative parents [11].

The above result also holds for the 100 SNP data set with which CGRR, OHL counting and LH maintained Pa and Pe values higher than 0.99, and CGRT achieved 0.97 and 0.99, respectively. With a further decrease in the number of SNPs, all four algorithms had some difficulties, but Pa and Pe remained generally higher than 0.98. However, Pa for CGRT and Pe for LH decreased to 0.92 and 0.95, respectively.

The performance of OHL counting should be regarded cautiously because the range of OHL counts between the true sire and its offspring was between 0 and 10 when using the 50 SNP genotypes, with 1013 cases for which the contrast between the true sire and the random animal ranked next differed by a single count. This contrast might be by chance only and be missed in a future genotype sample, rendering the assignment statistics of OHL counting the worst of all four algorithms. Moreover, constructing an OHL matrix between all 19,051 individuals with 50 SNP genotypes as given in [10] and evaluating the respective matrix rows of the 14,816 test animals revealed that 14,782 animals had at least one zero entry in addition to the diagonal and sire entry. The most frequent zero count was 11 which occurred for 294 test animals. Thus, there is a certain probability that a sample of putative parents may contain an animal for which the genotype will yield a lower OHL count than the genotype of the true parent. Besides these rather sobering insights into the superficially very good performance of OHL counting, it is also undesirable to use a method based on genotyping errors, which should be minimised and ultimately eradicated. The basic implementation of the method will always assign one or two parents depending on prior information about the data and cannot reject all candidate parents. OHL counting could be made more versatile by generating an empirical distribution of OHL counts by simulation which is then used as a test statistic. However, such a distribution will be genotype sample dependent and its generation requires knowledge about the genotyping error probability, which in turn can only be estimated if trios of offspring and both true parents are known.

When the true parent was in the sample, the LH-based method implemented in the software “Cervus” performed as well as OHL counting and CGRR across all three SNP data sets. By contrast, it gave the worst results in terms of rejecting non-parents for the 100 SNP and 50 SNP data sets. This poor performance may result from the LH software being set to the analysis type “parent pair with unknown sex” with the combined likelihood of one true and one false parent being still high enough to assign parentage to both. Changing the analysis type may increase the performance, but would require prior knowledge about the data set which is not guaranteed to be available in practical applications. In addition, the LH method has two major drawbacks compared to the three other algorithms: scaleability and, as a direct result, processing time. For the 500 SNP data set, the latter was 10 times slower than that of the CGR algorithms. Although this difference might be negligible given the absolute processing time, it may become prohibitive if parentage must be verified for hundreds of thousands of animals. In addition, situations may arise where results from small SNP genotypes may be disputed and need to be verified using more markers, e.g. up to full 40k genotypes. In such cases, processing time may render the LH approach impractical.

By contrast, processing time for CGR increased only marginally when the full 40k genotypes were used. Moreover, unlike LH, the two implementations of CGR tested do not require any pre-analysis simulation. While CGRR suffers the same drawback as OHL counting, CGRT is able to reject all putative parents. The ability of CGRT to contrast between true and false parents may be further enhanced by testing coefficients in b against their empirical distribution. This may help to enhance performance when using only very few SNPs (e.g. the 50 SNP data set), but would require pre-analysis simulations. However, since practical parentage verification aims at using at least 500 SNPs [7], the results suggest that the imposed threshold on values in b is sufficient to identify parents correctly. CGR may also account for genotyping errors by substituting the observed genotype at a given locus by its expected value after accounting for the genotyping error probability.

It is perhaps unexpected that the rather general approach of CGR performs as well as the elaborate LH methodology. For the sake of simplicity, one may consider a situation where all allele frequencies are equal to 0.5. Subtracting the vector of expected gene content (allele frequencies) from the columns in X and from y will set all heterozygous loci to zero as well as the column in X containing the expected gene content. This reveals that the optimum solution for b depends only on the homozygosity status of the putative parents. In addition, when allele frequencies deviate from 0.5, parent-offspring homozygosity for rare alleles will have a larger contribution than for very common alleles. Interestingly, the LH method exploits little more information. The biggest contribution to the likelihood comes from the sire-dam-offspring genotype combinations 2-2-2, 0-0-0, 2-0-1 and 0-2-1, which all contribute to the likelihood with a coefficient of 1. Excluding genotyping errors, all other possible combinations yield a coefficient of 0.5, and therefore provide no contrast between putative parents. The only two exceptions are the combinations 1-1-0 and 1-1-2 with a coefficient of 0.25, which reduces the likelihood and increases the contrast between putative parents. The LH method exploits the information content of rare alleles by scaling the sire-dam-offspring probability by the offspring genotype probability calculated from the population allele frequencies. As already pointed out above, CGR makes use of this information as well.

The test data sets used in this analysis were limited to five putative parents per progeny. In practical applications, it might be necessary to search the whole genotyped population for possible parents which could be achieved by expanding the number of columns of matrix X to all genotyped animals. However, if the number of SNPs is small, the system in Eq. 1 will be over-parameterised. In addition, processing time is likely to be incompatible. In a single test run using all 40k SNPs and X having more than 19,000 columns, the correct parent was identified by CGRT and CGRR but the processing time was 23 min. The formulas in Eqs. 1 and 2 imply that CGR uses sub-matrices and vectors from an uncentered and unscaled genomic relationship matrix (GRM). Thus, as an alternative to expanding X to all genotyped animals, one may decrease the number of putative parents in a pre-analysis step to those which have the largest off-diagonal values in the GRM row related to the animal in y. These animals are then used to construct the columns in X.


CGR is a fast, efficient, accurate and easy to implement algorithm to assign parentage on the basis of SNP genotypes in samples which contain at least one true parent, or to reject parentage if the samples do not contain a true parent at all. CGR scales automatically to any size of genotypes and has proven to give accurate results with genotypes based on 50 SNPs only.


The author thanks various Australian Angus breeders for supplying genotypes. This work was funded by Meat and Livestock Australia (Project B.BFG.0050).

Competing interests

The author declares that he has no competing interests.

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.


1. Jones AG, Small CM, Paczolt KA, Ratterman NL. A practical guide to methods of parentage analysis. Mol Ecol Resour. 2010;10:6–30. doi: 10.1111/j.1755-0998.2009.02778.x. [PubMed] [Cross Ref]
2. Mäntysaari E. Challenges in industry application of genomic prediction experiences from dairy cattle. In: Proceedings of the 10th world congress on genetics applied to livestock production, 17–22 Aug 2014; Vancouver; 2014.
3. McClure M, Sonstegard TS, Wiggans G, Van Tassell CP. Imputation of microsatellite alleles from dense SNP genotypes for parental verification. Front Genet. 2012;3:140. doi: 10.3389/fgene.2012.00140. [PMC free article] [PubMed] [Cross Ref]
4. Baruch E, Weller J. Estimation of the number of SNP genetic markers required for parentage verification. Anim Genet. 2008;39:474–479. doi: 10.1111/j.1365-2052.2008.01754.x. [PubMed] [Cross Ref]
5. Tokarska M, Marshall T, Kowalczyk R, Wójcik J, Pertoldi C, Kristensen T, et al. Effectiveness of microsatellite and SNP markers for parentage and identity analysis in species with low genetic diversity: the case of European bison. Heredity. 2009;103:326–332. doi: 10.1038/hdy.2009.73. [PubMed] [Cross Ref]
6. Heaton MP, Leymaster KA, Kalbfleisch TS, Kijas JW, Clarke SM, McEwan J, et al. SNPs for parentage testing and traceability in globally diverse breeds of sheep. PLoS One. 2014;9:e94851. doi: 10.1371/journal.pone.0094851. [PMC free article] [PubMed] [Cross Ref]
7. McClure M, McCarthy J, Flynn P, Weld R, Keane M, O’Connell K, et al. SNP selection for nationwide parentage verification and identification in beef and dairy cattle. ICAR Tech Ser. 2015;19:175–181.
8. Wiggans GR, Sonstegard TS, VanRaden PM, Matukumalli LK, Schnabel RD, Taylor JF, et al. Selection of single-nucleotide polymorphisms and quality of genotypes used in genomic evaluation of dairy cattle in the United States and Canada. J Dairy Sci. 2009;92:3431–3436. doi: 10.3168/jds.2008-1758. [PubMed] [Cross Ref]
9. Hayes B. Technical note: efficient parentage assignment and pedigree reconstruction with dense single nucleotide polymorphism data. J Dairy Sci. 2011;94:2114–2117. doi: 10.3168/jds.2010-3896. [PubMed] [Cross Ref]
10. Ferdosi MH, Boerner V. A fast method for evaluating opposing homozygosity in large SNP data sets. Livest Sci. 2014;166:35–37. doi: 10.1016/j.livsci.2014.05.026. [Cross Ref]
11. Boichard D, Barbotte L, Genestout L. AccurAssign, software for accurate maximum-likelihood parentage assignment. In: Proceedings of the 10th world congress on genetics applied to livestock production, 17–22 August 2014; Vancouver; 2014.
12. Kalinowski ST, Taper ML, Marshall TC. Revising how the computer program CERVUS accommodates genotyping error increases success in paternity assignment. Mol Ecol. 2007;16:1099–1106. doi: 10.1111/j.1365-294X.2007.03089.x. [PubMed] [Cross Ref]
13. Marshall T, Slate J, Kruuk L, Pemberton J. Statistical confidence for likelihood-based paternity inference in natural populations. Mol Ecol. 1998;7:639–655. doi: 10.1046/j.1365-294x.1998.00374.x. [PubMed] [Cross Ref]
14. Johnson SG. The NLopt nonlinear-optimization package (2014). 2011.

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