Man pages for nprcgenekeepr
Genetic Tools for Colony Management

addAnimalsWithNoRelativeAdd an NA value for animals with no relative
addBackSecondParentsAdd back single parents trimmed pedigree
addGenotypeAdd genotype data to pedigree file
addIdRecordsAdd ego records with NA parent IDs
addParentsAdd parents
addSexAndAgeToGroupBuild a group data frame with ID, sex, and age
addUIdsAdd placeholder IDs for unknown parents
alleleFreqCount each allele in a vector
applyKinshipOverridesApply outside-information kinship overrides to a kinship...
appServerMain Application Server for nprcgenekeepr
appUIMain Application UI for nprcgenekeepr
assignAllelesAssign parent alleles randomly
calcACount each individual's rare alleles per simulation
calcAgeCalculate animal ages
calcFECalculate founder equivalents
calcFEFGCalculate founder equivalents and founder genome equivalents
calcFGCalculate founder genome equivalents
calcFGSECalculate the standard error of founder genome equivalents
calcGeneDiversityCalculate gene diversity from founder genome equivalents
calcGUCalculate genome uniqueness for each population ID
calcGUSECalculate the standard error of genome uniqueness
calcNeSexRatioCalculate the demographic sex-ratio effective population size
calcNeVarianceCalculate the variance effective population size
calcRetentionCalculate allelic retention
calculateSexRatioCalculate the sex ratio of a set of animals
checkChangedColsLstCheck a changed-columns list for non-empty fields
checkErrorLstCheck an error list for non-empty fields
checkGenotypeFileCheck genotype file
checkKinshipOverridesValidate a kinship overrides table
checkParentAgeCheck parent ages against a minimum age
checkRequiredColsCheck column names for required columns
chooseAllelesCombine two allele vectors by Mendelian sampling
chooseDateChoose the earlier or later of two dates
convertAncestryConvert ancestry information to a standard code
convertDateConvert character date columns to Date type
convertFromCenterConvert from-center information to a logical value
convertRelationshipsConvert pairwise kinship values to relationship categories
convertSexCodesConvert a sex indicator to a standardized code
convertStatusCodesConvert status indicators to a standardized code
correctParentSexCorrect the sex of animals listed as a sire or dam
countFirstOrderCount first-order relatives
countKinshipValuesCount kinship-value occurrences across simulated pedigrees
countLoopsCount the number of loops in a pedigree tree
createExampleFilesCreate example pedigree and ID-list CSV files
createPedTreeCreate a pedigree tree (PedTree)
createSimKinshipsBuild kinship matrices from simulated pedigrees
create_wkbkCreate an Excel workbook with worksheets
cumulateSimKinshipsCompute kinship summary statistics across simulations
dataframe2stringConvert a data frame to a character vector
exampleNprcgenekeeprConfigExample nprcgenekeepr configuration file (loadable)
examplePedigreeExample pedigree object (from ExamplePedigree.csv)
fillGroupMembersWithSexRatioForm breeding groups to match a target sex ratio
filterKinMatrixFilter a kinship matrix to selected IDs
filterPairsFilter kinship pairs by the animals' sexes
filterReportFilter a genetic value report to selected animals
filterThresholdFilter out kinship pairs below a threshold
finalRptGenetic-value report list prior to ranking
findGenerationDetermine the generation number for each ID
findLoopsFind loops in a pedigree tree
findOffspringCount total offspring for each animal
findPedigreeNumberDetermine the pedigree number for each ID
fixColumnNamesStandardize pedigree column names
focalAnimalsFocal animal IDs from examplePedigree
geneDropSimulate gene dropping through a pedigree
getAncestorsRecursively collect an individual's ancestors
get_and_or_listJoin a character vector into an and/or list
getAnimalsWithHighKinshipList each animal's high-kinship relatives
getAutoIdFormatGet the auto-generated unknown-ID format
getBoxWhiskerDescriptionGet Box and Whisker Plot Description
getChangedColsTabBuild the changed-columns tab panel
getConfigFileNameGet the configuration file name for the system
getCurrentAgeCalculate current age in years from a birth date
getDatedFilenamePrepend the date and time to a file name
getDateErrorsAndConvertDatesInPedFind date errors and convert dates in a pedigree
getDemographicsGet demographic data
getDescendantPedigreeReduce a pedigree to a group and its descendants
get_elapsed_time_strFormat the elapsed time since a start time
getEmptyErrorLstCreate an empty errorLst object
getErrorTabBuild the error-list tab panel
getFileDirectRelativesGet the direct relatives of selected animals from a pedigree...
getFocalAnimalPedGet pedigree based on list of focal animals
getFocalAnimalPedFromFileGet a focal-animal pedigree from a pedigree file
getFoundersGet the founder ids from a pedigree
getGeneticDiversityStatsAssemble breeding-group genetic diversity heat-map statistics
getGenotypesGet genotypes from file
getGVGenotypeExtract genotype data for a genetic value report
getGVPopulationGet the population of interest for the Genetic Value analysis
getIdsWithOneParentGet ids of animals with only one parent
getIncludeColumnsGet the superset of columns that can be in a pedigree file
getLkDirectAncestorsGet the direct ancestors of selected animals
getLkDirectRelativesGet the direct relatives of selected animals from the LabKey...
getOffspringGet offspring to corresponding animal IDs provided
getParentsGet parents to corresponding animal IDs provided
getPedDirectRelativesGet the direct relatives of selected animals from a pedigree
getPedigreeGet pedigree from file
getPedMaxAgeGet the maximum age of any animal in the pedigree
getPossibleColsGet possible column names for a studbook
getPotentialParentsGet potential parents for animals with unknown parents
getPotentialSiresList potential sires
getProbandPedigreeReduce a pedigree to probands and their ancestors
getPyramidAgeDistGet the age distribution for the pedigree
getPyramidPlotCreate an age-sex pyramid plot of a pedigree
getRequiredColsGet required column names for a studbook
getSiteInfoGet site information
getSpeciesGestationLook up the maximum gestation period (days) for one or more...
getSpeciesMinBreedingAgeLook up the minimum breeding age (years) for one or more...
getTokenListGet tokens from a character vector of lines
getVersionGet the version number of nprcgenekeepr
groupAddAssignAdd animals to a breeding group or form new groups
gvaConvergenceRecommend gene-drop iterations for a pedigree
hasBothParentsCheck whether an animal has both parents
hasGenotypeCheck for genotype data in dataframe
headerDisplayNamesConvert internal column names to display or header names
isFounderIdentify the founders in a pedigree
is_valid_date_strTest whether a string is a valid date
kinMatrix2LongFormReformat a kinship matrix into long form
kinshipGenerate a kinship matrix
kinshipMatricesToKValuesBuild a kValue table from a list of kinship matrices
kinshipMatrixToKValuesExtract a kValue table from a kinship matrix
lacy1989PedSmall hypothetical pedigree (Lacy 1989)
lacy1989PedAllelesGene-drop alleles for lacy1989Ped (5000 iterations)
loadSiteConfigLoad the site configuration for the modular Shiny application
loadSpeciesOverridesLoad user-configurable species reproductive-parameter...
logModuleEventLog module events
makeCEPHMake a CEPH-style pedigree for each id
makeExamplePedigreeFileWrite copy of nprcgenekeepr::examplePedigree into a file
makeFounderStatsTableCreate Founder Statistics HTML Table
makeGeneticDiversityHeatmapMake a genetic diversity heat map
makeGeneticSummaryTableCreate Genetic Summary Statistics HTML Table
makeGroupMembersMake the initial groupMembers animal list
makeGroupNumMake the initial grpNum list
makeGrpNumDeprecated alias for makeGroupNum
makeRelationClassesTableMake a relation classes table from kinship pairs
makeSimPedMake a simulated pedigree from representative sires and dams
mapIdsToObfuscatedMap IDs to Obfuscated IDs
meanKinshipCalculate mean kinship for each animal in a kinship matrix
modBreedingGroupsServerBreeding Groups Module - Server Function
modBreedingGroupsUIBreeding Groups Module - UI Function
modGeneticDiversityServerGenetic Diversity Module - Server Function
modGeneticDiversityUIGenetic Diversity Module - UI Function
modGeneticValueServerGenetic Value Analysis Module - Server Function
modGeneticValueUIGenetic Value Analysis Module - UI Function
modGvAndBgDescServerGenetic Value and Breeding Group Description Module - Server...
modGvAndBgDescUIGenetic Value and Breeding Group Description Module - UI...
modInputServerData Input and Quality Control Module - Server Function
modInputUIData Input and Quality Control Module - UI Function
modORIPReportingServerORIP Reporting Module - Server Function
modORIPReportingUIORIP Reporting Module - UI Function
modPedigreeServerPedigree Browser Module - Server Function
modPedigreeUIPedigree Browser Module - UI Function
modPotentialParentsServerPotential Parents Module - Server Function
modPotentialParentsUIPotential Parents Module - UI Function
modPyramidServerAge-Sex Pyramid Module - Server Function
modPyramidUIAge-Sex Pyramid Module - UI Function
modSummaryStatsServerSummary Statistics Module - Server Function
modSummaryStatsUISummary Statistics Module - UI Function
nprcgenekeepr-packagenprcgenekeepr: Genetic Tools for Colony Management
obfuscateDateObfuscate dates with a random day offset
obfuscateIdCreate ID aliases of a specified length
obfuscatePedObfuscate a pedigree by aliasing IDs and shifting dates
offspringCountsTabulate offspring counts, optionally by population
ped1AllelesGene-drop alleles example (baboon pedigree)
pedDuplicateIdsExample studbook with a duplicated record
pedFemaleSireMaleDamExample studbook with sex-mismatched parents
pedGoodValid example studbook (no QC errors)
pedInvalidDatesExample studbook with invalid birth dates
pedMissingBirthExample studbook missing the birth date column
pedOneRaw pedigree-file fragment for testing (5 columns)
pedSameMaleIsSireAndDamExample studbook with a male as both sire and dam
pedSixRaw pedigree-file fragment for testing (7 columns)
pedWithGenotypePedigree with simulated genotypes (from qcPed)
pedWithGenotypeReportGenetic-value report for pedWithGenotype
printPrint an nprcgenekeepr summary object
processQcStudbookResultProcess qcStudbook Result into UI-Friendly Format
qcBreedersPotential breeder IDs (29 baboons)
qcPedExample quality-controlled baboon pedigree
qcPedGvReportGenetic-value report for qcPed
qcStudbookRun quality control on a studbook or pedigree
rankSubjectsRank animals by genetic value
readKinshipOverridesRead a kinship overrides table from a file
removeAutoGenIdsRemove automatically generated IDs from pedigree
removeDuplicatesRemove duplicate records from pedigree
removeEarlyDatesRemove dates before a specified year
removePotentialSiresRemove potential sires from a list of IDs
removeUninformativeFoundersRemove uninformative founders
removeUnknownAnimalsRemove placeholder animals added for unknown parents
reportGVGenerate a genetic value report for a pedigree
rhesusGenotypesRhesus genotypes (two haplotypes per animal)
rhesusPedigreeObfuscated rhesus pedigree object
runGeneKeepRRun the GeneKeepR Shiny Application
runModularAppRun the Modular Version of GeneKeepR (Deprecated)
runQcStudbookRun Quality Control on Studbook with UI-Friendly Results
safeExecuteExecute an expression with error handling
saveDataframesAsFilesWrite copy of dataframes to either CSV, TXT, or Excel file
savePlotToFileSave Plot to File
setAutoIdFormatSet the auto-generated unknown-ID format
setExitSet the exit date when no exit column exists
setLabKeyDefaultsConfigure Rlabkey authentication for the current session
setPopulationFlag animals as the population of interest
set_seedSet a reproducible RNG seed across R versions
shouldShowChangedColsTabDetermine if Changed Columns tab should be displayed
shouldShowOripTabDetermine if the ORIP Reporting tab should be displayed
smallPedHypothetical 17-animal pedigree
smallPedTreePedigree tree built from smallPed
speciesGestationPer-species reproductive parameters
summarizeKinshipValuesSummarize imputed kinship values
summarySummarize a studbook quality-control error list
toCharacterForce dataframe columns to character
trimPedigreeTrim a pedigree to a group's ancestors
withinIntegerRangeGet integer within a range
nprcgenekeepr documentation built on July 26, 2026, 5:06 p.m.