Phase-free detection of identity-by-descent segments across four genotyping arrays: design, validation and first results in Malaysian adult samples
A phase-free detector for long shared DNA segments in unphased array genotypes: methods, fixed pass criteria, planted-segment power, and what it cannot support.
Case study · Research resource · Genomics and bioinformatics

Abstract
Background. Long identical-by-descent (IBD) segments identify recent shared ancestry, but phased-haplotype methods are awkward where samples have been typed on several arrays over several years and where some communities show elevated background sharing.
Methods. We implemented a phase-free, half-identical segment detector for unphased array genotypes harmonised across four Illumina genome-wide array families (GRCh37), with an empirically derived regional mask, KING-robust kinship as an independent first pass, and relationship classes cut on total shared centimorgans (cM). Decision rules and pass criteria were fixed before validation, and every validation was repeated with a deliberate fault to show that it could fail.
Results. On 366 known pairs, 365 were classified as expected (99.7% (98.5 to 100.0); 95% Wilson interval). Planted segments of 10 cM or more were recovered in at least 96% of trials, with a median length overestimate of 0.57 to 0.79 cM. Applied to about 1,360 adult samples (about 930,000 pairs), the method reported about 310 related pairs.
Conclusions. Array genotypes without phasing support reliable detection of first and second degree relationships and graded reporting to the third cousin class. Power and specificity below 50 cM do not justify individual reporting.
1. Rationale
Two individuals who inherit a chromosomal segment from a recent common ancestor share at least one allele at every site within it, whether or not the haplotypes are resolved. Inside such a segment an opposite homozygote (IBS0: AA against BB) can arise only from genotyping error, mutation or gene conversion. Runs free of IBS0 therefore mark candidate IBD1 segments directly from unphased calls, the principle used by IBIS (Seidman et al., 2020) and, on phased data, extended by hap-IBD (Zhou et al., 2020). The practical problems are elsewhere: harmonising heterogeneous arrays, regions where IBS0-free runs arise without recent ancestry, endogamy, and honest reporting of uncertainty (Henn et al., 2012).
2. Materials and methods
2.1 Samples and genotyping
Adult samples from a Malaysian consumer DNA service, typed by laboratory partners on four Illumina genome-wide array families (reaching analysis in 9 export layouts), roughly 650,000 to 780,000 assays each. Samples of minors and of people who opted out were excluded from the analysis. Analysis ran on a single controlled computer; no genotype file left it and every log carries counts only.
2.2 Marker harmonisation and quality control
Assays were placed on GRCh37 from manufacturer manifests and merged by position. A second assay name at an occupied position was merged only when its genotypes agreed with the first, directly or as the strand complement; otherwise it was dropped. Genetic positions were linearly interpolated from the HapMap II GRCh37 map (3,544 autosomal cM covered).
| Filter (applied in order, autosomes only) | Markers |
|---|---|
| Distinct autosomal positions after merging | 885,229 |
| Excluded: call rate below 95% among samples whose array carries the assay | 41,476 |
| Excluded: minor allele frequency below 1% | 368,672 |
| Excluded: excess heterozygosity (observed minus expected above 0.10, or ratio above 1.5) | 4,277 |
| Retained | 470,804 |
2.3 Sample quality control
A sample was withheld from all comparisons for any of: call rate below 90% of its own array's retained markers (21 samples); heterozygosity more than 0.03 from the cohort median, suggesting contamination or failure (9); or third degree or closer kinship with more than 25 other samples, a pattern no real pedigree here produces (1). The third rule was applied iteratively, removing the most connected sample first. The procedure was later repeated from raw data as a reproducibility check; the first repeat failed on a parsing fault affecting 3 files, which was corrected and the whole analysis rerun.
2.4 First pass: robust kinship
For every pair, over jointly called markers, we computed the KING-robust estimator (Manichaikul et al., 2010) in block matrix form:
φ = ( NAa,Aa − 2·NAA,aa ) / ( NAa(1) + NAa(2) )
together with the IBS0 proportion. The median IBS0 proportion among unrelated pairs (φ < 0.011) was 0.0483. Pairs with φ ≥ 0.354 (same individual or monozygotic twins) were withheld from reporting.
2.5 Segment detection
Pairs were screened in 64-marker windows and retained when an IBS0-free run of windows spanned at least 3 cM, then resolved marker by marker. A single IBS0 site flanked on both sides by runs of at least 1.5 cM was treated as genotyping error and bridged, with at most one bridge per 15 cM; segments exceeding that rate were split. A segment was counted at length 7 cM or more with more than 500 jointly called markers. For pairs sharing 1,000 cM or more, fully identical (IBD2) runs of 2 cM or more were measured to separate full siblings from parent and child.
2.6 Empirical regional mask
Per 1 cM bin, segment coverage was counted across 20,321 unrelated pairs carrying at least one segment. Bins exceeding the median by more than four robust standard deviations (1.4826 × MAD) were masked with 1 cM flanks; the rule was written before the coverage was inspected. This removed 211 bins in 20 regions: 214 cM (6.0% of map length) and 23,954 markers (5.1%). Masked intervals contribute neither length nor marker count.
| Chromosome | Masked interval (Mb, GRCh37) | Length (cM) |
|---|---|---|
| 1 | 114.9 to 156.8 | 22.0 |
| 10 | 34.3 to 54.8 | 18.0 |
| 22 | 18.9 to 26.2 | 16.1 |
| 8 | 6.8 to 16.1 | 15.9 |
| 2 | 0.8 to 5.8 | 15.0 |
| 16 | 13.0 to 22.7 | 14.0 |
The six longest of the masked regions; several are pericentromeric, and the chromosome 8 interval matches a known inversion region.
2.7 Relationship classes and confidence
Cuts on total cM sit at the geometric mean of the typical totals of adjacent relationship types in the Shared cM Project, version 4 (Bettinger and Wayne, 2020), applied in this order:
| Reported class | Rule | Typical published total (cM) |
|---|---|---|
| Immediate family | ≥ 2,600 cM with IBS0 below one tenth of the unrelated median; or ≥ 1,600 cM with IBD2 ≥ 300 cM; or ≥ 1,600 cM with φ ≥ 0.177 | parent and child 3,485; full siblings 2,613 |
| Close family | ≥ 1,240 cM | ≈1,750 |
| First cousin class | 620 to 1,240 cM | 866 |
| Second cousin class | 170 to 620 cM | 229 |
| Third cousin class | 50 to 170 cM | 73 |
| Not reported | < 50 cM | fourth cousin 35 |
Confidence is graded by the distance of a total from both class boundaries, and lowered with an explicit “may be further” flag when either sample shows a high-background pattern (unusually many partners with sharing below 50 cM, median plus three robust standard deviations) or when the total is built mainly of segments under 15 cM. Because masking removes genetic length, close-family totals read low (a parent and child near 3,330 cM); published cuts were kept unchanged, which errs toward the closer class.
3. Validation design
Pass criteria were fixed before each run. (i) Known pairs: pairs from small family accounts, previously agreed by two other estimators (KING-robust with IBS0, and PLINK-style shared segments); pass at 95% or more correct with none two classes away. (ii) Duplicates: all pairs with φ ≥ 0.354 withheld. (iii) Planted segments: 150 trials per length, inserted into unrelated pairs (φ < 0.005) on an otherwise unshared, unmasked chromosome by copying one allele, drawing the other at population frequency and adding error at the observed rate; pass at 95% recovery from 10 cM with median length error under 1 cM, and at most 10% recovery of 5 cM inserts. (iv) Negative controls on the tests: doubling every class cut, and halving the genetic map, had to make (i) and (iii) fail.
4. Results
4.1 Concordance with known pairs
| Known relationship | n | Expected class | Correct, % (95% Wilson interval) |
|---|---|---|---|
| Parent and child | 52 | Immediate | 100.0% (93.1 to 100.0) |
| Full siblings | 27 | Immediate | 100.0% (87.5 to 100.0) |
| Second degree | 8 | Close family | 87.5% (52.9 to 97.8) |
| No close biological tie | 279 | Not reported | 100.0% (98.6 to 100.0) |
| All | 366 | 99.7% (98.5 to 100.0) |
The single discordant pair was a second degree pair placed one class further. No pair without a close tie was reported (specificity lower bound 98.6%). All 13 pairs at duplicate-level kinship were withheld, including all 13 found by an independent identity criterion. With the cuts doubled, concordance fell to 90.4% with 11 pairs two or more classes away; with the map halved, recovery of 10 cM inserts fell to 0.7%. Both negative controls therefore failed, as required.
4.2 Detection power and length bias
| Planted (cM) | Recovered of 150 | Recovery, % (95% interval) | Median error (cM) | 10th to 90th percentile (cM) |
|---|---|---|---|---|
| 5 | 3 | 2.0% (0.7 to 5.7) | +2.30 | +2.18 to +2.94 |
| 7 | 133 | 88.7% (82.6 to 92.8) | +0.74 | +0.23 to +1.86 |
| 8 | 143 | 95.3% (90.7 to 97.7) | +0.63 | +0.15 to +1.61 |
| 10 | 147 | 98.0% (94.3 to 99.3) | +0.61 | +0.14 to +1.90 |
| 12 | 144 | 96.0% (91.5 to 98.2) | +0.67 | +0.15 to +1.94 |
| 15 | 147 | 98.0% (94.3 to 99.3) | +0.76 | +0.24 to +1.89 |
| 20 | 150 | 100.0% (97.5 to 100.0) | +0.57 | +0.17 to +1.84 |
| 30 | 150 | 100.0% (97.5 to 100.0) | +0.79 | +0.20 to +1.95 |
| 50 | 150 | 100.0% (97.5 to 100.0) | +0.79 | +0.20 to +2.21 |
Detection is a near step function at the threshold: 2% of 5 cM inserts are counted, 89% at 7 cM and 95% at 8 cM. The positive bias is expected of phase-free detection, since chance allele sharing extends a segment past both true ends; it is roughly constant in absolute terms and so matters most for short segments.
4.3 Agreement with an independent kinship measure
First degree pairs all fall in the immediate class and second degree pairs almost all in close family. From the third degree the two measures diverge as expected from the variance of realised sharing: most fourth and fifth degree pairs fall below the 50 cM reporting floor.
4.4 First full comparison
About 1,360 samples (930,000 pairs) were compared after 31 were withheld by quality control.
| Reported class | Pairs (rounded) |
|---|---|
| Immediate family | ≈190 |
| Close family | ≈40 |
| First cousin class | ≈20 |
| Second cousin class | ≈10 |
| Third cousin class | ≈50 |
| All reported | ≈310 |
Pairs the service already knew about because both samples sit in one household account were used for testing and are not counted here.
4.5 Incremental comparison of new samples
New samples are compared against a 2-bit packed genotype store (164 MB for about 1,400 samples and 470,804 markers) without recomputing old pairs. With 30 samples removed and reintroduced as new, all 503 pairs and every segment were identical to the full run. With the length threshold deliberately set to 6 cM, the same check returned 1,292 pairs and failed.
5. Limitations
- The genetic map is from HapMap reference populations, not from Malaysian pedigrees or local recombination estimates.
- Autosomes only; no X chromosome analysis. Arrays are compared only at shared positions, so effective density varies by array pair.
- Known-pair validation is dominated by first degree pairs. Second degree is supported by 8 pairs, and cousin classes have no pedigree-confirmed test set.
- Planted segments model genotyping error but not every artefact of real inheritance, and recovery was measured in pairs chosen as unrelated.
- Endogamy inflates total sharing; the flag marks clear cases and does not correct the estimate.
- Absence of a reported tie does not exclude relationship: a material share of true third cousins share no detectable segment.
6. What this offers a study team
The same pipeline audits a genotyped cohort before association analysis: duplicate and swapped samples, cryptic first to third degree relatedness among nominally unrelated participants, high-background clusters that call for a mixed model rather than simple exclusion, and array-batch effects at marker level. Prima Nexus's genomics team can run this check on array data for a planned or completed study. To discuss one, contact us.
References
- Manichaikul A, Mychaleckyj JC, Rich SS, Daly K, Sale M, Chen WM. Robust relationship inference in genome-wide association studies. Bioinformatics. 2010;26:2867-2873. doi:10.1093/bioinformatics/btq559
- Seidman DN, Shenoy SA, Kim M, et al. Rapid, phase-free detection of long identity-by-descent segments enables effective relationship classification. Am J Hum Genet. 2020;106:453-466. doi:10.1016/j.ajhg.2020.02.012
- Zhou Y, Browning SR, Browning BL. A fast and simple method for detecting identity-by-descent segments in large-scale data. Am J Hum Genet. 2020;106:426-437. doi:10.1016/j.ajhg.2020.02.010
- Henn BM, Hon L, Macpherson JM, et al. Cryptic distant relatives are common in both isolated and cosmopolitan genetic samples. PLoS One. 2012;7:e34267. doi:10.1371/journal.pone.0034267
- International HapMap Consortium. A second generation human haplotype map of over 3.1 million SNPs. Nature. 2007;449:851-861. doi:10.1038/nature06258
- Bettinger BT, Wayne D. The Shared cM Project, version 4.0. 2020.
About Prima Nexus
Founded in 2014, Prima Nexus Sdn Bhd is a Malaysian research, scientific consulting and integrated research support company advancing scientific discovery and healthcare innovation. We provide end-to-end research solutions, from early-stage discovery and experimental design to cell-based studies, preclinical animal testing, clinical trials and commercialization. Our multidisciplinary expertise spans genomics, genetic applications, proteomics, molecular biology, stem cell research, bioinformatics and clinical research. Through strategic collaborations with universities, research institutions, industry and global technology partners, we connect scientific expertise and advanced technologies to accelerate research into real-world applications. Our collaborations have supported more than 150 papers in peer-reviewed journals and research teams at more than 40 institutions across Malaysia. More about Prima Nexus.