View source: R/getLkDirectRelatives.R
| getLkDirectRelatives | R Documentation |
Builds 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.
getLkDirectRelatives(ids, unrelatedParents = FALSE)
ids |
character vector of animal IDs |
unrelatedParents |
logical vector when |
A data.frame with pedigree structure containing all direct relatives – the full connected pedigree component (ancestors, descendants, and collaterals) – for the Ids provided.
Other direct relatives:
getFileDirectRelatives(),
getLkDirectAncestors(),
getPedDirectRelatives()
## Not run:
# Requires LabKey connection
library(nprcgenekeepr)
## Have to a vector of focal animals
focalAnimals <- c("1X2701", "1X0101")
suppressWarnings(getLkDirectRelatives(ids = focalAnimals))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.