Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.2%) to scientific vocabulary
Keywords
Repository
omim database
Basic Info
- Host: GitHub
- Owner: suqingdong
- Language: Python
- Default Branch: master
- Homepage: https://suqingdong.github.io/omim/
- Size: 3.35 MB
Statistics
- Stars: 27
- Watchers: 1
- Forks: 10
- Open Issues: 5
- Releases: 2
Topics
Metadata Files
README.md
OMIM - Online Mendelian Inheritance in Man
Installation
bash
python3 -m pip install -U omim
Basic Usage
main
omim -h
```
Usage: omim [OPTIONS] COMMAND [ARGS]...
OMIM - Online Mendelian Inheritance in Man
Options: -d, --dbfile TEXT the path of database file [default:/usr/local/lib/python3.8/site-packages/omim/data/omim.sqlite3] -u, --url TEXT the url of omim [default: https://mirror.omim.org] --version Show the version and exit. -?, -h, --help Show this message and exit.
Commands: faq explains of some faq query query something from the database stats statistics of the database update update the database ```
1. stats
OMIM Entry Statistics
omim stats
***** updated time: 2024-06-04 *****
+--------------------------+-------+
| MIM_TYPE | COUNT |
+--------------------------+-------+
| gene | 17290 |
| gene/phenotype | 18 |
| phenotype | 8362 |
| predominantly phenotypes | 1736 |
| moved/removed | 1364 |
| TOTAL COUNT | 28770 |
+--------------------------+-------+
2. update
update the database according to the file mim2gene.txt
omim update
3. faq
explains of some FAQ
omim faq
***** Explains of MIM PREFIX *****
+--------+---------------------------------------------------------+
| PREFIX | EXPLAIN |
+--------+---------------------------------------------------------+
| * | Gene description |
| + | Gene and phenotype, combined |
| # | Phenotype description, molecular basis known |
| % | Phenotype description or locus, molecular basis unknown |
| | Other, mainly phenotypes with suspected mendelian basis |
| ^ | Moved/Removed |
+--------+---------------------------------------------------------+
***** Explains of PHENOTYPE SYMBOL *****
+--------+------------------------------------------------------------------------------------------------------------------------------+
| SYMBOL | EXPLAIN |
+--------+------------------------------------------------------------------------------------------------------------------------------+
| [ ] | indicate "nondiseases," mainly genetic variations that lead to apparently abnormal laboratory test values |
| { } | indicate mutations that contribute to susceptibility to multifactorial disorders |
| | (e.g., diabetes, asthma) or to susceptibility to infection |
| ? | before the phenotype name indicates that the relationship between the phenotype and gene is provisional. |
| | More details about this relationship are provided in the comment field of the map and in the gene and phenotype OMIM entries |
| (1) | the disorder was positioned by mapping of the wildtype gene |
| (2) | the disease phenotype itself was mapped |
| (3) | the molecular basis of the disorder is known |
| (4) | the disorder is a chromosome deletion or duplication syndrome |
+--------+------------------------------------------------------------------------------------------------------------------------------+
4. query
omim query -h
```
Usage: omim query [OPTIONS]
query something from database
Options: -K, --keys list the available keys -s, --search TEXT... the search string -l, --limit INTEGER limit for output -F, --format [json|tsv] the format for output -o, --outfile TEXT the output filename [stdout] -C, --color colorful print for json -f, --fuzzy fuzzy search --count count the number of results -h, -?, --help Show this message and exit. ```
- show all available keys
omim query -K
+------------------+-----------------------+--------------+
| Key | Comment | Type |
+------------------+-----------------------+--------------+
| mim_number | MIM Number | VARCHAR(10) |
| prefix | The prefix symbol | VARCHAR(1) |
| title | The title | VARCHAR(50) |
| references | The references | VARCHAR(300) |
| geneMap | The geneMap data | VARCHAR(300) |
| phenotypeMap | The phenotypeMap data | VARCHAR(300) |
| mim_type | The mim_type | VARCHAR(20) |
| entrez_gene_id | The entrez_gene_id | VARCHAR(20) |
| ensembl_gene_id | The ensembl_gene_id | VARCHAR(20) |
| hgnc_gene_symbol | The hgnc_gene_symbol | VARCHAR(20) |
| generated | The generated time | DATETIME |
+------------------+-----------------------+--------------+
- search with a key
omim query -s hgnc_gene_symbol BMPR2
- search with a key and output as json
omim query -s hgnc_gene_symbol BMPR2 -F json -C
- fuzzy search
omim query -s geneMap '%Pulmonary hypertension%' --fuzzy -F json -C
Use omim in Python
```python import omim from omim import util from omim.db import Manager, OMIM_DATA
manager = Manager(dbfile=omim.DEFAULT_DB)
show columns
print(util.getcolumnstable())
show stats
generated, table = util.getstatstable(manager) print(generated) print(table)
count the database
manager.query(OMIM_DATA).count()
query with key-value
res = manager.query(OMIMDATA, 'prefix', '*') res = manager.query(OMIMDATA, 'mimnumber', '600799') res = manager.query(OMIMDATA, 'hgncgenesymbol', 'BMPR2') res = manager.query(OMIM_DATA, 'geneMap', '%Pulmonary hypertension%', fuzzy=True) # fuzzy query
fetch query result
item = res.first() items = res.all()
content of result
print(item.mimnumber, item.title) print(item.asdict) ```
This project is designed to support academic research, education, and personal interest. It is not intended for commercial use.
Owner
- Name: Qingdong Su
- Login: suqingdong
- Kind: user
- Location: Tianjin, China
- Company: Novogene
- Website: suqingdong.github.io
- Repositories: 31
- Profile: https://github.com/suqingdong
Love Python, Love Programming, Love Life.
GitHub Events
Total
- Issues event: 1
- Watch event: 3
- Fork event: 1
Last Year
- Issues event: 1
- Watch event: 3
- Fork event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| suqingdong | s****4@g****m | 14 |
| Bruce Schultz | b****z@s****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 3
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: about 1 month
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 0.33
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- henryone0910 (1)
- chenhy-lab (1)
- zengsihang (1)
- asaki1986 (1)
- SelezioneCasuale (1)
Pull Request Authors
- brucetony (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 124 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 5
- Total maintainers: 1
pypi.org: omim
OMIM - Online Mendelian Inheritance in Man
- Homepage: https://github.com/suqingdong/omim
- Documentation: https://omim.readthedocs.io
- License: BSD License
-
Latest release: 1.0.4
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- click *
- prettytable *
- pygments *
- python-dateutil *
- requests *
- simple-loggers *
- sqlalchemy *
- webrequests *