JSdist {cummeRbund} | R Documentation |
JSdist takes a matrix of expression probabilites (calculated directly or output from makeprobs()) and returns a dist object of the pairwise Jensen-Shannon distances between columns
JSdist(mat,...)
mat |
A matrix of expression probabilities (e.g. from makeprobs()) |
... |
Passthrough argument to as.dist() |
Returns pairwise Jensen-Shannon distance (in the form of a dist object) for a matrix of probabilities (by column)
A dist object of pairwise J-S distances between columns.
None
Loyal A. Goff
None
mat<-matrix(sample(1:50,50),10) probs<-makeprobs(mat) js.distance<-JSdist(probs)