Learn R Programming

AlphaSimR (version 2.0.0)

mapLoci: Finds positions of loci by marker name

Description

Used to generate lociPerChr and lociLoc objects for a set of markers. These objects can be passed other functions for pulling genotypes or haplotypes.

Usage

mapLoci(markers, genMap)

Value

A list containing lociPerChr and lociLoc that can be

Arguments

markers

a vector of marker names

genMap

a genetic map in AlphaSimR's internal genetic map format