NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient path-based computations on pedigree graphs with compact encodings

Lei Yang, En Cheng, Z. Meral ÖzsoyogluBMC Bioinformatics 2012

TL;DR

This paper introduces a novel "Compact Path Encoding" (CPE) scheme for representing large pedigree graphs. This encoding allows for significantly more efficient computation of genetic measures like inbreeding coefficients, outperforming existing methods in both time and space complexity, especially for large datasets.

What Problem Does This Paper Address?

Pedigree graphs are crucial for understanding genetic inheritance, particularly for identifying disease risk factors and for applications in fields like genetic counseling and conservation. As genetic data grows, so does the size and complexity of these pedigrees. Traditional methods for calculating genetic measures (like inbreeding coefficients) on these large graphs become computationally expensive due to the need to traverse and analyze numerous paths. Existing path-encoding schemes, while an improvement, still struggle with scalability for very large pedigrees. This paper aims to bridge this gap by proposing a more compact and efficient encoding and associated algorithms.

Methods

The core contribution is the Compact Path Encoding (CPE) scheme. It's a two-part encoding:

  1. Prefix-based Encoding for Tree edges (PET): This part represents the unique path from a progenitor (root) to a node using a breadth-first tree traversal. This ensures a compact representation of tree-based ancestry.
  2. Encoding for Non-Tree Edges (NTE): This part captures the non-tree edges that deviate from the spanning tree. These are encoded using the PET codes of the connected nodes and special delimiters to distinguish gender and relationships.

The paper also presents:

  • CPE Generation Algorithm: A modified Breadth-First Search (BFS) algorithm to efficiently generate CPE labels for all nodes in a pedigree graph. This algorithm prioritizes processing parents before children to ensure correctness.
  • Path Construction Algorithm: A recursive algorithm (FindPath) that uses CPE labels to reconstruct all paths from an ancestor to a given individual, distinguishing between tree paths and non-tree paths.
  • Inbreeding Coefficient Calculation Algorithm: This algorithm leverages Wright's path-counting formula by using the generated CPE labels to efficiently identify common ancestors, non-overlapping path pairs, and their contributions to the inbreeding coefficient.
  • Optimization Techniques: Methods to identify and prune "nonessential" common ancestors, further speeding up calculations.

Datasets

  • Cleveland Clinic's (CCF) Familial Polyposis Registry: A real-world dataset of 654 pedigrees with 8345 individuals, used for evaluating space efficiency and computation performance on smaller pedigrees.
  • Synthetic Pedigrees: Generated using a population simulator based on parameters from Finnish Kainuu subpopulation data. These were used to test scalability for large pedigrees (up to 10,000 individuals) with varying immigration rates and inbreeding coefficients.

Key Insights and Ideas

  • Compactness is Key: The CPE scheme achieves significant space savings by encoding all paths to a node into a single compact label, rather than storing individual path codes (as in NodeCodes). This is crucial for handling massive pedigree datasets.
  • BFS for Optimal PET: Using a BFS-based spanning tree for PET generation leads to the shortest PET codes, which in turn minimizes the overall CPE encoding size.
  • Distinguishing Path Types: The use of specific delimiters in CPE effectively distinguishes between paternal and maternal non-tree edges, aiding in accurate path reconstruction and inbreeding calculations.
  • Pruning Nonessential Ancestors: Identifying and discarding common ancestors that don't contribute to unique path pairs significantly reduces the computational burden for inbreeding coefficient calculations.

Key Results

  • Space Efficiency: CPE shows substantial space improvement over NodeCodes, increasing with pedigree size. For a pedigree size of 10,000 and an immigration rate of 0.005, CPE achieved a 47.59% space improvement.
  • Time Efficiency: The improved CPE (I-CPE) method demonstrated significant performance gains. For large pedigrees (size 10,000, immigration rate 0.005), I-CPE showed over 98% improvement compared to the iterative method and over 93% compared to NodeCodes.
  • Scalability: The method scales well with increasing pedigree size and inbreeding coefficients, outperforming existing methods consistently.
  • Real Data Performance: On the CCF registry, CPE showed a small but noticeable improvement in space efficiency over NodeCodes, and outperformed NodeCodes and iterative methods in computation efficiency.

Limitations and Future Work

  • Worst-Case Space Complexity: The theoretical worst-case space complexity is O(V³), which, while tight in extreme scenarios, might be loose for typical pedigrees.
  • Path Construction Dominance: For very large pedigrees, the time spent on path construction can dominate the overall computation, diminishing the gains from optimizing non-overlapping path checks.
  • Future Work: The authors suggest further improvements in compact encodings and developing scalable methods for other genetic computations like generalized kinship and identity coefficients. They also propose exploring family-level representations of pedigrees to further enhance scalability.

Summary updated

BibTeX
@article{yang2012efficient,
  author = {Lei Yang and En Cheng and Z. Meral Özsoyoglu},
  title = {{Efficient path-based computations on pedigree graphs with compact encodings}},
  journal = {BMC Bioinformatics},
  year = {2012},
  doi = {10.1186/1471-2105-13-s3-s14},
}
Figure