View source: R/getLinkedPairs.R
getLinkedPairs | R Documentation |
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.
getLinkedPairs(markers, linkageMap = map50, maxdist = Inf)
markers |
A character vector containing marker names. |
linkageMap |
A data frame with columns including |
maxdist |
A positive number indicating the maximum linkage distance (in cM). Markers further apart than this are considered unlinked. |
A list of character vectors, each containing two marker names.
# Example using the default map of 50 STR markers
map = norSTR::map50
getLinkedPairs(map$Marker, map, maxdist = 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.