Retrieves the genetic map for all loci.
getGenMap(object = NULL, sex = "A")
Returns a data.frame with:
Unique identifier for locus
Chromosome containing the locus
Genetic map position
where to retrieve the genetic map.
Can be an object of SimParam
or
MapPop-class
. If NULL, the function will
look for a SimParam object called "SP" in your
global environment.
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 or using pulling from a MapPop.
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
getGenMap(founderPop)
Run the code above in your browser using DataLab