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"}
Metadata
Release files for espaloma-charge 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| espaloma_charge-0.0.8.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| espaloma_charge-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / espaloma_charge-0.0.8.tar.gz
| Download URL | espaloma_charge-0.0.8.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39db949a1ad72f2e3ad8df301d61e73f9b993d93021fe933f090411fd4d15132
|
|
BLAKE2b-256 checksum How to use checksums |
a0e5bf4053b20dfd50d9c08425432a28a43fca7ecd5e43b01cb19d3f9b491b38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Release files / espaloma_charge-0.0.8-py3-none-any.whl
| Download URL | espaloma_charge-0.0.8-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebe374427a18e68b227bc51d05bb5c0139436f9583a67ee7511cd4a55c4a4b21
|
|
BLAKE2b-256 checksum How to use checksums |
760d4efbe171490410bf76830fe96d1a66f69cb0014852641bc754de7b50de8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|