jaccardindex: calculating Jaccard Index

Description Usage Arguments Value Author(s) Examples

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)

PengNi/dSimer documentation built on May 8, 2019, 1:28 a.m.