This project is a framework which can be used to setup a data repository of computational chemistry format log files and deploy a (public) server providing REST API and web interface to browse and view the documents in the repository, search/filter using parsed attributes available, add new files to the database, download a document’s data and instantly parse a log file with cclib just by uploading the file in browser.
docker
and docker-compose
on your machine git clone https://github.com/nitish6174/openchemvault
cp .env.example .env
SETUP_DB
as 1
to seed database with parsed files else set 0
DATA_FOLDER_PATH
is the local path to the directory of log files which will be parsed and inserted in dockerized image's database if SETUP_DB
is 1
PRODUCTION
to 0
runs flaskapp in debug
modesudo docker-compose build
sudo docker-compose up
localhost:5000
Note : Use Python 3. OpenBabel setup is not added in the below steps.
Below instructions are given for ubuntu
sudo apt-get install python3 python3-pip
pip3 install virtualenv
sudo apt-get install mongo
sudo service mongodb start
git clone https://github.com/nitish6174/openchemvault.git
cd openchemvault
virtualenv -p python3 venv_py3
openchemvault
folder:
git clone https://github.com/cclib/cclib.git
source venv_py3/bin/activate
pip3 install -r requirements.txt
cd cclib
python3 setup.py build
python3 setup.py install
cp config.py.example config.py
Change the variable values in config.py
as suitable
Running :
openchemvault
directory (root of repo) and make sure virtualenv is activated.source venv_py3/bin/activate
to enter virtual environment)python run.py <SETUP_DB> <PRODUCTION> <DATA_FOLDER_PATH>
with suitable arguments: SETUP_DB
: Set as 1
to seed database with files in specified folder (Default: 0
)PRODUCTION
: Setting to 0
runs flaskapp in debug
mode (Default: 1
)DATA_FOLDER_PATH
: Path to the directory containing log files which will be parsed and inserted in host's MongoDB database (provided SETUP_DB
is 1
) (Default value taken from config.py
)Note : All the 3 arguments are optional
localhost:5000
Ctrl-C
and deactivate virtualenv using deactivate
commandThis project is a framework having 3 modules :
Details can be found in the TODO list
Here are the features available in web front-end as of now:
The current schema design has 3 collections: