Chemical drawing with Python
Project description
applique
applique
is a simple program that can write .xyz file from .mol files. It really is just a missing puzzle piece in the quantum chemistry world, as some molecular editors went corrupt. Now one can use common Quantum Chemistry software again. It mimics Avogadros behaviour.
Nothing special.
Okay by now it is an understatement. It is infact a molecular model suitable for generating simulations. It can also convert fileformats.
Installation
Simple as always
pip install applique
Usage
Cli
In your venv
applique --i in_file.mol --o out_file.xyz
Easy peasy
Programs
Within programs for example you load a molfile like this
from applique.molecule import Molecule as Mol
mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)
Then write the .xyz
like this
from applique.writer import write_xyz
from applique.molecule import Molecule as Mol
mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)
file_name_benzene = "./tests/molecules/benzene.xyz"
coordinates = benzene.struct3D() #you can omit if you don't want to preoptimize the structure.
write_xyz(self.benzene, file_name_benzene)
Errors
This is wanted (don't want to impose bonds at this stage)
E RuntimeError: Pre-condition Violation
E getNumImplicitHs() called without preceding call to calcImplicitValence()
E Violation occurred on line 287 in file Code/GraphMol/Atom.cpp
E Failed Expression: d_implicitValence > -1
E RDKIT: 2024.03.5
E BOOST: 1_85
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
File details
Details for the file applique-0.1.9.tar.gz
.
File metadata
- Download URL: applique-0.1.9.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e65f16a67d2ad070965d400cccc674bb7b1a6174a0c41b9f816983e20451e04 |
|
MD5 | ee378c788da559a2fd1ae63bb07dbd4b |
|
BLAKE2b-256 | 859284a9a8ffe030b7ed676a1edbf8b88a69622ba588687ecbef55a01d719acf |
File details
Details for the file applique-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: applique-0.1.9-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d007b3998bbf19801140629df911b53f62fee141269d6660aa718d3fa31c5d09 |
|
MD5 | 22d450e213e5478ce9424740242105bd |
|
BLAKE2b-256 | edf2fe692615f6219710c3bd6b78d8bae0df5a2e6fe462b8240dddc70d282550 |