jaccardindex: calculating Jaccard Index

Description Usage Arguments Value Author(s) Examples

View source: R/common_use.R

Description

calculate Jaccard Index of two terms by using their annotated genes

Usage

1
jaccardindex(x1, x2, x2y)

Arguments

x1

a disease id

x2

another disease id

x2y

a list of disease-gene associations which consists x1 and x2

Value

numeric value of a jaccard index of x1 and x2

Author(s)

Peng Ni, Min Li

Examples

1
2
3
4
5
## this function is not just for disease-gene associations
data(d2go_sample)
d1<-names(d2go_sample)[1]
d2<-names(d2go_sample)[2]
jaccardindex(d1,d2,d2go_sample)

dSimer documentation built on Nov. 17, 2017, 12:51 p.m.