Skip to main content

Interface between rdkit and ASE

Project description

zincware codecov PyPI version DOI Docs

rdkit2ase - Interface between the rdkit and ASE package.

Installation via pip install rdkit2ase.

from rdkit2ase import rdkit2ase, ase2rdkit

atoms: ase.Atoms = rdkit2ase(mol)
mol = ase2rdkit(atoms)
from rdkit2ase import smiles2atoms

atoms: ase.Atoms = smiles2atoms("O")

print(atoms)
>>> Atoms(symbols='OH2', pbc=False)

Packmol Interface

If you have packmol (at least v20.15.0) you can use the rdkit2ase interface.

from rdkit2ase import pack, smiles2conformers

water = smiles2conformers("O", 2)
ethanol = smiles2conformers("CCO", 5)
density = 1000  # kg/m^3
box = pack([water, ethanol], [7, 5], density)
print(box)
>>> Atoms(symbols='C10H44O12', pbc=True, cell=[8.4, 8.4, 8.4])

Limitations

  • rdkit2ase.ase2rdkit won't be able to detect higher order bonds.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdkit2ase-0.1.13.tar.gz (292.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdkit2ase-0.1.13-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file rdkit2ase-0.1.13.tar.gz.

File metadata

  • Download URL: rdkit2ase-0.1.13.tar.gz
  • Upload date:
  • Size: 292.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for rdkit2ase-0.1.13.tar.gz
Algorithm Hash digest
SHA256 557d691addc967795504354706fe2dee287ae3e356d913b549dd3b1cf100dcb6
MD5 6b48165cc982830a8826ae1718cad6e8
BLAKE2b-256 df3a2a92f6f4699ba1ffbf4e8382e05240dd463d39e2280d82ad85367463b69d

See more details on using hashes here.

File details

Details for the file rdkit2ase-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: rdkit2ase-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for rdkit2ase-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 26a0bcc78035c24139eb67e61e5e63d850bcb16069f2a4f3c8e6b86422e2630c
MD5 2f5ef6e1abfcb5e463ead5f29d0b25ea
BLAKE2b-256 c3038d5774caef8262c0b9332a6241551d03682d143fc4fb00877acf2d6168ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page