Skip to content

JackScanlon/mesh-hierarchy

Repository files navigation

MeSH terms

Bare bones MeSH hierarchy from XML -> JSON per the MeSH documentation.

1. Usage

1.1. Prerequisites

  1. Download the MeSH terms here

  2. Install either:

    a. Bazelisk installed;

    b. OR, for those wanting to put in less effort, VSCode with both Docker and devcontainer installed.

1.2. Getting Started

  1. git clone this repository.

  2. If you selected (b) in 1.1. Prerequisites:

    i. Open both VSCode & Docker

    ii. Open the project in the devcontainer per the instructions found here

  3. You can now either build the project as an executable or run it from Bazel using the following commands:

    [!NOTE]

    • the -i arg selects the input file path - this should be the .xml file you downloaded earlier;
    • the -o arg selects the outfile file path.

    i. First, build the compile commands (debug mode; use opt for optimised build):

    bazel run :refresh_compile_commands -- -c dbg

    ii. Now, to run the executable (debug mode; use opt for optimised build):

    bazel run //src:meshcodes -c dbg -- -i ./data/codes.xml -o ./data/outfile.json

About

Minimal MeSH hierarchy as JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published