View source: R/Population_getters.R
getIncMatrix | R Documentation |
Get an incidence matrix from a Population
.
getIncMatrix(pop)
pop |
An object of class |
getIncMatrix()
retrieves the incidence matrix used in
epistatic interactions within the given Population
object.
This is most useful for copying the network structure to a new
Population
object.
An incidence matrix representing the epistatic network
within the given Population
object.
Dion Detterer, Paul Kwan, Cedric Gondro
attachEpiNet
# Create population pop <- Population( popSize = 200, map = map100snp, QTL = 20, alleleFrequencies = runif(100), broadH2 = 0.9, narrowh2 = 0, traitVar = 40 ) # Attach random epistatic network and retrieve incidence matrix pop <- attachEpiNet(pop) inc <- getIncMatrix(pop) # Create second population pop2 <- Population( popSize = 200, map = map100snp, QTL = 20, alleleFrequencies = runif(100), broadH2 = 0.8, narrowh2 = 0.6, traitVar = 40 ) # Attach epistatic network to second population # using incidence matrix from first pop2 <- attachEpiNet(pop2, incmat = inc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.