This is a java web application that will allow you to search for structural patterns within a modified version of the PDB protein structure database.
To run the application you will need to run a MySQL Server and a J2EE application server, such as Tomcat.
http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.23/README.html
- dbname: proteinlab
- user: proteinlab
- pass: proteinlab
mysql -uadmin -p$PASS -e "CREATE USER 'proteinlab'@'localhost' IDENTIFIED BY 'proteinlab';"
mysql -uadmin -p$PASS -e "CREATE DATABASE proteinlab"
mysql -uadmin -p$PASS -e "GRANT ALL PRIVILEGES ON proteinlab.* TO 'proteinlab'@'localhost';"
The DB dump file contains SQL statements to recreate all required tables into the DB.
You first need to decompress it
tar .xvzf proteinlab.sql.tar.gz
mysql -uadmin -p$PASS proteinlab < proteinlab.sql
Note: For security reasons if your MySQL sevrer has exposed ports we recommend you change these DB credentials and recompile the WAR file.
You can change the DB credentials in this file and then recomplile the WAR. DB Config File
We also provide a docker script for building and running the entire application in a container
I recommend getting the latest version and compiling using Java 8, even though the code base was originally meant for Java 7.
Install Eclipse Oxygen for Java EE Applications
You will need to download the following libraries (also included in the lib folder) and add them to your project
- BioJava Structure
- Mysql Connector Jar
Create a new project pointing at the 3DProteinLab directory.
Modify whichever files your need to.
Compile and Export as a War file.