# NOT RUN {
pedigree <- eightParentPedigreeSingleFunnel(initialPopulationSize = 10,
selfingGenerations = 0, nSeeds = 1, intercrossingGenerations = 1)
map <- qtl::sim.map()
cross <- simulateMPCross(map = map, pedigree = pedigree, mapFunction = haldane)
#Get out a list of funnels, which are rows of this matrix. For this pedigree, every funnel is 1:8.
getAllFunnels(cross)
#convert the pedigree to a graph
pedigreeAsGraph <- pedigreeToGraph(pedigree)
#Plot it
# }
# NOT RUN {
plot(pedigreeAsGraph)
# }
# NOT RUN {
#Write it to a file in DOT format
# }
# NOT RUN {
write.graph(graph = pedigreeAsGraph@graph, format = "dot", file = "./pedigree.dot")
# }
Run the code above in your browser using DataLab