Skip to contents

Gets direct ancestors from labkey study schema and demographics table.

Usage

getLkDirectAncestors(ids)

Arguments

ids

character vector of animal IDs

Value

data.frame with pedigree structure having the records of the Ids provided (the focal animals themselves) and all of their direct ancestors. NULL is returned when the site configuration cannot be read or the LabKey data cannot be fetched.

Examples

if (FALSE) { # \dontrun{
# Requires LabKey connection
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectAncestors(ids = focalAnimals))
} # }