Live at https://shchem.herokuapp.com
-
If you want to run postgres locally: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04
-
Change the
DATABASE_URL
in.env
to match the credentials of the running instanceDATABASE_URL='postgres://gtiwrmbyatjafb:fc03424b351880356b5d0c611baee9c5f0c234e20d1920799753739aa356dce5@ec2-75-101-142-182.compute-1.amazonaws.com:5432/d3gsce3nipr26i'
./node_modules/.bin/sequelize db:migrate
For partially seeding the data locally, you can run:
npm run seed-compounds
In production, you'll want to use the job queue to seed the entire database. Change .env to the production settings, then run:
npm run seed-compounds-job
Open localhost:3000/job-queue
to view the progress.
To run a partial seed, add a limit argument to process a fixed number of files. This is helpful for testing:
npm run seed-compounds-job 10
To update the list of component files, run:
cd seed
./generate_compound_files.sh
This pulls a list of files from ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound/CURRENT-Full/ASN/
You need the following environment variables:
DATABASE_URL
: path to your postgres databaseBABEL_PATH
: path to thebabel
binary of Open BabelIDOCK_PATH
: path to theidock
binary of idock
- Pubchem schema: ftp://ftp.ncbi.nih.gov/pubchem/specifications/pubchem.xsd
- Example JSON record: https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/1650002/record/JSON/
To test everything:
npm test
To only test the client:
npm run test-client
To only test the server:
npm run test-server
Run server tests on file change:
npm run test-server -- -w
To run the worker:
- Setup a redis instance, then:
npm run worker
- Molecular Docking
- Search/scoring algorithms
- https://www.researchgate.net/profile/Raquel_Dias2/publication/23763093_Molecular_Docking_Algorithms/links/02e7e524de3bfd2b11000000.pdf (Table 1. Docking Algorithms)
- bsp-slim
- autodock vina
- mcdock
- Online Services
- istar
- swissdock
- blaster
- patchdock
- Distributed docking simulations
- Docking@Home
- site: http://docking.cis.udel.edu
- papers
- source
- AutoDockCloud
- wfredow
- Docking@Home
- Search/scoring algorithms