Skip to main content

Django app for syncing and storing human genome reference data

Project description

=============================
Django Genome
=============================

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

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

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

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

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

Django app for syncing and storing human genome reference data

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

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

Quickstart
----------

Install Django Genome::

pip install django-genome

Add it to your `INSTALLED_APPS` (along with DRF and django-filters):

.. code-block:: python

INSTALLED_APPS = (
...
'rest_framework',
'django_filters',
...
'genome',
...
)

Add Django Genome's URL patterns:

.. code-block:: python

from genome import urls as genome_urls


urlpatterns = [
...
url(r'^', include(genome_urls, namespace='genome')),
...
]

Initial sync for genome models::

python manage.py genome_sync

Features
--------

* Includes models for Genome, Chromosome, CytoBand, Gene, Transcript, and Exons
* Syncs data for hg18, hg19, hg38 from HGNC and UCSC

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

Does the code actually work?

::

source <YOURVIRTUALENV>/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




History
-------

0.1.0 (2017-12-30)
++++++++++++++++++

* First release on PyPI.
* Initial models and REST API
* Syncs data from HGNC and UCSC to build database

0.2.0 (2018-01-05)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-genome/compare/v0.1.0...v0.2.0)>`_

* Improved REST API Filters
* made Chromosomes and Gene Symbols save as uppercase to maintain consistency


0.2.1 (2018-01-08)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-genome/compare/v0.2.0...v0.2.1)>`_

* Fixed issues with migrations

0.2.2 (2018-01-12)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-genome/compare/v0.2.1...v0.2.2)>`_

* Fixed route names for SimpleRouter

0.3.0 (2018-02-09)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-genome/compare/v0.2.2...v0.3.0)>`_

* Updated requirements to the latest


0.4.0 (2018-03-30)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-genome/compare/v0.3.0...v0.4.0)>`_

* Added API for chromosomes
* Changed gene_symbol from being unique

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-genome-0.4.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

django_genome-0.4.0-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-genome-0.4.0.tar.gz.

File metadata

File hashes

Hashes for django-genome-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b501bbf50d56b4c3ddbd94c1a8ea2fc160c696436ca000b1165080fe77919d88
MD5 1deb83178231efb1e847194341a43c1c
BLAKE2b-256 966653f07ff59dc9feb2816d5589855a67fd69d9f8e88c15b76f8f7bfbc7e241

See more details on using hashes here.

Provenance

File details

Details for the file django_genome-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_genome-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d975df9282f9c36e7c1e2bb14eb128d9ceb925c323c23ffee49220acdb239c8b
MD5 26caef7f4d678e7793a5c95a961de213
BLAKE2b-256 f10601867a9702bf7a824ec1a2a1cf5c55f51909ef7741b6ce9cfc6df133c8c2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page