No project description provided
Project description
Espaloma Charge
Standalone charge assignment from Espaloma framework. https://doi.org/10.1039/D2SC02739A
Installation
$ pip install espaloma_charge
Examples
Option0: Assign charges to rdkit molecule.
>>> from rdkit import Chem; from espaloma_charge import charge
>>> molecule = Chem.MolFromSmiles("N#N")
>>> charge(molecule)
array([0., 0.], dtype=float32)
Assign charges to your favorite molecule in
Option1: Use with openff-toolkit
(installation required)
>>> from openff.toolkit.topology import Molecule
>>> from espaloma_charge.openff_wrapper import EspalomaChargeToolkitWrapper
>>> toolkit_registry = EspalomaChargeToolkitWrapper()
>>> molecule = Molecule.from_smiles("N#N")
>>> molecule.assign_partial_charges('espaloma-am1bcc', toolkit_registry=toolkit_registry)
>>> molecule.partial_charges
<Quantity([0. 0.], 'elementary_charge')>
Option2: Use as Command Line Interface to write antechamber
-compatible charges.
$ espaloma_charge -i in.mol2 -o in.crg
$ antechamber -fi mol2 -fo mol2 -i in.mol2 -o out.mol2 -c rc -cf in.crg
Reference
If you are using this little tool in your pipeline, please consider citing:
@Article{D2SC02739A,
author ="Wang, Yuanqing and Fass, Josh and Kaminow, Benjamin and Herr, John E. and Rufa, Dominic and Zhang, Ivy and Pulido, Iván and Henry, Mike and Bruce Macdonald, Hannah E. and Takaba, Kenichiro and Chodera, John D.",
title ="End-to-end differentiable construction of molecular mechanics force fields",
journal ="Chem. Sci.",
year ="2022",
volume ="13",
issue ="41",
pages ="12016-12033",
publisher ="The Royal Society of Chemistry",
doi ="10.1039/D2SC02739A",
url ="http://dx.doi.org/10.1039/D2SC02739A"}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
espaloma_charge-0.0.6.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for espaloma_charge-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc25d3b4f20a6298aa998598aaa13cfb20be1a5245145f966433e7ccd501f741 |
|
MD5 | f33baf85ff215cfe1101061370a48801 |
|
BLAKE2b-256 | 9cef25670ac5c09db1335a7bf31d32af6561b0648e70d10e47c427b3fa145478 |