View source: R/runQcStudbook.R
| runQcStudbook | R Documentation |
Wrapper function that runs qcStudbook and processes results into a
format suitable for Shiny UI display. This function performs two passes:
first to check for errors, then to get the cleaned data if no errors exist.
runQcStudbook(
ped,
minSireAge = NULL,
minDamAge = NULL,
minParentAge = lifecycle::deprecated(),
reportChanges = FALSE
)
A list with the following components:
cleaned - The cleaned pedigree data.frame with standardized
column names, added generation numbers, etc. NULL if errors were found.
qcResult - Result from processQcStudbookResult
containing errors, warnings, changedCols, hasErrors, and hasChangedCols.
errorLst - The raw nprcgenekeeprErr list from
qcStudbook's first pass (the same object qcResult was
derived from), exposed so callers that need the raw fields (e.g.
femaleSires, failedDatabaseConnection) do not have to
call qcStudbook a second time themselves.
qcStudbook for the underlying QC function
processQcStudbookResult for result processing
modInputServer for Shiny module integration
data("pedGood", package = "nprcgenekeepr")
result <- runQcStudbook(pedGood, minSireAge = 2.0, minDamAge = 2.0)
if (!result$qcResult$hasErrors) {
cleanedPed <- result$cleaned
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.