Molecular Structure Interface with RDKit, ASE, Packmol and NetworkX
Project description
molify - Molecular Structure Interface with RDKit, ASE, Packmol and NetworkX
Installation via pip install molify. For more information please visit the
documentation.
A common use case is to create 3D structures from SMILES strings. This can be
achieved using the molify.rdkit2ase function.
import ase
from rdkit import Chem
from molify import rdkit2ase, ase2rdkit
mol = Chem.MolFromSmiles("O")
atoms: ase.Atoms = rdkit2ase(mol)
mol = ase2rdkit(atoms)
Because this is such a common use case, there is a convenience function
molify.smiles2atoms that combines the two steps.
import ase
from molify import smiles2atoms
atoms: ase.Atoms = smiles2atoms("O")
print(atoms)
>>> Atoms(symbols='OH2', pbc=False)
Packmol Interface
Given the molecular units, you can build periodic boxes with a given density
using the molify.pack function.
The molify package ships with an installation of
packmol. If you like packmol, give it a star
on GitHub!
from molify 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])
Many additional features are described in the documentation.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molify-0.2.4.tar.gz.
File metadata
- Download URL: molify-0.2.4.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce07cba5935df7fd32f0c14e392777113b83aaa2907a9df0f7d75a8a0e8d310a
|
|
| MD5 |
4155a6eb8017874c1d103d3f99b505d0
|
|
| BLAKE2b-256 |
3aae55b86c23f4014fef1bf3cc4786179ff16ba783bc0bc89a792fe6ce264279
|
Provenance
The following attestation bundles were made for molify-0.2.4.tar.gz:
Publisher:
build-wheels.yaml on zincware/molify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molify-0.2.4.tar.gz -
Subject digest:
ce07cba5935df7fd32f0c14e392777113b83aaa2907a9df0f7d75a8a0e8d310a - Sigstore transparency entry: 1569840566
- Sigstore integration time:
-
Permalink:
zincware/molify@32422e3d4ba8a63156def792b18191aaa8eb6c53 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/zincware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yaml@32422e3d4ba8a63156def792b18191aaa8eb6c53 -
Trigger Event:
release
-
Statement type:
File details
Details for the file molify-0.2.4-py3-none-any.whl.
File metadata
- Download URL: molify-0.2.4-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c75bb2d08b73cb5676a2b77395880d0f11152d4e22ed60bbdcafb688f1e49e2
|
|
| MD5 |
72e1ccfea45ccc2304bedeafcd5b7178
|
|
| BLAKE2b-256 |
ec268d3cb98722aba76c909411f2c7b70f08d279d4f1a9dbdcaf0143fe075777
|
Provenance
The following attestation bundles were made for molify-0.2.4-py3-none-any.whl:
Publisher:
build-wheels.yaml on zincware/molify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molify-0.2.4-py3-none-any.whl -
Subject digest:
2c75bb2d08b73cb5676a2b77395880d0f11152d4e22ed60bbdcafb688f1e49e2 - Sigstore transparency entry: 1569840618
- Sigstore integration time:
-
Permalink:
zincware/molify@32422e3d4ba8a63156def792b18191aaa8eb6c53 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/zincware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yaml@32422e3d4ba8a63156def792b18191aaa8eb6c53 -
Trigger Event:
release
-
Statement type: