Learn R Programming

AlphaSimR (version 1.6.0)

getQtlMap: Get QTL genetic map

Description

Retrieves the genetic map for the QTL of a given trait.

Usage

getQtlMap(trait = 1, sex = "A", simParam = NULL)

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

Arguments

trait

an integer for the

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 SimParam

Examples

Run this code
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$nThreads = 1L
SP$addTraitA(5)

#Pull SNP map
getQtlMap(trait=1, simParam=SP)

Run the code above in your browser using DataLab