{ "info": { "author": "Phil Spence", "author_email": "philspence91@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3" ], "description": "# GenDock\n\nGenDock is a Python script that can either randomly generate molecules or use a preexisting library of molecules to screen against a macromolecule (or multiple macromolecules) using AutoDock Vina, to aid in finding new ligands for receptor binding. Machine learning alogrithms are also being designed to aid in the identification process.\n\nGenDock is ***not*** designed to give highly detailed computational analysis for the ligand-receptor binding, but ***is*** designed for high throughput screening, the results of which can then be taken on for further analysis. \n\n## Setup\n\nGenDock is only supported on macOS and Linux. Windows users can install Ubuntu using WSL and use GenDock from there.\n\nI recommend using [Anaconda](https://www.anaconda.com/download) to setup your python environment. GenDock depends upon the installation of *autodock-vina*, *rdkit*, *openbabel*, and *scikit-learn* - all of which can be handled by Anaconda and should installed to a single environment.\n\n## Preparing Receptors\n\nSave your macromolecules/receptors in the *receptor* directory as **[name].pdbqt** and the Autodock Vina configuration files must then be named **[name]-config.txt**. These should be edited with your vina properties, grid size and location etc. I recommend using AutoDock Tools to find out the suitable grid size and location for your receptor, as well as saving to a *.pdbqt* file format. There is already a default config file named **receptor1-config.txt** and the parameters are set as:\n```\nreceptor = receptor/receptor.pdbqt\n\ncenter_x = 0\ncenter_y = 0\ncenter_z = 0\n\nsize_x = 30\nsize_y = 30\nsize_z = 30\n\nnum_modes = 10\n```\n## Running GenDock\n\nEnsure you run gendock from your working directory i.e. one that contains receptors in a directory named **receptors**. The following commands should be followed to run GenDock:\n\n```\nimport gendock as gd\ngd.generate(name, target_mass, nligands=X, mol=rdkit.Chem.rdchem.Mol)\ngd.dock(name, ligand_num=Y, receptors=['receptor1', 'receptor2', 'receptor3'])\n```\nwhere:\n\n**name** is the name of the experiment, all files will be saved the **data** directory. GenDock will create a directory with the name of the experiment that is given by this argument (if one does not already exist).\n\n**target_mass** is the appproximate mass of the molecules that you want to generate.\n\n***optional***, **nligands** is the number of molecules you want to generate, if an argument is given, all possible molecules will be generated (this can range into the tens of millions of molecules - *be warned*). If a number is given, then that amount of molecules will be randomly chosen from the possible molecules that could be generated.\n\n***optional***, **mol** is an RDKit mol object that contains wildcard atoms i.e '`[*]`' atoms. For example one could generate an RDKit mol by the following:\n```\nfrom rdkit import Chem\nimport gendock as gd\nm = Chem.MolFromSmiles('[*]c1cccc[*]c1')\ngd.generate('test', 150, mol=m)\n```\n\n***optional***, **receptors** are the names of the receptor files, i.e. 1ELN (do not include the '.pdbqt' in this). This must be a list, even if you are only using one receptor.\n\n***optional***, **ligand_num** is the ligand that you want to start with. This is useful if you have generated 1000 ligands and then got cut off after docking 500 of them. Set this to 501 and it will carry on from where it left off.\n\n## Results\n\nGenDock will save a CSV file in the **data/exp_name/** directory that will contain the SMILES string of the ligand as well as other chemical properies, and the best binding energy for each receptor. GenDock stores the results of the AutoDock Vina screening in the **vina_files** directory. Inside each directory is both the PDBQT files and the LOG file. These are named as **ligand_X-r.pdbqt or .txt** where X is the ligand number and r is the receptor name.\n\n## Functional Groups\nFunctional groups can be found in **scripts/functional_groups.py** as a list of SMILES strings. They are imported as **s_list**, **nt_list** and **t_list** and can be edited just like any another python list before running gendock.\n\n```\nimport gendock as gd\ngd.s_list.append('CCC[*]')\ngd.s_list.remove('CCC[*]')\n```\n\n## References\n\nAutoDock Vina: *J Comput Chem.* **2010** Jan 30;31(2):455-61. [doi:10.1002/jcc.21334](https://doi.org/10.1002/jcc.21334)\n\nOpenBabel: *J. Cheminf.* **2011**, 3, 33. [doi:10.1186/1758-2946-3-33](https://doi.org/10.1186/1758-2946-3-33)\n\nRDKit: Cheminformatics and Machine Learning Software. [RDKit.org](https://www.rdkit.org)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/philspence/gendock", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "gendock", "package_url": "https://pypi.org/project/gendock/", "platform": "", "project_url": "https://pypi.org/project/gendock/", "project_urls": { "Homepage": "https://github.com/philspence/gendock" }, "release_url": "https://pypi.org/project/gendock/1.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Python package for generating and docking molecules against macromolecules", "version": "1.0" }, "last_serial": 5968374, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "0e0e13650fecef791d31185a334702bf", "sha256": "5325c4d467d7508f18ca3e91fbd7dd3bbb69f0475a9eb00de4a1637dc0e8d706" }, "downloads": -1, "filename": "gendock-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0e0e13650fecef791d31185a334702bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 22521, "upload_time": "2019-10-13T18:51:13", "url": "https://files.pythonhosted.org/packages/41/e9/b09d43eb5cbb55b361f84a3bb725d4eff458945b1e90dc14874f179a1fd0/gendock-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80950996675693468f9f03e85e411ae7", "sha256": "fd2a12bcb9c79b46c81d81849179073f6f5a97f2cb6f124479ef851edbda11d9" }, "downloads": -1, "filename": "gendock-1.0.tar.gz", "has_sig": false, "md5_digest": "80950996675693468f9f03e85e411ae7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9023, "upload_time": "2019-10-13T18:53:12", "url": "https://files.pythonhosted.org/packages/4c/f9/df8cacc109eea8a5f8e489f9d41d5818969295cf3909bcfda69e6dd113a4/gendock-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e0e13650fecef791d31185a334702bf", "sha256": "5325c4d467d7508f18ca3e91fbd7dd3bbb69f0475a9eb00de4a1637dc0e8d706" }, "downloads": -1, "filename": "gendock-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0e0e13650fecef791d31185a334702bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 22521, "upload_time": "2019-10-13T18:51:13", "url": "https://files.pythonhosted.org/packages/41/e9/b09d43eb5cbb55b361f84a3bb725d4eff458945b1e90dc14874f179a1fd0/gendock-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80950996675693468f9f03e85e411ae7", "sha256": "fd2a12bcb9c79b46c81d81849179073f6f5a97f2cb6f124479ef851edbda11d9" }, "downloads": -1, "filename": "gendock-1.0.tar.gz", "has_sig": false, "md5_digest": "80950996675693468f9f03e85e411ae7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9023, "upload_time": "2019-10-13T18:53:12", "url": "https://files.pythonhosted.org/packages/4c/f9/df8cacc109eea8a5f8e489f9d41d5818969295cf3909bcfda69e6dd113a4/gendock-1.0.tar.gz" } ] }