getLinkedPairs: Identify linked marker pairs

View source: R/getLinkedPairs.R

getLinkedPairsR Documentation

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 = map50, maxdist = Inf)

Arguments

markers

A character vector containing marker names.

linkageMap

A data frame with columns including Marker, Chr and cM.

maxdist

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

Value

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

Examples

# Example using the default map of 50 STR markers
map = norSTR::map50

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

KLINK documentation built on June 8, 2025, 11:42 a.m.