jaccardindex {dSimer} | R Documentation

## calculating Jaccard Index

### Description

calculate Jaccard Index of two terms by using their annotated genes

### Usage

    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

    ## 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)

[Package dSimer version 1.6.0 Index]