Skip to contents

Server logic for data input module handling file uploads, parsing of pedigree and genotype data files, and quality control validation.

Usage

modInputServer(id)

Arguments

id

character vector of length 1. Module namespace identifier.

Value

A list with reactive components:

  • cleanedStudbook - The QC-cleaned studbook data

  • genotypeData - Genotype data if provided

  • qcSummary - Summary of QC results (error/warning counts)

  • minSireAge - The minimum sire age floor (numeric, or NULL to use the species+sex breeding-age table default)

  • minDamAge - The minimum dam age floor (numeric, or NULL to use the species+sex breeding-age table default)

  • isReady - Logical indicating if data is ready for next step

  • debugMode - Logical reflecting the Input tab's "Debug on" checkbox

  • changedCols - Renamed/changed-column diagnostics from QC

  • errorLst - The QC error list, used for dynamic tab management

  • pedigreeFileName - The uploaded file's name, used for dynamic tab management

Note

(Developer note) This module is the reference implementation of the package's internal Shiny module contract – see docs/architecture/module-contract.md in the package source (a developer-only file; it does not ship with the installed package).