covdrugsim


Namecovdrugsim JSON
Version 1.0.6 PyPI version JSON
download
home_pagehttps://github.com/Jon-Ting/covdrugsim
SummaryPackage to automate quantum mechanical calculations and molecular dynamics simulations of covalent drugs.
upload_time2024-04-12 05:26:46
maintainerNone
docs_urlNone
authorJonathan Yik Chang Ting
requires_python>=3.9
licenseMIT
keywords covalent drug quantum mechanic molecular dynamics simulation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CovDrugSim

[![ci-cd](https://github.com/Jon-Ting/covdrugsim/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/Jon-Ting/covdrugsim/actions/workflows/ci-cd.yml)

## Description

`CovDrugSim` is a package that provides functionalities to automate quantum mechanical calculations and molecular dynamics simulations of covalent drugs.

## Features

### Aims
* Automatic creation of high-performance computing cluster submission files to run Gaussian calculations.
* Automatic analysis of molecular dynamics simulation trajectories.

### Under Development
* Complete example.ipynb.

## Installation

Use `pip` or `conda` to install `CovDrugSim`:

```bash
$ pip install covdrugsim
```
```bash
$ conda install -c conda-forge covdrugsim
```

## Usage

`covdrugsim` can be used to conduct quantum mechanical calculations and molecular dynamics simulations as follows:

```python
from covdrugsim.qmCalc.genScript import genAllScripts

targetDirPath = '/mnt/c/Users/JonTing/exampleXYZs'  # Absolute path to the directories containing all of your xyz files to be run
genAllScripts(targetDirPath, verbose=True)
```
Check out the [notebook tutorial](https://github.com/Jon-Ting/covdrugsim/blob/main/docs/example.ipynb) for further explanations and demonstrations!

Descriptions of source codes:
### Quantum Mechanical Calculations (qmcalc)

#### unitConv
unitConv.py - Interconverts between kinetics and thermodynamic quantities (dGbarr, k, t_half, RT).

#### runGaussian
* settings.py - Contains variables for different type of Gaussian jobs that are used by prepGaussian.py.
* admin.py - Group files with the same names (before extension, e.g. abc.inp is the same as abc.xyz) into individual directories.
* prepGaussian.py - Batch generation of Gaussian input files and job submission files on HPCs with PBS Scheduler.
* tabulate.py - Batch tabulation of interested values from Gaussian (version 16) output files into an Excel file.
* gsub.sh - Batch submission of Gaussian QM calculation jobs on HPCs.

Typical workflow for a mechanism-based project where flexible molecules are involved would be:
1) Conduct conformational searches on the species along the reaction coordinate (using MacroModel).
2) Export all conformers within 3 kcal/mol of the lowest energy structure to a directory in .xyz format. The naming convention is very important, be consistent, but make sure each conformer has a different name (I do this by adding numbers at the end of their names, signifying their ranks from the conformational searches).
3) Change your input directory in admin.py to where you store the coordinate files and run it. This will group all of the conformers into individual directories.
4) Change your input directory in prepGaussian.py to the same location and run it. This will generate the Gaussian input files and job submission files in the corresponding directory. Make sure you check at least a few of the files generated to see that you got the charges, spacing at the end of file, solvents, resources requested, etc right. I named all of the Gaussian job submission jobs with \*.sh, feel free to change it according to your preference (Line 52 in prepGaussian.py).
5) Copy the directories across to the HPCs (Raijin/Gadi/Tinaroo/Awoonga, NOTE: The details for job submissions on Raijin and RCC HPCs are different, specify the cluster before running prepGaussian.py in Step 4).
6) Change directory to the directory that contains all the conformers subdirectories and run 'gsub.sh' (Make sure it's an executable, if you can't run it, use chmod to change it). This will submit all of the Gaussian submission jobs to the HPC. Note that prior to this you need to adjust Line 6 in the gsub.sh file to the naming convention you give to your Gaussian submit files if you have changed them in the prepGaussian.py.
7) After the jobs are done, copy them over to your local machine.
8) Change your input directory in tabulate.py to the directory that contains all the conformers and run it. Note that you need to have the Python package pandas installed for it to work.

