Wiki
Clone wikiOOMMPPAA / MacOSX
#Setting up OOMMPPAA on MacOSX 10.8.5
You will require a functioning version of XCode 5.+
https://developer.apple.com/xcode/
install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
install pip
sudo easy_install pip
then use pip and homebrew to do the rest
First install matplotlib
brew install freetype brew install libpng brew install ffmpeg # Add more brew formulae so we can install our py libs with brew brew tap samueljohn/python brew tap homebrew/science brew install numpy brew install scipy brew install matplotlib
Then install python modules
sudo pip install nose pyparsing ipython Django==1.5.0 tornado psycopg2 pillow gunicorn django-jfu matplotlib
Now lets make the RDKit
#!bash mkdir ~/RDKit cd ~/RDKit git clone https://github.com/rdkit/rdkit.git cd rdkit
#!bash
git checkout dad1e1db5b0045e11972d931a8701c52ea90bb43
Then go into bashrc file
vim ~/.bashrc
export RDBASE=~/RDKit/rdkit export PYTHONPATH=$RDBASE/lib:$RDBASE:PYTHONPATH export DYLD_LIBRARY_PATH=$RDBASE/lib:$DYLD_LIBRARY_PATH
#!bash source ~/.bashrc cd $RDBASE mkdir build cd build cmake .. make make install
You will also need INCHI support, which is compiled seperately.
#!bash cd $RDBASE/External/INCHI-API bash download-inchi.sh cd $RDBASE/build cmake .. -DRDK_BUILD_INCHI_SUPPORT=ON make make install
Install pkg-config
brew install pkg-config
install openbabel
brew install open-babel
Now lets get the OOMMPPAA code:
#!bash cd ~/ git clone https://abradley@bitbucket.org/abradley/oommppaa.git CHOC
#!bash
wget https://bitbucket.org/abradley/oommppaa/downloads/OOMMPPAA_db.db ~/CHOC/src/WebApp/data/OOMMPPAA_db.db
At this point you can use Tornado as a server. Simply type:
#!python cd ~/CHOC/src/WebApp/ python runtornado.py --port 9001 --address 127.0.0.1
Updated