getEpiNet {epinetr}R Documentation

Epistatic network retrieval.

Description

Get an epistatic network from a Population object.

Usage

getEpiNet(pop)

Arguments

pop

An object of class 'Population' which has an EpiNet object attached.

Details

getEpiNet() is merely a function for retrieving an epistatic network object. The common purpose is to plot the network.

Value

An object of class 'EpiNet' is returned.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

Population, plot.EpiNet, attachEpiNet

Examples

# Create population and attach an epistatic network
pop <- Population(
  popSize = 200, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100),
  broadH2 = 0.9, narrowh2 = 0, traitVar = 40
)
pop <- attachEpiNet(pop)

# Plot epistatic network
epiNet <- getEpiNet(pop)
plot(epiNet)

[Package epinetr version 0.96 Index]