Retrieves the genetic map for the QTL of a given trait.
Arguments
- trait
an integer or a trait name indicating which trait's QTL to return
- sex
determines which sex specific map is returned. Options are "A" for average map, "F" for female map, and "M" for male map. All options are equivalent if not using sex specific maps.
- simParam
an object of class
SimParam. IfNULL, the function uses the object namedSPfrom the global environment.
Value
Returns a data.frame with:
- id
Unique identifier for the QTL
- chr
Chromosome containing the QTL
- site
Segregating site on the chromosome
- pos
Genetic map position
Examples
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitA(5)
#Pull SNP map
getQtlMap(trait=1, simParam=SP)
#> id chr site pos
#> 1_1 1_1 1 1 0.0000000
#> 1_3 1_3 1 3 0.2222222
#> 1_8 1_8 1 8 0.7777778
#> 1_9 1_9 1 9 0.8888889
#> 1_10 1_10 1 10 1.0000000