OMIM stands for "Online Mendelian Inheritance in Man", and is an online catalog of human genes and genetic disorders. The official site is: https://omim.org/
This purpose of this repository is for data transformations for ingest into Mondo. Mainly,
it is for generating an omim.ttl
and other release artefacts.
Disclaimer: This repository and its created data artefacts are unnofficial. For official, up-to-date OMIM data, please visit omim.org.
.env
cp .env.example .env
API_KEY
to your own. If you don't have one, you can request
one at https://omim.org/downloads. This will probably be sufficient for the purposes
of downloading the necessary text files, but if not, you can also require access to
the REST API as well: https://omim.org/api.make install
psutil
on some systems. If
you get an error related to this when installing, ignore it, as it is does not
seem to be needed to run any of the tools. If however you do get a psutil
error
when running anything, please let us know by creating an issue.Run: sh run.sh make all
Running this will create new release artefacts in the root directory.
You can also run make build
or python -m omim2obo
. These are all the same
command. This will download files from omim.org and run the build.
Offline/cache option: python -m omim2obo --use-cache
If there's an issue downloading the files, or you are offline, or you just want
to use the cache anyway, you can pass the --use-cache
flag.
### Get PMIDs used for OMIM codes from `omim.ttl`
Command: `sh run.sh make get-pmids`
### OMIM Code Web Scraper
Currently, the only feature is `get_codes_by_yyyy_mm`, which returns a list of
OMIM codes and their prefixes from https://omim.org/statistics/update.
#### Usage: Command Line Interface
##### Syntax
1. `make scrape y=