Learn R Programming

KLINK (version 1.0.2)

getLinkedPairs: Identify linked marker pairs

Description

This function returns a "maximal" set of disjoint pairs of linked markers, given a genetic marker map and a subset of the markers included in the map. The pairs are identified in a greedy manner, successively choosing the closest markers on each chromosome.

Usage

getLinkedPairs(markers, linkageMap, maxdist = Inf)

Value

A list of character vectors, each containing two marker names.

Arguments

markers

A character vector containing marker names.

linkageMap

A data frame with columns including Marker, Chrom and PosCM.

maxdist

A positive number indicating the maximum linkage distance (in cM). Markers further apart than this are considered unlinked.

Examples

Run this code
# Example using the built-in map of 50 STR markers
map = KLINK::LINKAGEMAP

getLinkedPairs(map$Marker, map, maxdist = 25)

Run the code above in your browser using DataLab