# NOT RUN {
# Construct a population with additive and epistatic effects
pop <- Population(
popSize = 2000, map = map100snp, QTL = 20,
alleleFrequencies = runif(100)
)
pop <- addEffects(pop)
pop <- attachEpiNet(pop)
# Run the simulator
pop2 <- runSim(pop, generations = 10)
# Create a new subpopulation of 500 individuals
ID <- getComponents(pop2)$ID
ID <- sample(ID, 500)
pop3 <- getSubPop(pop2, ID)
# }
Run the code above in your browser using DataLab