order_markers: Order markers by solving the TSP

View source: R/order_markers.R

order_markersR Documentation

Order markers by solving the TSP

Description

Order markers by solving the TSP

Usage

order_markers(x)

Arguments

x

distance matrix

Details

Uses R package seriation to minimize the distance between adjacent markers. For example, x could be a matrix of recombination frequencies or monotone decreasing transformation of LOD scores.

Value

a list containing

order

optimized order as a vector of integers

distance

sum of adjacent distances


jendelman/MapRtools documentation built on April 12, 2025, 12:46 p.m.