computeHaldane: Compute genetic distances (in centiMorgans) by the Haldane...

Description Usage Arguments Value

View source: R/computeHaldane.R

Description

Compute genetic distances (in centiMorgans) by the Haldane method, and assign a group number to the markers based on which cutpoint group they are in. NOTE: Recombination frequency values should NOT be divided by 2 before being passed to this function, the function takes care of that.

Usage

1
computeHaldane(pathData, cutpoints)

Arguments

pathData

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

cutpoints

- cutpoint array, as produced by the cutpoints.R/findcuts function. The default is NULL, which means that pathData consists of a single chromosome and therefore cutpoints are not needed.

Value

TSP solution object identical to pathData along with genetic distances and group numbers


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