getFocalAnimalPed: Get pedigree based on list of focal animals

Description Usage Arguments Value Examples

View source: R/getFocalAnimalPed.R

Description

Get pedigree based on list of focal animals

Usage

1
getFocalAnimalPed(fileName, sep = ",")

Arguments

fileName

character vector of temporary file path.

sep

column separator in CSV file

Value

A pedigree file compatible with others in this package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(nprcgenekeepr)
siteInfo <- getSiteInfo()
source <- " generated by getFocalAnimalPed: "
tryCatch(getFocalAnimalPed(fileName = "breeding file.csv"),
                           warning = function(wCond) {
                             cat(paste0("Warning", source, wCond),
                                        name = "nprcgenekeepr")
                             return(NULL)},
                           error = function(eCond) {
                             cat(paste0("Error", source, eCond),
                                        name = "nprcgenekeepr")
                             return(NULL)}
)

rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.