meshSim {meshes} | 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
## hsamd <- meshdata("MeSH.Hsa.eg.db", category='A', computeIC=T, database="gendoo") data(hsamd) meshSim("D000009", "D009130", semData=hsamd, measure="Resnik")