mnodeSim: Similarity between node lists

Description Usage Arguments Details Value Examples

View source: R/node.R

Description

Calculate similarity matrix between two MeSH node lists.

Usage

1
    mnodeSim(nodeList1, nodeList2, method="SP", frame="node", env=NULL)

Arguments

nodeList1, nodeList2

two nodes or two lists of nodes

method

similarity measurment method, see Details for available methods.

frame

available options are node and heading, decide whether using node-based or heading-based methods.

env

the dataset to use.

Details

Available methods: SP: Shortest Path method, WL: Weighted Link method, WP: Wu and Palmer's method, LC: Leacock and Chodorow's method, Li: Li's method, Lord: Lord's method, Resnik: Resnik's method, Lin: Lin's method, JC: Jiang and Conrath's method.

Value

Semantic similarity matrix between two MeSH node lists.

Examples

1
2
3
    nodeList1<-c("B03.440.400.425.340.590", "B03.440.400.425.117.800.200")
    nodeList2<-c("B03.440.400.425.340.590", "B03.440.400.425.117.800.200", "B03.440.400.425.127.100")
    mnodeSim(nodeList1,nodeList2)

MeSHSim documentation built on May 31, 2017, 11:32 a.m.