cosineSim: Compute cosine similarities or distances between pairs of...

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

View source: R/assoScore.R

Description

This function compute cosine similarities or distances between pairs of genes, given measured rich phenotypes.

Usage

1
2

Arguments

x

a numeric matrix of rich phenotypes with rows and columns specifying samples and genes, respectively.

Value

This function will return either a numeric matrix of cosine similarities or an object of dist.

Author(s)

Xin Wang [email protected]

References

Xin Wang, Mauro Castro, Klaas W. Mulder and Florian Markowetz, Posterior association networks and enriched functional gene modules inferred from rich phenotypic perturbation screens, in preparation.

See Also

PANR:assoScore

Examples

1
2
3
toydata<-matrix(rnorm(n=2000, mean=0, sd=4), nrow=100, ncol=20)
toycossim<-cosineSim(t(toydata))
toycosdist<-cosineDist(t(toydata))

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

PANR documentation built on May 2, 2018, 4:29 a.m.