Tark (Transcript Archive)
An archive of all transcripts and its sequences from Ensembl, RefSeq and other sources. Provides RESTful data access through endpoints and also provides tools to visualize the data and compare the transcripts.
- pyenv and pyenv-virtualenv or virtualenvwrapper
- Python 3.6+
- MySQL 5.6+
Clone the project from git
git clone https://github.com/Ensembl/tark.git
Create the Python environment
mkvirtualenv tarkenv
workon tarkenv
cd tark
pip install -r requirements.txt
Provide the right credentials to connect to the tark database in secrets.py (created from secrets_template.py)
cd tark/tark/tark/settings
cp secrets_template.py secrets.py
Provide the right credentials to connect to the django manager database in base.py Note: All the django's management table while running the migration step will be created in tark_django_manager
cd tark/tark/tark/settings
Look in the following section of base.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'tark_django_manager',
'USER': 'xxxx',
'PASSWORD': 'xxxx',
'HOST': 'localhost',
'PORT': '3306',
Update the log file location in the base.py (point this to somewhere writable location)
LOG_FILE = os.path.join(BASE_DIR, '../../logs/tark.log')
Run the migrate step with --fake-initial (No need to run the migrations as the database is already there and it is not managed by Django)
./manage.py migrate --fake-initial
Start the development server cd tark/tark
./manage.py runserver 0:9000
Check in the browsesr
http://localhost:9000/