Learn R Programming

AlphaSimR (version 0.11.0)

getSnpMap: Get SNP genetic map

Description

Retrieves the genetic map for a given SNP chip.

Usage

getSnpMap(snpChip = 1, gender = "A", simParam = NULL)

Arguments

snpChip

an integer. Indicates which SNP chip's map to retrieve.

gender

determines which gender 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 gender specific maps.

simParam

an object of SimParam

Value

Returns a data.frame for the SNP map.

Examples

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

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addSnpChip(5)

#Pull SNP map
getSnpMap(snpChip=1, simParam=SP)

# }

Run the code above in your browser using DataLab