# NOT RUN {
famPed = structure(
list(id = c('mother', 'daughter', 'AF'),
findex = c(0, 3, 0),
mindex = c(0, 1, 0),
sex = c('female', 'female', 'male')),
class = "FamiliasPedigree")
datamatrix = data.frame(
M1.1 = c(NA, 8, NA),
M1.2 = c(NA, 9.3, NA),
row.names = famPed$id)
famLoc = structure(
list(locusname = "M1",
alleles = c("8" = 0.2, "9" = 0.5, "9.3" = 0.3)),
class = "FamiliasLocus")
Familias2ped(famPed, datamatrix, loci = famLoc, matchLoci = TRUE)
# }
Run the code above in your browser using DataLab