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
Example
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
Alternatively, 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')>
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
Built Distribution
Close
Hashes for espaloma_charge-0.0.3.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eac99b5b2820ca86996ded5025df9a213f3e681ade1fc99f3af73d10790ff86 |
|
MD5 | b35b14da9d6487df077615bba9fc8d94 |
|
BLAKE2b-256 | 9504684cf4ea8f4deb16d8ab2ba4cdf4bfb16f469974acebffa8cdb1c57e4824 |
Close
Hashes for espaloma_charge-0.0.3.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52e47923e5646dabbcd9019308941539bcf3e8892258669fdcf2dead58f5a3a |
|
MD5 | dff8a933e7f4e61eb428f8dd49e2d7be |
|
BLAKE2b-256 | df621e1f4d2ce61de96121bc69104395230a3f2345eb848b009bbd98dff88b51 |