omim-cli v2.1.0
omim-cli v2.1.0
A client for OMIM (Online Mendelian Inheritance in Man) that obtains data
exclusively through official, legal channels — the OMIM REST API and the
official text-file downloads. No HTML scraping, no bundled/redistributed data.
Highlights
- Official data sources.
mim2gene.txt/mimTitles.txt/genemap2.txt/
morbidmap.txtprovide structured data; the API provides text sections,
clinical synopsis (with HPO/SNOMED/ICD ontology IDs), allelic variants,
references, and 30+ external cross-references. - Store everything. All source-provided fields are persisted (status,
external_links, full gene record, dates, contributors, edit history, etc.). - Incremental by design.
- text import is skipped when files are unchanged
--with-apionly enriches entries not yet enriched--refreshprobesdateUpdatedin batches of 20 (include=dates) and
re-fetches only entries OMIM has updated
- Commands:
download,update,query,stats,faq,api
(entry/search/gene-map/clinical-synopsis/allelic-variants/
references/batch/config/status). - Configurable DB path via
OMIM_DBenv var or--dbfile.
Install
pip install -U omim-cli # Python ≥ 3.8
omim-cli api config --set-key YOUR_KEY # free key from https://omim.org/downloads
omim-cli download
omim-cli update # add --with-api for deep content
omim-cli statsData & license
- Code: MIT (see
LICENSE). Copyright © suqingdong (originalomim) and Liozhang (omim-clifork). - OMIM data is copyrighted by Johns Hopkins University and is not
redistributed by this package — each user downloads their own copy. Use of
OMIM data is governed by the OMIM User Agreement.