jaccardindex {dSimer} | R Documentation |
calculate Jaccard Index of two terms by using their annotated genes
jaccardindex(x1, x2, x2y)
x1 |
a disease id |
x2 |
another disease id |
x2y |
a list of disease-gene associations which consists x1 and x2 |
numeric value of a jaccard index of x1 and x2
Peng Ni, Min Li
## 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)