meshSim: meshSim

View source: R/meshSim.R

meshSimR Documentation

meshSim

Description

semantic similarity between two MeSH term vectors

Usage

meshSim(meshID1, meshID2, measure = "Wang", semData)

Arguments

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

Value

score matrix

Author(s)

Guangchuang Yu https://guangchuangyu.github.io

Examples

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

GuangchuangYu/meshes documentation built on Nov. 12, 2022, 7:13 a.m.