find_order: Find clustering order using TSP algorithm.

Description Usage Arguments Value

View source: R/GenePattern.R

Description

Determine the order of by solving travel saleman problem.

Usage

1
2
find_order(mat, labels, reverse = FALSE, metric = "pearson",
  method = "farthest_insertion", seed = 1)

Arguments

mat

Expression matrix, columns are cells and rows are genes.

labels

Cluster labels on the row of mat.

reverse

Reverse the path.

metric

Metric used to compute the paired distance - default is pearson correlation distance.

method

Method to solve the TSP, see solve_TSP.

seed

Random seed.

Value

Path indice of the clusters.


charliex210/sctools documentation built on Dec. 29, 2021, 11:19 p.m.