closest.top | R Documentation |
Find the closest genes to the supplied target gene based on the supplied distances.
closest.top(x, dist.mat, top)
x |
the name of the gene (feature) to use. |
dist.mat |
either a dist object or a matrix of distances. |
top |
the number of closest genes desired. |
The feature named x
must be in the supplied distances. If so, then
the top
closest other features are returned.
A vector of names of the top
closest features.
Beiying Ding
cor.dist
, spearman.dist
, tau.dist
,euc
,
man
,KLdist.matrix
,KLD.matrix
,mutualInfo
data(sample.ExpressionSet)
sE <- sample.ExpressionSet[1:100,]
d1 <- KLdist.matrix(sE, sample = FALSE)
closest.top(featureNames(sE)[1], d1, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.