Implementation of Nussinov's Algorithm for CS466
This program is designed to run using python 3.7+.
It is recommended you use a virtual environment when installing packages.
- Clone the repository and cd into the directory
- Create a virtual environment and activate it
- Install the requirements
pip install -r requirements.txt
- Create a .env file
touch .env
and addSECRET_KEY="<secret_key>"
, where secret key is a 32 character string. - Run
python flask_app.py
- Navigate to
localhost:5000
.
- Run
docker build
- Run
docker run -d -it --name nuss --rm -p 5000:5000 nussinov
- Navigate to
localhost:5000
pip install numpy
python nussinov/nussinov.py
Include either the-s
option and a sequence string or-f
and a filepath to your sequence.
- If you are on a mac, install argp:
brew install argp-standalone
- Compile:
gcc -largp c_implimentaiton/nussinov.c -o nussinov.o
- Run:
./nussinov.o -s <sequence>