Description Usage Arguments Value
View source: R/createTSPFile.R
Create TSP problem file (for use with both Concorde and LKH). This converts the rf matrix to an integer matrix that the TSP solvers need. HAMILTONIAN PATH CORRECTION: This also adds a dummy node which has 0 weight to all other nodes so that the TSP solver will find a Hamiltonian path instead of a circuit.
1 | createTSPFile(markerdata,rfmatrix,strainName, dirname)
|
markerdata |
main marker data file, produced by the readfile.R/readFile function |
rfmatrix |
recombination frequency matrix, produced by the rfmatrix.R/computeRFmat function |
strainName |
name of the strain as a string (no spaces), used to name the file |
dirname |
directory in which to create the file |
Returns the path and filename of the TSP file (.tsp extension).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.