Coder Social home page Coder Social logo

athan-dial / metathesaurus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meerapatelmd/metathesaurus

0.0 0.0 0.0 3.13 MB

Setup a local Postgres UMLS Metathesaurus.

Home Page: https://meerapatelmd.github.io/metathesaurus

R 98.74% PLpgSQL 1.26%

metathesaurus's Introduction

metathesaurus

Designed by macrovector / Freepik

This package sets up an instance of the UMLS Metathesaurus in either the native MySQL5.5 or Postgres DBMS sourced from the RRF files downloaded and from https://www.nlm.nih.gov/research/umls/licensedcontent/umlsknowledgesources.html. The list of instantiated tables can be customized depending on user needs. These options include

  1. All MTH Tables
  2. MRCONSO Table only
  3. OMOP Only (MRCONSO, MRHIER, MRMAP, MRSMAP, MRSAT, AND MRREL)
  4. English Only (Non-English Language Tables are excluded)

All SQL scripts used in this package can be accessed at inst/sql to run directly in the client instead. If you'd like to run Metamorphosys to set configurations prior to installation, jump to Metamorphosys

Dependencies

This package requires a connection by RMySQL::dbConnect or DatabaseConnector::dbConnect for MySQL and Postgres, respectively.

Related R Packages

Installation

devtools::install_github("meerapatelmd/setupMetathesaurus")

Prerequisites

MySQL5.5

  • MySQL version 5.5 server can be installed via MacPorts (Prerequisites are most current XCode and XCode Command Line tools). More information at https://trac.macports.org/wiki/howto/MySQL

  • /opt/local/etc/mysql55/my.cnf is a good place to customize your mysql55 installation

  • Socket: /opt/local/var/run/mysql55/mysqld.sock

  • Example of creating a database named umls using root as user:

       ```
       -mysql -u root -p  
       -mysql> CREATE DATABASE umls;  
       -mysql -u root -p --local-infile umls  
       -mysql> SHOW PROCESSLIST
       ```  
    

Downloading UMLS Files

Notes

MetamorphoSys

MetamorphoSys is the UMLS installation and customization java application for local installation of all of the UMLS Knowledge Sources (MTH, Semantic Network, and SPECIALIST Lexicon). Metamorphosys also supports the creation of custom subsets of the Metathesaurus to meet specific use cases.

A Full Release download at https://www.nlm.nih.gov/research/umls/licensedcontent/umlsknowledgesources.html is required to run Metamorphosys, at which point the user can select various specialized configurations desired in the MySQL or Postgres Tables, such as a specific set of source vocabularies. The total time estimations of downloading, configuring, and processing the Metathesaurus tables in this way is approximately 2-3 hours. To save time, the Metamorphosys step may be skipped if the user does not desire this type of customizability and the UMLS Metathesaurus Files can be downloaded directly at the link and used as the source files in lieu of the Full Release.

Setup and Run Metamorphosys

  • Unpack the Full Release download
  • Unzip mmys.zip in the unpacked download and move unzipped contents into a root folder
  • Run openMetamorphysis() with path to run_mac.sh as the argument
  • If not yet installed, install UMLS Metamorphosys (current configurations are all English vocabularies available). Time estimations for installation are approximately 45 minutes-1 hour, but this depends on the configurations.
  • Run the remainder of setup using the path to the META/ output

Code of Conduct

Please note that the setupMetathesaurus project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

metathesaurus's People

Contributors

mpatel-cai avatar meerapatelmd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.