- See Pipenv & Virtual Environments guide to create a virtual environment and activate the virtual environment
- Install graphviz
brew install graphviz
- Install requirements with
pip install -r requirements.txt
. - Create PostgreSQL database.
- Create .env file with
cp .env.template .env
and fill environment variables.
Run scrapy crawl drug
to run drug spider and populate database. This will scrape data, create and populate database tables. Final data will be in drugbank
schema. This will:
- Scrape following data:
- DrugBank ID
- SMILES string
- Gene name
- Actions and alternative identifiers of every target.
- Save scraped data into the previously created PostgreSQL database.
- See the virtual environment step above.
- Install requirements with
pip install -r requirements_dev.txt
. - Run
pre-commit install
to install pre-commit hooks. This repo is already set up to use some pre-commit hooks for code quality purposes. Configuration file is available here. More information about pre-commit is available on their website.