Learn R Programming

epinetr (version 0.96)

getEpiNet: 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.

Value

An object of class 'EpiNet' is returned.

Details

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

See Also

Population, plot.EpiNet, attachEpiNet

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab