compact_ped_for_matrix: Compact pedigree by merging full siblings for matrix...

View source: R/pedmatrix.R

compact_ped_for_matrixR Documentation

Compact pedigree by merging full siblings for matrix calculation

Description

This internal function identifies full siblings (individuals sharing the same sire and dam) and selects one representative per family. This can dramatically reduce memory requirements when calculating relationship matrices for pedigrees with large full-sibling families.

Usage

compact_ped_for_matrix(ped)

Arguments

ped

A tidyped object or pedigree data.

Value

A list containing:

  • ped_compact: The compacted pedigree (tidyped object)

  • compact_map: Individual-level mapping table

  • family_summary: Family-level summary table

  • compact_stats: Compression statistics


visPedigree documentation built on March 30, 2026, 9:07 a.m.