Psikit: a thin wrapper library for Psi4 and RDKit
Inspired from the entry:Calculate HOMO and LUMO with Psi4
Install RDKit and Psi4 from Conda
conda install -c psi4 psi4
conda install -c rdkit rdkit
conda install -c conda-forge debtcollector
Install resp from github repository (resp from conda doesn't work)
git clone https://github.com/cdsgroup/resp.git
cd resp
pip install .
Install Psikit
Psikit is under development but you can install the current version of Psikit from pypi or conda.
via conda
conda install -c iwatobipen psikit
via pip
pip install psikit
via pip from github
pip install git+https://github.com/Mishima-syk/psikit
Testing Psikit
pytest --disable-warnings -v
Usage
Single point calcuration
from psikit import Psikit
pk = Psikit()
pk.read_from_smiles("c1ccccc1")
print("SCF Energy: ", pk.energy())
print("HOMO: ", pk.HOMO)
print("LUMO: ", pk.LUMO)
x, y, z, total = pk.dipolemoment
print("SCF Total Dipole Moment: {}".format(total))
# SCF Energy: -230.712279648862
# HOMO: -0.32848562009092513
# LUMO: 0.1456515222506689
# SCF Total Dipole Moment: 3.292464934070545e-05
Structure optimization
pk = Psikit()
pk.read_from_smiles("c1ccccc1")
print("Optimized SCF Energy: ", pk.optimize())
# Optimizer: Optimization complete!
# Optimized SCF Energy: -230.71352354223438
Calculate RESP Charge
# REF http://ambermd.org/tutorials/advanced/tutorial1/files/resp_paper_jacs.pdf
pk = Psikit()
pk.read_from_smiles("CC(=O)O")
pk.optimize()
# Optimizer: Optimization complete!
# -227.82180859253418
pk.calc_resp_charges()
# array([-0.32506898, 0.83672649, -0.61924915, -0.66135715, 0.10450057,
# 0.10478188, 0.10780051, 0.45186584])
for atom in pk.mol.GetAtoms():
print(atom.GetSymbol(), "ESP:{}\tRESP:{}".format(atom.GetProp("EP"), atom.GetProp("RESP")))
# C ESP:-0.49662019588648315 RESP:-0.3250689814483399
# C ESP:0.91473263536048643 RESP:0.83672648554100837
# O ESP:-0.63823808477114718 RESP:-0.61924915363703359
# O ESP:-0.6763331997116846 RESP:-0.66135714989354499
# H ESP:0.14625849864628995 RESP:0.10450056830656008
# H ESP:0.14578513969681847 RESP:0.10478187811883517
# H ESP:0.1530843954112609 RESP:0.1078005104750676
# H ESP:0.45133081125445906 RESP:0.45186584253744722
### Compute Mulliken charges and Lowdin charges
pk = Psikit()
pk.read_from_smiles("CC(=O)O")
pk.optimize() # or pk.energy()
pk.calc_mulliken_charges()
# array([-0.42203029, 0.72794785, -0.55419051, -0.59333358, 0.16369722,
# 0.1636994 , 0.15462075, 0.35958916])
pk.calc_lowdin_charges()
#array([-0.30006577, 0.33900448, -0.35983788, -0.28463832, 0.12439944,
# 0.12810672, 0.11935266, 0.23367866])
Rendering Molecular Orbitals
from psikit import Psikit
pk = Psikit()
pk.read_from_smiles("c1ccccc1")
pk.optimize(basis_sets="scf/sto-3g")
pk.view_on_pymol() # launch pymol as a RPC server in advance, just type "pymol -R"
Adding RDKit mol object to Psikit object directly
from psikit import Psikit
pk = Psikit()
pk.mol = your_mol_object
Jupyter notebook
- RESP charge
- Torsion Scan
- Rendering Orbital with VMD
- Rendering Orbital in PyMol
- Charge Comparison
- SAPT
- FSAPT
License
Code released under the BSD license.
Metadata
Release files for Psikit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Psikit-0.2.0.tar.gz | 13.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Psikit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / Psikit-0.2.0.tar.gz
| Download URL | Psikit-0.2.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10e66084c426fdd94bc32b18806567e8a18aab4dbdad7a194c79312a8f09ad85
|
|
BLAKE2b-256 checksum How to use checksums |
6185f63bb6e7cf7538a0b54545f691351ef92e40f0cc0646fd9688d1cfc5e5ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201103 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.8
|
Release files / Psikit-0.2.0-py3-none-any.whl
| Download URL | Psikit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4470eceaf22c671cdeaf27b4217ca7c7819136896208cc24e4814e3a4a19e5ed
|
|
BLAKE2b-256 checksum How to use checksums |
ed04bae3624918c5cd64238d01c0a58f821f8139a84d0140d8d3c7e22205d452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201103 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.8
|
Security for Psikit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.