STS_sortingcost {uSORT} | R Documentation |
A cost computation function for Side-to-Side (STS) algorithm
STS_sortingcost(expr = NULL, method = c("Euclidean", "Correlation", "eJaccard", "none"))
expr |
An expresssion matrix containing n-rows of cells and m-cols of genes. |
method |
A character string indicating the distance function. |
A numeric value of sorting cost.
set.seed(15) da <- iris[sample(150, 150, replace = FALSE), ] d <- da[,1:4] randomOrdering_cost <- STS_sortingcost(d, method= 'Euclidean') randomOrdering_cost da <- iris d <- da[,1:4] properOrdering_cost <- STS_sortingcost(d, method= 'Euclidean') properOrdering_cost