closest.top: Find the closest genes.

View source: R/closest.top.R

closest.topR Documentation

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.

Details

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

Value

A vector of names of the top closest features.

Author(s)

Beiying Ding

See Also

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

Examples

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

Bioconductor/bioDist documentation built on Nov. 2, 2024, 7:23 a.m.