Data objects |
|
---|---|
exampleNprcgenekeeprConfig is a loadable version of the example
configuration file |
|
examplePedigree is a pedigree object created by |
|
finalRpt is a list object created from the list object rpt prepared
by |
|
focalAnimals is a dataframe with one column (_id_) containing the of animal Ids from the __examplePedigree__ pedigree. |
|
lacy1989Ped small hypothetical pedigree |
|
lacy1989PedAlleles is a dataframe produced by |
|
ped1Alleles is a dataframe created by the geneDrop function |
|
pedDuplicateIds is a dataframe with 9 rows and 5 columns (ego_id, sire, dam_id, sex, birth_date) representing a full pedigree with a duplicated record. |
|
pedFemaleSireMaleDam is a dataframe with 8 rows and 5 columns (ego_id, sire, dam_id, sex, birth_date) representing a full pedigree with the errors of having a sire labeled as female and a dam labeled as male. |
|
pedGood is a dataframe with 8 rows and 5 columns (ego_id, sire, dam_id, sex, birth_date) representing a full pedigree with no errors. |
|
pedInvalidDates is a dataframe with 8 rows and 5 columns (ego_id, sire,
dam_id, sex, birth_date) representing a full pedigree with values in the
|
|
pedMissingBirth is a dataframe with 8 rows and 5 columns (ego_id, sire, dam_id, sex, birth_date) representing a full pedigree with no errors. |
|
pedOne is a loadable version of a pedigree file fragment used for testing and demonstration |
|
pedSameMaleIsSireAndDam is a dataframe with 8 rows and 5 columns (ego_id, sire, dam_id, sex, birth_date) representing a full pedigree with no errors. |
|
pedSix is a loadable version of a pedigree file fragment used for testing and demonstration |
|
pedWithGenotype is a dataframe produced from qcPed by adding made up genotypes. |
|
pedWithGenotypeReport is a list containing the output of |
|
qcBreeders is a list of 29 baboon IDs that are potential breeders |
|
qcPed is a dataframe with 277 rows and 6 columns |
|
qcPedGvReport is a genetic value report |
|
rhesusGenotypes is a dataframe with two haplotypes per animal |
|
rhesusPedigree is a pedigree object |
|
smallPed is a hypothetical pedigree |
|
smallPedTree is a pedigree tree made from |
|
Major Features and FunctionsBrief codebook and Major Functions |
|
Genetic Management Functions |
|
Primary interactive functionsFuntions designed for interactive use |
|
Add back single parents trimmed pedigree |
|
Concatenates any errors from nprcgenekeeprErr into narrative form |
|
Add genotype data to pedigree file |
|
Add parents |
|
Eliminates partial parentage situations by adding unique placeholder IDs for the unknown parent. |
|
Form age pyramid plot |
|
Assign parent alleles randomly |
|
Calculates |
|
Calculate animal ages. |
|
Calculates founder Equivalents |
|
Calculates Founder Equivalents and Founder Genome Equivalents |
|
Calculates Founder Genome Equivalents |
|
Calculates genome uniqueness for each ID that is part of the population. |
|
Calculates Allelic Retention |
|
Check genotype file |
|
Check parent ages to be at least |
|
Sets sex for animals listed as either a sire or dam. |
|
Count the number of loops in a pedigree tree. |
|
Creates a folder with CSV files containing example pedigrees and ID lists used to demonstrate the package. |
|
Create a pedigree tree (PedTree). |
|
finalRpt is a list object created from the list object rpt prepared
by |
|
Determines the generation number for each id. |
|
Find loops in a pedigree tree |
|
Determines the generation number for each id. |
|
Reformat names of observed genotype columns |
|
Gene drop simulation based on the provided pedigree information |
|
Recursively create a character vector of ancestors for an individual ID. |
|
Returns a character vector with an file name having the date prepended. |
|
Get demographic data |
|
Get pedigree based on list of focal animals |
|
Get genotypes from file |
|
Get Genetic Value Genotype data structure for reportGV function. |
|
Get the population of interest for the Genetic Value analysis. |
|
Get the direct ancestors of selected animals |
|
Get the direct ancestors of selected animals |
|
Get pedigree from file |
|
Get the maximum age of live animals in the pedigree. |
|
Get possible column names for a studbook. |
|
Creates a pyramid plot of the pedigree provided. |
|
Get required column names for a studbook. |
|
Get site information |
|
Generates a kinship matrix. |
|
Write copy of nprcgenekeepr::examplePedigree into a file |
|
obfucateDate adds a random number of days bounded by plus and minus max delta |
|
obfucateId creates a vector of ID aliases of specified length |
|
obfuscatePed takes a pedigree object and creates aliases for all IDs and adjusts all date within a specified amount. |
|
|
print.summary.nprcgenekeepr print.summary.nprcgenekeeprGV |
Quality Control for the Studbook or pedigree |
|
Ranks animals based on genetic value. |
|
Reformats a kinship matrix into a long-format table. |
|
Remove duplicate records from pedigree |
|
Remove uninformative founders. |
|
removeUnknownAnimals Removes unknown animals added to pedigree that serve as placeholders for unknown parents. |
|
Allows running |
|
Trim pedigree to ancestors of provided group by removing uninformative individuals |
|
summary.nprcgenekeeprErr Summary function for class nprcgenekeeprErr |
|
All exposed functions |
|
Adds an NA value for all animals without a relative |
|
Add back single parents trimmed pedigree |
|
Add genotype data to pedigree file |
|
addGroupOfUnusedAnimals adds a group to the saved groups if needed |
|
addIdRecords Adds Ego records added having NAs for parent IDs |
|
Add parents |
|
Forms a dataframe with Id, Sex, and current Age given a list of Ids and a pedigree |
|
Eliminates partial parentage situations by adding unique placeholder IDs for the unknown parent. |
|
Form age pyramid plot |
|
Calculates the count of each allele in the provided vector. |
|
Returns |
|
Assign parent alleles randomly |
|
Calculates |
|
Calculate animal ages. |
|
Calculates founder Equivalents |
|
Calculates Founder Equivalents and Founder Genome Equivalents |
|
Calculates Founder Genome Equivalents |
|
Calculates genome uniqueness for each ID that is part of the population. |
|
Calculates Allelic Retention |
|
Calculates the sex ratio (number of non-males / number of males) given animal Ids and their pedigree |
|
checkChangedColAndErrorLst examines errorLst for errors and errorLst$changeCols non-empty fields |
|
checkChangedColsLst examines list for non-empty fields |
|
checkErrorLst examines list for non-empty fields |
|
Check genotype file |
|
Check parent ages to be at least |
|
Examines column names, |
|
Combines two vectors of alleles by randomly selecting one allele or the other at each position. |
|
Combines two vectors of alleles when alleles are character vectors. |
|
Choose date based on |
|
colChange internal function to describe column names transformation |
|
Converts the ancestry information to a standardized code |
|
Converts date columns formatted as characters to be of type datetime |
|
Converts the fromCenter information to a standardized code |
|
Converts pairwise kinship values to a relationship category descriptor. |
|
Converts sex indicator for an individual to a standardized codes. |
|
Converts status indicators to a Standardized code |
|
Sets sex for animals listed as either a sire or dam. |
|
Count first-order relatives. |
|
Count the number of loops in a pedigree tree. |
|
Creates a folder with CSV files containing example pedigrees and ID lists used to demonstrate the package. |
|
createPedOne makes the pedOne data object |
|
createPedSix makes the pedSix data object |
|
Create a pedigree tree (PedTree). |
|
Creates an Excel workbook with worksheets. |
|
dataframe2string converts a data.frame object to a character vector |
|
fillBins Fill bins represented by list of two lists |
|
Forms and fills list of animals groups based on provided constraints |
|
Forms breeding group(s) with an effort to match a specified sex ratio |
|
Removes kinship values where an animal is less than the minAge |
|
Filters a kinship matrix to include only the egos listed in 'ids' |
|
Filters kinship values from a long-format kinship table based on the sexes of the two animals involved. |
|
Filters a genetic value report down to only the specified animals |
|
Filters kinship to remove rows with kinship values less than the specified threshold |
|
Determines the generation number for each id. |
|
Find loops in a pedigree tree |
|
Finds the number of total offspring for each animal in the provided pedigree. |
|
Determines the generation number for each id. |
|
fixColumnNames changes original column names and into standardized names. |
|
Reformat names of observed genotype columns |
|
Gene drop simulation based on the provided pedigree information |
|
Returns a one element character string with correct punctuation for a list made up of the elements of the character vector argument. |
|
Returns the elapsed time since start_time. |
|
Recursively create a character vector of ancestors for an individual ID. |
|
Forms a list of animal Ids and animals related to them |
|
getChangedColsTab skeleton of list of errors |
|
getConfigFileName returns the configuration file name appropriate for the system. |
|
Age in years using the provided birthdate. |
|
Vector of date column names |
|
Returns a character vector with an file name having the date prepended. |
|
Converts columns of dates in text form to |
|
Get demographic data |
|
Creates a empty errorLst object |
|
getErrorTab skeleton of list of errors |
|
Get pedigree based on list of focal animals |
|
Assigns parental genotype contributions to an IDs genotype by attributing alleles to sire or dam |
|
Get genotypes from file |
|
Get Genetic Value Genotype data structure for reportGV function. |
|
Get the population of interest for the Genetic Value analysis. |
|
getIdsWithOneParent extracts IDs of animals pedigree without either a sire or a dam |
|
Get the superset of columns that can be in a pedigree file. |
|
Get Indian-origin status of group |
|
Get the direct ancestors of selected animals |
|
Get the direct ancestors of selected animals |
|
Get Logo file name |
|
Get the maximum of the absolute values of the negative (males) and positive (female) animal counts. |
|
Get minimum parent age. |
|
Get offspring to corresponding animal IDs provided |
|
Get parameter definitions from tokens found in configuration file. |
|
Get parents to corresponding animal IDs provided |
|
Get pedigree from file |
|
Get the maximum age of live animals in the pedigree. |
|
Get possible column names for a studbook. |
|
Provides list of potential sires |
|
Gets pedigree to ancestors of provided group leaving uninformative ancestors. |
|
Get production status of group |
|
Get proportion of Low genetic value animals |
|
Get the age distribution for the pedigree |
|
Creates a pyramid plot of the pedigree provided. |
|
Returns record numbers with selected |
|
Get required column names for a studbook. |
|
Get site information |
|
Gets tokens from character vector of lines |
|
getVersion Get the version number of nprcgenekeepr |
|
Add animals to an existing breeding group or forms groups: |
|
Forms return list of groupAddAssign function |
|
Check for genotype data in dataframe |
|
hasBothParents checks to see if both parents are identified. |
|
Convert internal column names to display or header names. |
|
Make the initial groupMembers animal list |
|
insertChangedColsTab insert a list of changed columns found by
|
|
insertErrorTab insert a list of errors found by |
|
insertSeparators inserts the character "-" between year and month and between month and day portions of a date string in %Y%m%d format. |
|
Is vector empty or all NA values. |
|
Returns TRUE if the string is a valid date. |
|
Generates a kinship matrix. |
|
Convenience function to make the initial available animal list |
|
Make a CEPH-style pedigree for each id |
|
Write copy of nprcgenekeepr::examplePedigree into a file |
|
Convenience function to make the initial groupMembers animal list |
|
Convenience function to make the initial grpNum list |
|
Make relation classes table from |
|
Round up the provided integer vector |
|
|
|
Map IDs to Obfuscated IDs |
|
Calculates the mean kinship for each animal in a kinship matrix |
|
Finds the total number of offspring for each animal in the pedigree |
|
obfucateDate adds a random number of days bounded by plus and minus max delta |
|
obfucateId creates a vector of ID aliases of specified length |
|
obfuscatePed takes a pedigree object and creates aliases for all IDs and adjusts all date within a specified amount. |
|
Order the results of the genetic value analysis for use in a report. |
|
|
print.summary.nprcgenekeepr print.summary.nprcgenekeeprGV |
Quality Control for the Studbook or pedigree |
|
Ranks animals based on genetic value. |
|
Append the rows of one dataframe to another. |
|
Remove group numbers when all available animals have been used |
|
Updates list of available animals by removing the selected animal |
|
Reformats a kinship matrix into a long-format table. |
|
Read in Excel file and convert POSIX dates to character |
|
Remove duplicate records from pedigree |
|
removeEarlyDates removes dates before a specified year |
|
Removes potential sires from list of Ids |
|
Remove uninformative founders. |
|
removeUnknownAnimals Removes unknown animals added to pedigree that serve as placeholders for unknown parents. |
|
Generates a genetic value report for a provided pedigree. |
|
Update or add the "group" field of a Pedigree. |
|
Allows running |
|
Write copy of dataframes to either CSV, TXT, or Excel file. |
|
Population designation function |
|
getSexRatioWithAdditions returns the sex ratio of a group. |
|
Sets the exit date, if there is no exit column in the table |
|
Work around for unit tests using sample() among various versions of R |
|
Returns a logical vector with results of stri_detect() for each pattern in second parameters character vector. |
|
summary.nprcgenekeeprErr Summary function for class nprcgenekeeprErr |
|
Force dataframe columns to character |
|
Trim pedigree to ancestors of provided group by removing uninformative individuals |
|
Removing IDs having "UNKNOWN" regardless of case |
|
Get integer within a range |