Skip to contents

Genetic Value Analysis Module - Server Function

Usage

modGeneticValueServer(
  id,
  pedigree,
  speciesOverrides = reactive(NULL),
  twinRelations = reactive(NULL)
)

Arguments

id

character vector of length 1. Module namespace identifier.

pedigree

reactive returning pedigree data frame.

speciesOverrides

reactive returning the user-configurable species overrides loaded at boot by loadSpeciesOverrides (a list with breedingTable, gestationTable, breedingAgeDefault, gestationDefault), or NULL. Threaded into reportGV. Defaults to reactive(NULL) so no config file means bundled behavior.

twinRelations

reactive returning a validated twin/zygosity sidecar data.frame (id1, id2, code), or NULL. Unlike kinshipOverrideFile below, this data does not originate inside this module – it is uploaded on the Pedigree Browser's Diagram tab and threaded in by appServer (BL-N Slice 3), so a declared MZ-twin pair's corrected kinship is reflected in reportGV's output regardless of which tab the user visits first. Defaults to reactive(NULL) (no twins declared).

Value

List with geneticValues, topAnimals, nAnalyzed, kinshipMatrix, founderStats, maleFounders, and femaleFounders.

References

Lacy, R.C. (1989) Zoo Biology, 8, 111-123.