An open API service indexing awesome lists of open source software.

https://github.com/chopdgd/django-phenotype-ontologies

Django app for parsing/loading Phenotype ontologies (HPO, MONDO, OncoTree, etc)
https://github.com/chopdgd/django-phenotype-ontologies

bioinformatics django ontologies phenotypes

Last synced: 4 months ago
JSON representation

Django app for parsing/loading Phenotype ontologies (HPO, MONDO, OncoTree, etc)

Awesome Lists containing this project

README

          

=============================
Django Phenotype Ontologies
=============================

.. image:: https://badge.fury.io/py/django-phenotype-ontologies.svg
:target: https://badge.fury.io/py/django-phenotype-ontologies

.. image:: https://travis-ci.org/chopdgd/django-phenotype-ontologies.svg?branch=develop
:target: https://travis-ci.org/chopdgd/django-phenotype-ontologies

.. image:: https://codecov.io/gh/chopdgd/django-phenotype-ontologies/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/chopdgd/django-phenotype-ontologies

.. image:: https://pyup.io/repos/github/chopdgd/django-phenotype-ontologies/shield.svg
:target: https://pyup.io/repos/github/chopdgd/django-phenotype-ontologies/
:alt: Updates

.. image:: https://pyup.io/repos/github/chopdgd/django-phenotype-ontologies/python-3-shield.svg
:target: https://pyup.io/repos/github/chopdgd/django-phenotype-ontologies/
:alt: Python 3

Django app to parse/load phenotype ontologies (OncoTree, HPO, MONDO, etc)

Documentation
-------------

The full documentation is at https://django-phenotype-ontologies.readthedocs.io.

Quickstart
----------

Install Django Phenotype Ontologies::

pip install django-phenotype-ontologies

Add it to your `INSTALLED_APPS`:

.. code-block:: python

INSTALLED_APPS = (
...
'phenotype_ontologies',
...
)

Add Django Phenotype Ontologies's URL patterns:

.. code-block:: python

from phenotype_ontologies import urls as phenotype_ontologies_urls

urlpatterns = [
...
url(r'^', include(phenotype_ontologies_urls, namespace='phenotype_ontologies')),
...
]

Features
--------

* syncs OBO from MONDO, HPO, and NCIT (OncoTree)
* REST API to interact with models
* GraphQL Nodes to be incorporated to existing GraphQL setups with graphene_django

Running Tests
-------------

Does the code actually work?

::

source /bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits
-------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage