meshSim: meshSim

Description Usage Arguments Value Author(s) Examples

View source: R/meshSim.R

Description

semantic similarity between two MeSH term vectors

Usage

1
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

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

Example output

Loading required package: DOSE

DOSE v3.2.0  For help: https://guangchuangyu.github.io/DOSE

If you use DOSE in published research, please cite:
Guangchuang Yu, Li-Gen Wang, Guang-Rong Yan, Qing-Yu He. DOSE: an R/Bioconductor package for Disease Ontology Semantic and Enrichment analysis. Bioinformatics 2015, 31(4):608-609


Attaching package: 'meshes'

The following object is masked from 'package:DOSE':

    geneSim

Warning message:
Couldn't set synchronous mode: database is locked
Use `synchronous` = NULL to turn off this warning. 
[1] 0.2910261

meshes documentation built on Nov. 8, 2020, 4:58 p.m.