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)

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



[1] 0

dSimer documentation built on May 2, 2019, 12:40 a.m.