#### visAnalysis
energyLeveller.py - Draws energy profile diagrams.
plotConfig.py - Stores configuration for figure-plotting functions.
plotFigs.py - Plots figures for QM data analysis.


### Molecular Dynamics Simulations (mdsim)
* config.py contains some variables that are used repetitively for almost all files.
* baseID.py plots the distances between potential base species and the targeted protons.
* bbRMSD.py plots the RMSD of Bruton's Tyrosine Kinease (BTK) backbones over time, for the purpose of checking the stability of the simulations.
* hbondAnalysis.py plots the distribution of the number of hydrogen bonds between BTK backbones over time.
* ligDihedral.py plots the distribution of the critical C=C-C=O dihedral angle near BTK active site over time.
* SCbondDist.py plots the distances between the reacting S and C atoms over time.
* sumCharge.py sums up the charges to aid in the parameterisation of non-standard amino acids.
* prepMTB.py was written during an attempt to map the unbound ligand to covalently bound ligand. Was not utilised in the end.

## Documentation

Detailed documentation and usage examples are hosted by [Read the Docs](https://covdrugsim.readthedocs.io/en/latest/).

## Contributing

`CovDrugSim` appreciates your enthusiasm and welcomes your expertise! 

Please check out the [contributing guidelines](https://github.com/Jon-Ting/covdrugsim/blob/main/CONTRIBUTING.md) and 
[code of conduct](https://github.com/Jon-Ting/covdrugsim/blob/main/CONDUCT.md). 
By contributing to this project, you agree to abide by its terms.

## License

The project is distributed under an [MIT License](https://github.com/Jon-Ting/covdrugsim/blob/main/LICENSE).

## Credits

The package was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) using the 
The codes were written by [Jonathan Yik Chang Ting](https://github.com/Jon-Ting) for [University of Queensland Bachelors of Advanced Science (Honours)](https://study.uq.edu.au/study-options/programs/bachelor-advanced-science-honours-2516) [CHEM6511](https://my.uq.edu.au/programs-courses/course.html?course_code=CHEM6511) under the title "[Molecular Modelling of Reversible Covalent Inhibition of Bruton’s Tyrosine Kinase by Cyanoacrylamides](https://github.com/Jon-Ting/Molecular-Modelling-of-Reversible-Covalent-Inhibition-of-Brutons-Tyrosine-Kinase-by-Cyanoacrylamide)". Click on the title to see the details of the project.

## Contact

Email: `Jonathan.Ting@anu.edu.au`/`jonting97@gmail.com`

Feel free to reach out if you have any questions, suggestions, or feedback.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Jon-Ting/covdrugsim",
    "name": "covdrugsim",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "covalent, drug, quantum, mechanic, molecular, dynamics, simulation",
    "author": "Jonathan Yik Chang Ting",
    "author_email": "jonting97@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c0/ed/5515a1613037f12e285322faa03a0bed242b6708036f2230961b2414cc0c/covdrugsim-1.0.6.tar.gz",
    "platform": null,
    "description": "# CovDrugSim\n\n[![ci-cd](https://github.com/Jon-Ting/covdrugsim/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/Jon-Ting/covdrugsim/actions/workflows/ci-cd.yml)\n\n## Description\n\n`CovDrugSim` is a package that provides functionalities to automate quantum mechanical calculations and molecular dynamics simulations of covalent drugs.\n\n## Features\n\n### Aims\n* Automatic creation of high-performance computing cluster submission files to run Gaussian calculations.\n* Automatic analysis of molecular dynamics simulation trajectories.\n\n### Under Development\n* Complete example.ipynb.\n\n## Installation\n\nUse `pip` or `conda` to install `CovDrugSim`:\n\n```bash\n$ pip install covdrugsim\n```\n```bash\n$ conda install -c conda-forge covdrugsim\n```\n\n## Usage\n\n`covdrugsim` can be used to conduct quantum mechanical calculations and molecular dynamics simulations as follows:\n\n```python\nfrom covdrugsim.qmCalc.genScript import genAllScripts\n\ntargetDirPath = '/mnt/c/Users/JonTing/exampleXYZs'  # Absolute path to the directories containing all of your xyz files to be run\ngenAllScripts(targetDirPath, verbose=True)\n```\nCheck out the [notebook tutorial](https://github.com/Jon-Ting/covdrugsim/blob/main/docs/example.ipynb) for further explanations and demonstrations!\n\nDescriptions of source codes:\n### Quantum Mechanical Calculations (qmcalc)\n\n#### unitConv\nunitConv.py - Interconverts between kinetics and thermodynamic quantities (dGbarr, k, t_half, RT).\n\n#### runGaussian\n* settings.py - Contains variables for different type of Gaussian jobs that are used by prepGaussian.py.\n* admin.py - Group files with the same names (before extension, e.g. abc.inp is the same as abc.xyz) into individual directories.\n* prepGaussian.py - Batch generation of Gaussian input files and job submission files on HPCs with PBS Scheduler.\n* tabulate.py - Batch tabulation of interested values from Gaussian (version 16) output files into an Excel file.\n* gsub.sh - Batch submission of Gaussian QM calculation jobs on HPCs.\n\nTypical workflow for a mechanism-based project where flexible molecules are involved would be:\n1) Conduct conformational searches on the species along the reaction coordinate (using MacroModel).\n2) Export all conformers within 3 kcal/mol of the lowest energy structure to a directory in .xyz format. The naming convention is very important, be consistent, but make sure each conformer has a different name (I do this by adding numbers at the end of their names, signifying their ranks from the conformational searches).\n3) Change your input directory in admin.py to where you store the coordinate files and run it. This will group all of the conformers into individual directories.\n4) Change your input directory in prepGaussian.py to the same location and run it. This will generate the Gaussian input files and job submission files in the corresponding directory. Make sure you check at least a few of the files generated to see that you got the charges, spacing at the end of file, solvents, resources requested, etc right. I named all of the Gaussian job submission jobs with \\*.sh, feel free to change it according to your preference (Line 52 in prepGaussian.py).\n5) Copy the directories across to the HPCs (Raijin/Gadi/Tinaroo/Awoonga, NOTE: The details for job submissions on Raijin and RCC HPCs are different, specify the cluster before running prepGaussian.py in Step 4).\n6) Change directory to the directory that contains all the conformers subdirectories and run 'gsub.sh' (Make sure it's an executable, if you can't run it, use chmod to change it). This will submit all of the Gaussian submission jobs to the HPC. Note that prior to this you need to adjust Line 6 in the gsub.sh file to the naming convention you give to your Gaussian submit files if you have changed them in the prepGaussian.py.\n7) After the jobs are done, copy them over to your local machine.\n8) Change your input directory in tabulate.py to the directory that contains all the conformers and run it. Note that you need to have the Python package pandas installed for it to work.\n\n#### visAnalysis\nenergyLeveller.py - Draws energy profile diagrams.\nplotConfig.py - Stores configuration for figure-plotting functions.\nplotFigs.py - Plots figures for QM data analysis.\n\n\n### Molecular Dynamics Simulations (mdsim)\n* config.py contains some variables that are used repetitively for almost all files.\n* baseID.py plots the distances between potential base species and the targeted protons.\n* bbRMSD.py plots the RMSD of Bruton's Tyrosine Kinease (BTK) backbones over time, for the purpose of checking the stability of the simulations.\n* hbondAnalysis.py plots the distribution of the number of hydrogen bonds between BTK backbones over time.\n* ligDihedral.py plots the distribution of the critical C=C-C=O dihedral angle near BTK active site over time.\n* SCbondDist.py plots the distances between the reacting S and C atoms over time.\n* sumCharge.py sums up the charges to aid in the parameterisation of non-standard amino acids.\n* prepMTB.py was written during an attempt to map the unbound ligand to covalently bound ligand. Was not utilised in the end.\n\n## Documentation\n\nDetailed documentation and usage examples are hosted by [Read the Docs](https://covdrugsim.readthedocs.io/en/latest/).\n\n## Contributing\n\n`CovDrugSim` appreciates your enthusiasm and welcomes your expertise! \n\nPlease check out the [contributing guidelines](https://github.com/Jon-Ting/covdrugsim/blob/main/CONTRIBUTING.md) and \n[code of conduct](https://github.com/Jon-Ting/covdrugsim/blob/main/CONDUCT.md). \nBy contributing to this project, you agree to abide by its terms.\n\n## License\n\nThe project is distributed under an [MIT License](https://github.com/Jon-Ting/covdrugsim/blob/main/LICENSE).\n\n## Credits\n\nThe package was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) using the \nThe codes were written by [Jonathan Yik Chang Ting](https://github.com/Jon-Ting) for [University of Queensland Bachelors of Advanced Science (Honours)](https://study.uq.edu.au/study-options/programs/bachelor-advanced-science-honours-2516) [CHEM6511](https://my.uq.edu.au/programs-courses/course.html?course_code=CHEM6511) under the title \"[Molecular Modelling of Reversible Covalent Inhibition of Bruton\u2019s Tyrosine Kinase by Cyanoacrylamides](https://github.com/Jon-Ting/Molecular-Modelling-of-Reversible-Covalent-Inhibition-of-Brutons-Tyrosine-Kinase-by-Cyanoacrylamide)\". Click on the title to see the details of the project.\n\n## Contact\n\nEmail: `Jonathan.Ting@anu.edu.au`/`jonting97@gmail.com`\n\nFeel free to reach out if you have any questions, suggestions, or feedback.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Package to automate quantum mechanical calculations and molecular dynamics simulations of covalent drugs.",
    "version": "1.0.6",
    "project_urls": {
        "Documentation": "https://covdrugsim.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/Jon-Ting/covdrugsim",
        "Repository": "https://github.com/Jon-Ting/covdrugsim"
    },
    "split_keywords": [
        "covalent",
        " drug",
        " quantum",
        " mechanic",
        " molecular",
        " dynamics",
        " simulation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41c690edb8de0bf1a74f907fc0d90c9265bd307691b3cd505d7b1b67a493d8ab",
                "md5": "fb586a2a8dff80c25c3efcac8365fcd3",
                "sha256": "a561b93cd69a878c7cdbccba93be7e84b0d6b941c2cdee89107632edd2759800"
            },
            "downloads": -1,
            "filename": "covdrugsim-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb586a2a8dff80c25c3efcac8365fcd3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 552881,
            "upload_time": "2024-04-12T05:26:44",
            "upload_time_iso_8601": "2024-04-12T05:26:44.298343Z",
            "url": "https://files.pythonhosted.org/packages/41/c6/90edb8de0bf1a74f907fc0d90c9265bd307691b3cd505d7b1b67a493d8ab/covdrugsim-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c0ed5515a1613037f12e285322faa03a0bed242b6708036f2230961b2414cc0c",
                "md5": "fac89c2db5103fc2b6e64b7052c3cc4a",
                "sha256": "a079fe20bc7844a29d2b67f74242f277b7e5a7ba681d997cd1250765938dd536"
            },
            "downloads": -1,
            "filename": "covdrugsim-1.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "fac89c2db5103fc2b6e64b7052c3cc4a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 521474,
            "upload_time": "2024-04-12T05:26:46",
            "upload_time_iso_8601": "2024-04-12T05:26:46.451462Z",
            "url": "https://files.pythonhosted.org/packages/c0/ed/5515a1613037f12e285322faa03a0bed242b6708036f2230961b2414cc0c/covdrugsim-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-12 05:26:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Jon-Ting",
    "github_project": "covdrugsim",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "covdrugsim"
}
        
Elapsed time: 0.25791s