reverseGroup: Reverse the order of markers in a group within a TSP solution...

Description Usage Arguments Value

View source: R/reverseGroup.R

Description

Reverse the order of markers in a group within a TSP solution object.

Usage

1
reverseGroup(markerData, cutpoints, groupIndex, rfmatrix)

Arguments

markerData

- TSP solution object, produced by the TSPinterface.R/processConcordeOutput or TSPinterface.R/processLKHOutput function

cutpoints

- cutpoint array, produced by cutpoints.R/findcuts function

groupIndex

- index of the group

rfmatrix

- recombination frequency matrix, produced by the rfmatrix.R/computeRFmat function

Value

TSP solution object that is identical to markerData, but with the markers of the selected group in reverse order. NOTE: this function updates the rf values and cumulative rf values, but does not update genetic distance values (if present).


mckaylab/TSPmap documentation built on Aug. 19, 2021, 8:38 p.m.