Tool to query hpo database and some other sources
Project description
[![Build Status](https://travis-ci.org/moonso/phizz.svg)](https://travis-ci.org/moonso/phizz)
# phizz #
Tool to query HPO and OMIM
## Installation ##
```pip install phizz```
or
```
$git clone https://github.com/moonso/phizz.git
$cd phizz
$python setup.py install
```
## Usage ##
Using command line utility:
```
Usage: phizz query [OPTIONS]
Query the hpo database.
Print the result in csv format as default.
Options:
-c, --config PATH
-h, --hpo_term TEXT Specify a hpo term
-m, --mim_term TEXT Specify a omim id
-o, --outfile FILENAME Specify path to outfile
-j, --to_json If output should be in json format
--help Show this message and exit.
```
so trying:
```
$ phizz query -m OMIM:615373
#hpo_id description
HP:0011675 Arrhythmia
HP:0001644 Dilated cardiomyopathy
HP:0001653 Mitral regurgitation
HP:0000006 Autosomal dominant inheritance
HP:0001711 Abnormality of the left ventricle
```
to json:
```
$ phizz query --hpo_term HP:0000002 --to_json
[{"hpo_term": "HP:0000002", "description": "Abnormality of body height"}]
```
Importing in python:
```
In [1]: import phizz
In [2]: phizz.query_disease(['OMIM:615373'])
Out[2]:
[{'description': u'Arrhythmia', 'hpo_term': u'HP:0011675'},
{'description': u'Dilated cardiomyopathy', 'hpo_term': u'HP:0001644'},
{'description': u'Mitral regurgitation', 'hpo_term': u'HP:0001653'},
{'description': u'Autosomal dominant inheritance', 'hpo_term': u'HP:0000006'},
{'description': u'Abnormality of the left ventricle',
'hpo_term': u'HP:0001711'}]
```
# phizz #
Tool to query HPO and OMIM
## Installation ##
```pip install phizz```
or
```
$git clone https://github.com/moonso/phizz.git
$cd phizz
$python setup.py install
```
## Usage ##
Using command line utility:
```
Usage: phizz query [OPTIONS]
Query the hpo database.
Print the result in csv format as default.
Options:
-c, --config PATH
-h, --hpo_term TEXT Specify a hpo term
-m, --mim_term TEXT Specify a omim id
-o, --outfile FILENAME Specify path to outfile
-j, --to_json If output should be in json format
--help Show this message and exit.
```
so trying:
```
$ phizz query -m OMIM:615373
#hpo_id description
HP:0011675 Arrhythmia
HP:0001644 Dilated cardiomyopathy
HP:0001653 Mitral regurgitation
HP:0000006 Autosomal dominant inheritance
HP:0001711 Abnormality of the left ventricle
```
to json:
```
$ phizz query --hpo_term HP:0000002 --to_json
[{"hpo_term": "HP:0000002", "description": "Abnormality of body height"}]
```
Importing in python:
```
In [1]: import phizz
In [2]: phizz.query_disease(['OMIM:615373'])
Out[2]:
[{'description': u'Arrhythmia', 'hpo_term': u'HP:0011675'},
{'description': u'Dilated cardiomyopathy', 'hpo_term': u'HP:0001644'},
{'description': u'Mitral regurgitation', 'hpo_term': u'HP:0001653'},
{'description': u'Autosomal dominant inheritance', 'hpo_term': u'HP:0000006'},
{'description': u'Abnormality of the left ventricle',
'hpo_term': u'HP:0001711'}]
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phizz-0.1.1.tar.gz
(13.3 MB
view hashes)
Built Distribution
phizz-0.1.1-py2.py3-none-any.whl
(13.3 MB
view hashes)
Close
Hashes for phizz-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ab2d31e4f25e6055fbf3522bdb622881e8c972303f347da6cd10490f910562 |
|
MD5 | 3f5a89db525e6a8a8398805d0ba00837 |
|
BLAKE2b-256 | b6013f29483ed16d119819338272ea3dd4440a849ac2a5707214ea44983c3890 |