get_pedigree | R Documentation |
Generate pedigree for a set of individuals
get_pedigree(id, pedfile, delim = ",", na.string = "NA", trim = TRUE)
id |
Vector of names of individuals |
pedfile |
Name of pedigree file |
delim |
Delimiter for the pedigree file (default is "," for CSV) |
na.string |
String used for NA in the pedigree file (default is "NA") |
trim |
TRUE/FALSE whether to trim pedigree (see Details) |
Finds ancestors of individuals in a three-column pedigree file (id,mother,father). The id column can be the identifier for an individual or cross. String matches must be exact or based on the naming convention crossID-progenyID. The returned pedigree is ordered using R package pedigree
so that offspring follow parents. When trim
is TRUE (default), the pedigree is trimmed to remove ancestors with only one offspring (which are not needed to compute the pedigree relationship matrix).
Data frame with columns id, mother, father
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.