rdkit2ase 0.1.4
pip install rdkit2ase
Latest version
Released:
interface between rdkit and ASE
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: zincwarecode
- Requires: Python <4.0, >=3.10
Classifiers
- License
- Programming Language
Project description
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: zincwarecode
- Requires: Python <4.0, >=3.10
Classifiers
- License
- Programming Language
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
File details
Details for the file rdkit2ase-0.1.4.tar.gz
.
File metadata
- Download URL: rdkit2ase-0.1.4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 562da58dff1ee92cb8aff14475b2bb7f8cd99f63b962d60ef8c6c36ee1869a97 |
|
MD5 | 7a3169461289f6aeb4cf2acb333ee38a |
|
BLAKE2b-256 | 42ab4fcd5a68d6d2b58370fe3bd30eee9fe0f85b5b9cc1f6bbfdf8e9116d4b99 |
File details
Details for the file rdkit2ase-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: rdkit2ase-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79e7a8f920cf956886d3aef508b5afd549de7db3d2ac791ea237d40d2faefada |
|
MD5 | bdac2ae23024fef69df8acb5dfd11053 |
|
BLAKE2b-256 | a1119ec9e63dcd6d347c812fe3f0930c6e120133fe02d3ba668dc00704a903b3 |