Wong and Hogg (2010) Analysis of disulfide bonds in protein structures. J Thromb Haemost 8:2345 (https://doi.org/10.1111/j.1538-7836.2010.03894.x)
This repository contains the SSP (disulfide bond analysis tool) python web application, the webpage and a difficult to find precompile apache module for mod_wsgi.
Requirements:
- Python 2.7
- XAMPP 32 bit
- Create SSP folder (for example to C:\htdocs\SSP).
- Create directories:
- ../Analysis
- ../Errors
- ../upload
- ../../pdb_files
- ../../pdb_files/dsspout
Other directory locations can be used but more paths would have to be modified in the scripts.
Paths in scripts and files that have to be modified include:
- absolute_path_of_dssp_files
- absolute_path_of_pdb_files
- create_dssp.py - line 30, 58
- analysis.py - line 31
- index.wsgi - line 5, 108, 146, 407, 422, 536
- run.py - line 18, 33, 38, 59, 106, 107, 234
Also change new PDB download URL in download_from_rscb2.py: https://files.wwpdb.org/pub/pdb/data/structures/all/pdb/
- Install Python2.7 (32 bit)
- pip2 install pyExcelerator
- Install wget for windows (http://gnuwin32.sourceforge.net/packages/wget.htm). Make sure that it is accessible from the command prompt.
- Install 7zip (https://www.7-zip.org/download.html). Make sure 7z.exe is accessible from the command prompt
- run UpdatePDB2.bat from a command prompt (this will take a while)
- run run_all.bat from a command prompt (this will take a hour or more on the first run). It is possible that it doesn't run to completion because it found some errors in a PDB file. This could be due to a corrupt download in the last step or a real invalid PDB file. For the latter, the file has to be removed from the PDB directory. This can be added to the top of the run_all.bat file, a copy of examples are already there. If you get a message that the task has been completed successfully then it means the SSP tool is setup correctly.
- Install xampp (32 bit). The lastest version with 32 bit should be 7.3.2 (https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.3.2/)
- Install VC9 for python (https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi)
- pip2 install mod_wsgi (open command prompt as Administrator and type "pip install mod-wsgi")
- Copy mod_wsgi-py27-VC9.so from Apache24-win32-VC9 in mod_wsgi-windows-4.4.12.tar.gz (included in the SSP zip package) to apache modules folder (i.e. X:\xampp\modules).
- setup apache httpd.conf to load mod_wsgi and access appropriate directories (see example included in SSP zip package).
- Start up apache. Should be able to access the SSP tool from a browser using https://localhost/SSP
- Unpack disulfideanalysis (for example to C:\htdocs\disulfideanalyis).
- Change URL path to point to SSP web tool in search.html line 56
- Add tasks to run once per month: SSP\updatePDB2.bat, then ~1 hour later SSP\run_all.bat, then ~2 hours later disulfide_analysis\task_schedular