https://github.com/mfcovington/django-compatible-index-calculator
A Django app for identifying compatible index sequences for high-throughput sequencing experiments
https://github.com/mfcovington/django-compatible-index-calculator
Last synced: 12 months ago
JSON representation
A Django app for identifying compatible index sequences for high-throughput sequencing experiments
- Host: GitHub
- URL: https://github.com/mfcovington/django-compatible-index-calculator
- Owner: mfcovington
- Created: 2016-10-18T05:09:10.000Z (almost 10 years ago)
- Default Branch: develop
- Last Pushed: 2019-05-23T21:34:24.000Z (about 7 years ago)
- Last Synced: 2025-04-08T19:26:41.042Z (over 1 year ago)
- Language: Python
- Homepage: http://mfcovington.pythonanywhere.com/
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
**********
django-compatible-index-sequences
**********
``django-compatible-index-sequences`` is a Django app for identifying compatible index sequences for high-throughput sequencing experiments.
Source code is available on GitHub at `mfcovington/django-compatible-index-sequences `_.
.. contents:: :local:
Installation
============
.. **PyPI**
.. .. code-block:: sh
.. pip install django-compatible-index-sequences
**GitHub (development branch)**
.. code-block:: sh
pip install git+http://github.com/mfcovington/django-compatible-index-sequences.git@develop
Configuration
=============
Add ``compatible_index_sequences`` and its dependencies to ``INSTALLED_APPS`` in ``settings.py``:
.. code-block:: python
INSTALLED_APPS = (
...
'compatible_index_sequences.apps.CompatibleIndexSequencesConfig',
'bootstrap3',
'sekizai',
)
Add the ``compatible_index_sequences`` URLs to the site's ``urls.py``:
.. code-block:: python
from django.conf.urls import url, include
urlpatterns = [
...
url(r'^compatible_index_sequences/', include('compatible_index_sequences.urls', namespace='compatible_index_sequences')),
]
Add ``sekizai`` settings:
- For **Django versions before 1.10**, add ``sekizai.context_processors.sekizai`` to ``TEMPLATE_CONTEXT_PROCESSORS``:
.. code-block:: python
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
TEMPLATE_CONTEXT_PROCESSORS += ('sekizai.context_processors.sekizai',)
- For **Django versions 1.10 and later**, add ``sekizai.context_processors.sekizai`` to ``TEMPLATES``:
.. code-block:: python
TEMPLATES = [
{
# ...
'OPTIONS': {
'context_processors': [
# ...
'sekizai.context_processors.sekizai',
],
},
},
]
Migrations
==========
Create and perform ``compatible_index_sequences`` migrations:
.. code-block:: sh
python manage.py makemigrations compatible_index_sequences
python manage.py migrate
Pre-Populate Database
=====================
Add commercial index sets to the database:
.. code-block:: sh
python manage.py loaddata compatible_index_sequences/fixtures/*.json
Usage
=====
- Start the development server:
.. code-block:: sh
python manage.py runserver
- Visit: ``http://127.0.0.1:8000/compatible_index_sequences/``
*Version 0.0.0*