Server logic for pedigree browser module handling focal animal selection, pedigree processing, filtering, and data export.
Value
A list of reactive values:
pedigree- Filtered pedigree for display (respects trim/unknown settings)processedPedigree- Full pedigree with population, pedNum, gen columnsfocalAnimals- Character vector of focal animal IDsnAnimals- Count of animals in filtered pedigreepopulationCount- Count of animals marked as populationisReady- Logical indicating if pedigree data is ready
Details
This module processes the studbook by:
Adding a
populationcolumn viasetPopulation()Adding a
pedNumcolumn viafindPedigreeNumber()Ensuring a
gencolumn exists viafindGeneration()Optionally trimming to the ancestors and descendants of focal animals via
trimPedigree()andgetDescendantPedigree()
See also
modPedigreeUI for the UI component
setPopulation for population marking
trimPedigree for pedigree trimming
findPedigreeNumber for pedigree numbering
findGeneration for generation calculation
