Skip to content


Repository files navigation

Instructions for fresh install of Django Based BioDIG Database.


Django - Web framework used for website --

PostgreSQL - database system used for website -- aptitude install postgresql-8.4
			- for Django make sure that in pg_hba.conf that 

MySQL - database system used with a GO database clone

Apache - Web Server for Django -- aptitude install apache2

mod-wsgi - mod for Apache for Django -- aptitude install libapache2-mod-wsgi

GBrowse - genome browser used -- (WATCH FOR PREREQUISITES)

Chado - database schema used for organism database 
        (You may only need the prerequisites with the dump)

SQLite - database used to back GBrowse 
	-- CPAN DBD::SQLite for adaptor
	-- aptitude install sqlite3
Django files - the package (files) in order to create the website

BioPerl -

Pip - aptitude install python-pip

Sorl-thumbnail - pip install sorl-thumbnail

BioPython - aptitude install python-biopython

GFFParser - go to this page:
	and make sure that the link below is still valid
	-- go to:
	-- download the source here as a zip file
	-- unzip this file and in the gff directory run:
		sudo python install


  1. Clone git repository into /var/www/

  2. Change the owner of this folder (recursively) to :

  3. Change the owner of /etc/gbrowse2 (recursively) to :

  4. Replace the GBrowse.conf in /etc/gbrowse2 with the GBrowse.conf in the configuration folder Also, move the taxonTemplate.conf file into the /etc/gbrowse2 folder

  5. Add Alias to apache2.conf (or httpd.conf) file -typically located in /etc/apache2/ -command: WSGIScriptAlias / /var/www/BioDIG/apache/django.wsgi

  6. Create a user for the psql databases with username/passwords given in and grant all privileges to this user on the databases

  7. Create the same user in MySQL. Clone the GO database at get the database dump for MySQL that is updated daily

  8. Once all databases created, in /var/www/BioDIG/ run: python syncdb

  9. Alter the table "organism" in the chado database using the statement: ALTER TABLE organism DROP CONSTRAINT "organism_c1". Otherwise, the database will not allow the same species in value in the species column, which we need.

  10. Make sure there is a value in chado in the db table: there should be an entry with db_id=41, name=_global. Also make sure that there is a /var/www/BioDIG/taxon_home/genomeFiles/current folder and a /var/www/BioDIG/taxon_home/genomeFiles/new folder. a. In order to use our automatic updating you will have to edit the directories to search and the regex to search with in th script b. Then run databaseUpdater/GenomeDB/

*11. Test to see what is working: If GBrowse is not working check your machine's URL for GBrowse then go into /var/www/BioDIG/taxon_home/templates/public/gbrowse.html and replace the iframe src with that URL

  1. Add the cron job for pruning to crontab to run every Saturday at 3:00am (should already be configured in the cron tab sh for pruning)


Biological Database of Image and Genomes






No releases published


No packages published