A simple Django app to conduct web-based homology search with blast+.
- Blast+
- Python 2.7
- Django 1.7-1.8
pip install django
- Biopython
pip install biopython
Get the latest version of django-blastplus from https://pypi.python.org/pypi/django-blastplus/
Install with pip
pip install django-blastplus
To get the git version do
$ git clone https://github.com/michal-stuglik/django-blastplus.git
Add "blastplus" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( 'blastplus', )
Include the polls URLconf in your project urls.py like this:
url(r'^blast/', include('blastplus.urls')),
- You can modify some defaults in blastplus.settings
e.g. modify path to nucleotide database (now as a tuple of dbs):
BLAST_DB_NUCL_CHOICE = ((os.path.join(BASE_DIR, 'blastplus/sampledata/sample_db1/sample_db'), "Sample database 1", ), (os.path.join(BASE_DIR, 'blastplus/sampledata/sample_db2/sample_db2'), "Sample database 2", ),)
e.g. modify path to protein databases:
BLAST_DB_PROT_CHOICE = ((os.path.join(BASE_DIR, 'blastplus/sampledata/sample_db3_prot/sample_db3_prot'), "Sample database 3 - proteins", ), (os.path.join(BASE_DIR, 'blastplus/sampledata/sample_db4_prot/sample_db4_prot'), "Sample database 4 - proteins", ),)
- Visit search pages:
- Blastn http://127.0.0.1:8000/blast/blastn
- TBlastn http://127.0.0.1:8000/blast/tblastn
- Blastp http://127.0.0.1:8000/blast/blastp
- Blastx http://127.0.0.1:8000/blast/blastx
See our NewtBase portal with django-blastplus app inside