meshSim {meshes} | R 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

    ## hsamd <- meshdata("MeSH.Hsa.eg.db", category='A', computeIC=T, database="gendoo")
    data(hsamd)
    meshSim("D000009", "D009130", semData=hsamd, measure="Resnik")

[Package meshes version 1.16.0 Index]