rdkit2ase


Namerdkit2ase JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
Summaryinterface between rdkit and ASE
upload_time2024-08-16 10:50:09
maintainerNone
docs_urlNone
authorzincwarecode
requires_python<4.0,>=3.10
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![zincware](https://img.shields.io/badge/Powered%20by-zincware-darkcyan)](https://github.com/zincware)
[![codecov](https://codecov.io/gh/zincware/rdkit2ase/graph/badge.svg?token=Q0VIN03185)](https://codecov.io/gh/zincware/rdkit2ase)
[![PyPI version](https://badge.fury.io/py/rdkit2ase.svg)](https://badge.fury.io/py/rdkit2ase)

# rdkit2ase - Interface between the rdkit and ASE package.

Installation via `pip install rdkit2ase`.

```py
from rdkit2ase import rdkit2ase, ase2rdkit

atoms: ase.Atoms = rdkit2ase(mol)
mol = ase2rdkit(atoms)
```

```py
from rdkit2ase import smiles2atoms

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

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

## Packmol Interface
If you have [packmol](https://github.com/m3g/packmol) (at least `v20.15.0`) you can use the rdkit2ase interface.

```py
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rdkit2ase",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "zincwarecode",
    "author_email": "zincwarecode@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/27/1a/ecf5498078253293fb6c8435a18d1ec44983522719c0ae1d08269a0386a3/rdkit2ase-0.1.3.tar.gz",
    "platform": null,
    "description": "[![zincware](https://img.shields.io/badge/Powered%20by-zincware-darkcyan)](https://github.com/zincware)\n[![codecov](https://codecov.io/gh/zincware/rdkit2ase/graph/badge.svg?token=Q0VIN03185)](https://codecov.io/gh/zincware/rdkit2ase)\n[![PyPI version](https://badge.fury.io/py/rdkit2ase.svg)](https://badge.fury.io/py/rdkit2ase)\n\n# rdkit2ase - Interface between the rdkit and ASE package.\n\nInstallation via `pip install rdkit2ase`.\n\n```py\nfrom rdkit2ase import rdkit2ase, ase2rdkit\n\natoms: ase.Atoms = rdkit2ase(mol)\nmol = ase2rdkit(atoms)\n```\n\n```py\nfrom rdkit2ase import smiles2atoms\n\natoms: ase.Atoms = smiles2atoms(\"O\")\n\nprint(atoms)\n>>> Atoms(symbols='OH2', pbc=False)\n```\n\n## Packmol Interface\nIf you have [packmol](https://github.com/m3g/packmol) (at least `v20.15.0`) you can use the rdkit2ase interface.\n\n```py\nfrom rdkit2ase import pack, smiles2conformers\n\nwater = smiles2conformers(\"O\", 2)\nethanol = smiles2conformers(\"CCO\", 5)\ndensity = 1000  # kg/m^3\nbox = pack([water, ethanol], [7, 5], density)\nprint(box)\n>>> Atoms(symbols='C10H44O12', pbc=True, cell=[8.4, 8.4, 8.4])\n```\n\n### Limitations\n\n- `rdkit2ase.ase2rdkit` won't be able to detect higher order bonds.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "interface between rdkit and ASE",
    "version": "0.1.3",
    "project_urls": {
        "repository": "https://github.com/zincware/rdkit2ase"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72dada851e0d67926a2011b99f84df3304c8faf1805ad2113ce28bfb2442fc85",
                "md5": "8c6dcc0be60b2516e703f7a37a94a07a",
                "sha256": "a5691a0236853264098c6be346c71eebdd88eb16fbcc4a69522e9cd66e53f8d5"
            },
            "downloads": -1,
            "filename": "rdkit2ase-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c6dcc0be60b2516e703f7a37a94a07a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 9078,
            "upload_time": "2024-08-16T10:50:07",
            "upload_time_iso_8601": "2024-08-16T10:50:07.196593Z",
            "url": "https://files.pythonhosted.org/packages/72/da/da851e0d67926a2011b99f84df3304c8faf1805ad2113ce28bfb2442fc85/rdkit2ase-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "271aecf5498078253293fb6c8435a18d1ec44983522719c0ae1d08269a0386a3",
                "md5": "400f86426bf3d7b708d2b53632919f93",
                "sha256": "19c02dd3d6696ef4db94d4fe37e406712cbc9fe85339d075d5943337c33c3326"
            },
            "downloads": -1,
            "filename": "rdkit2ase-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "400f86426bf3d7b708d2b53632919f93",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 7588,
            "upload_time": "2024-08-16T10:50:09",
            "upload_time_iso_8601": "2024-08-16T10:50:09.729539Z",
            "url": "https://files.pythonhosted.org/packages/27/1a/ecf5498078253293fb6c8435a18d1ec44983522719c0ae1d08269a0386a3/rdkit2ase-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-16 10:50:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zincware",
    "github_project": "rdkit2ase",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "rdkit2ase"
}
        
Elapsed time: 0.34574s