library(nprcgenekeepr)
ped <- data.frame(
id = c("A01", "A02"),
sire = c(NA, NA),
dam = c(NA, NA),
sex = c("M", "F"),
stringsAsFactors = FALSE
)
rohTable <- data.frame(
id = c("A01", "A02"), nSegments = c(1L, 0L),
totalRohLength = c(1000000, 0), fRoh = c(0.1, 0),
stringsAsFactors = FALSE
)
obfuscated <- obfuscatePed(ped, map = TRUE)
obfuscateGenomicROH(rohTable, obfuscated$map)
Run the code above in your browser using DataLab