soedinglab/BaMM_webserver

Name: BaMM_webserver

Owner: Söding Lab

Description: Webserver for Motif discovery with higher-order Bayesian Markov Models (BaMMs)

Created: 2017-02-14 10:03:10.0

Updated: 2018-05-15 11:12:39.0

Pushed: 2018-05-15 11:12:36.0

Homepage: https://bammmotif.mpibpc.mpg.de

Size: 68752

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

BaMM web server

License Documentation Status Issues

This repository contains the source code of the BaMM web server. A bioinformatic resource for analysis of nucleotide binding proteins with higher-order Bayesian Markov Models (BaMMs).

News
Setting up the webserver locally
1) Preparing the database directories on the host

All persistent data will be stored on the host. I am using the directory /var/webserver. Make sure to choose a folder in which your BaMM user account has read/write access.

ERVER_DIR=/var/webserver
eate folder structure
r -p $WEBSERVER_DIR/{media_db,logs,motif_db,mysql_db,redis_db}

WEBSERVER_DIR
clone https://github.com/soedinglab/BaMM_webserver.git

BaMM_webserver
submodule update --init --recursive
2) Setting up the motif databases

Download the motif databases from http://wwwuser.gwdg.de/~compbiol/bamm/, extract the databases into the database directory /var/webserver/motif_db.

Here I chose gtrd_mouse_BaMMv102.zip and remap2018_human_BAMMv102.zip. The first level of motif_db now looks like this:

f_db
gtrd_mouse_v1801
remap2018_human
3) Configuring the webserver
WEBSERVER_DIR/BaMM_webserver
env_template .env

Now open .env with your favorite editor and adapt the server configuration to your system.

Please make sure that

If you are done, you can double check the settings by running docker-compose config. You should not see any warnings.

4) Building the webserver

Now you can build the webserver by running docker-compose build from the root of $WEBSERVER_DIR/BaMM_webserver

5) Starting the webserver

After successfully building, the webserver can be started typing docker-compose up. In case you see errors related to mysql migrations try stopping the server by ctrl-C and let is shut down gracefully, then restart by docker-compose up. The error should be gone.

Now you should be able to access the webserver at 0.0.0.0:10080 in your favorite browser.


Notes and caveats
General notes
Developer notes
Setting up the server in production

We strongly advice against running your own publicly accessible webserver without familiarizing yourself the django documentation. Failure in doing so can lead to an insecure server.

License

The BaMMserver code can be used, distributed and modified under the GNU Affero General Public License v3.0 (GNU AGPLv3)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.