closest.top: Find the closest genes.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/closest.top.R

Description

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

Usage

1
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

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

Bioconductor-mirror/bioDist documentation built on June 1, 2017, 5:18 a.m.