Learn R Programming

epinetr (version 0.96)

getQTL: QTL retrieval.

Description

Retrieve the QTLs being used for this population.

Usage

getQTL(pop)

Arguments

pop

An object of class 'Population'.

Value

A data.frame containing the IDs and indices of all QTLs is returned.

Details

getQTL retrieves the IDs and indices of the SNPs being used as QTLs for a given Population object.

See Also

Population

Examples

Run this code
# NOT RUN {
# Create population
pop <- Population(
  popSize = 200, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100),
  broadH2 = 0.9, narrowh2 = 0.6, traitVar = 40
)

# Get the SNP IDs of the QTLs
getQTL(pop)
# }

Run the code above in your browser using DataLab