meshSim | R Documentation |
semantic similarity between two MeSH term vectors
meshSim(meshID1, meshID2, measure = "Wang", semData)
meshID1 |
MeSH term vector |
meshID2 |
MeSH term vector |
measure |
one of "Wang", "Resnik", "Rel", "Jiang" and "Lin" |
semData |
annotation data for semantic measurement, output by meshdata function |
score matrix
Guangchuang Yu https://guangchuangyu.github.io
## library(meshes)
## library(AnnotationHub)
## ah <- AnnotationHub()
## qr_hsa <- query(ah, c("MeSHDb", "Homo sapiens"))
## filepath_hsa <- qr_hsa[[1]]
## db <- MeSHDbi::MeSHDb(filepath_hsa)
## hsamd <- meshdata(db, category='A', computeIC=T, database="gendoo")
data(hsamd)
meshSim("D000009", "D009130", semData=hsamd, measure="Resnik")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.