# NOT RUN {
# Construct a new population
pop <- Population(
popSize = 150, map = map100snp, QTL = 20,
alleleFrequencies = runif(100), broadH2 = 0.7,
narrowh2 = 0.45, traitVar = 40
)
# Attach additive effects
pop <- addEffects(pop)
# Attach a network of epistatic effects
pop <- attachEpiNet(pop)
# Retrieve the possible values for the first two-way interaction
getInteraction(pop, 1)
# Retrieve the value for the case where, in the fourth two-way
# interaction, the first QTL in the interaction is heterozygous
# and the second QTL in the interaction is the homozygous
# reference genotype.
getInteraction(pop, 4)[2, 1]
# Retrieve the value for the case where, in the second two-way
# interaction, the first QTL in the interaction is the homozygous
# reference genotype and the second QTL in the interaction is the
# homozygous alternative genotype.
getInteraction(pop, 2)[1, 3]
# }
Run the code above in your browser using DataLab