Skip to contents

An edgelist network representing the hierarchical structure of the Medical Subject Headings (MeSH) terms.

Usage

mesh_hierarchy

Format

A data.table with the following columns:

from_id

A character vector representing the MeSH identifier of the parent term.

to_id

A character vector representing the MeSH identifier of the child term.

Source

The MeSH hierarchy data was obtained from the National Library of Medicine's Medical Subject Headings (MeSH) database (https://www.nlm.nih.gov/mesh/).

Details

The `mesh_hierarchy` data frame is an edgelist network, where each row represents a directed edge from a parent MeSH term (`from_id`) to a child MeSH term (`to_id`). This structure captures the hierarchical relationships between MeSH terms.

Examples

library(labyrinth)

data(mesh_hierarchy, package = "labyrinth")

# Preview the data
head(mesh_hierarchy)
#>    from_id   to_id
#>     <char>  <char>
#> 1: D001829 D059925
#> 2: D001829 D001940
#> 3: D001940 D042361
#> 4: D001940 D009558
#> 5: D001829 D005121
#> 6: D005121 D000672

# Draw the network plots using igraph
# \donttest{
library(igraph)
mesh_network <- graph_from_edgelist(as.matrix(mesh_hierarchy))
plot(mesh_network)

# }