
Get the direct relatives of selected animals from the LabKey EHR
Source:R/getLkDirectRelatives.R
getLkDirectRelatives.RdBuilds the pedigree of relatives for the provided focal animals from the
LabKey study schema demographics table, obtained through the
internal getPedigreeSource() adapter. The pedigree walk is delegated
to getPedDirectRelatives(), so the result is the full connected
pedigree component (ancestors, descendants, and collaterals such as siblings
and mates) reachable from the focal animals.
Value
A data.frame with pedigree structure containing all direct relatives – the full connected pedigree component (ancestors, descendants, and collaterals) – for the Ids provided.
See also
Other direct relatives:
getFileDirectRelatives(),
getLkDirectAncestors(),
getPedDirectRelatives()
Examples
if (FALSE) { # \dontrun{
# Requires LabKey connection
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectRelatives(ids = focalAnimals))
} # }