library(nprcgenekeepr)
ped <- qcStudbook(
read.csv(
system.file("extdata", "examples", "example_ancestry_pedigree.csv",
package = "nprcgenekeepr"
),
stringsAsFactors = FALSE, na.strings = c("", "NA")
),
minSireAge = 2, minDamAge = 2, reportChanges = FALSE, reportErrors = FALSE
)
rules <- checkAncestryRules(readAncestryRules(
system.file("extdata", "examples", "example_ancestry_rules.csv",
package = "nprcgenekeepr"
)
))
reportAncestryViolations(list(c("I1", "C1"), c("I2", "U1")), ped, rules)
Run the code above in your browser using DataLab