bioDist (version 1.44.0)

closest.top: Find the closest genes.

Description

Find the closest genes to the supplied target gene based on the supplied distances.

Usage

closest.top(x, dist.mat, top)

Arguments

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.

Value

A vector of names of the top closest features.

Details

The feature named x must be in the supplied distances. If so, then the top closest other features are returned.

See Also

cor.dist, spearman.dist, tau.dist,euc, man,KLdist.matrix,KLD.matrix,mutualInfo

Examples

Run this code
 data(sample.ExpressionSet)
 sE <- sample.ExpressionSet[1:100,]
 d1 <- KLdist.matrix(sE, sample = FALSE)
 closest.top(featureNames(sE)[1], d1, 5)

Run the code above in your browser using DataLab