Kartograf is a package for mapping geometrically atoms of two molecules. (like you need it with hybrid topology)
Project description
Kartograf: A 3D Atom Graph Mapper
Kartograf offers a geometric atom mapper approach, that allows to map a given set of ligand coordinates. (can be used for hybrid topology RBFE calculations) This package can be used standalone, or from the OpenFE environment.
More will be here soon!
Usage
from rdkit import Chem
from kartograf.atom_align import align_mol_shape
from kartograf import KartografAtomMapper, SmallMoleculeComponent
#Preprocessing from Smiles - Here you can add your Input!
# Generate Data: START
smiles = ["c1ccccc1", "c1ccccc1(CO)"]
rdmols = [Chem.MolFromSmiles(s) for s in smiles]
rdmols = [Chem.AddHs(m, addCoords=True) for m in rdmols]
[Chem.rdDistGeom.EmbedMolecule(m, useRandomCoords=False, randomSeed = 0) for m in rdmols]
# Generate Data: END
# Build Small Molecule Components
molA, molB = [SmallMoleculeComponent.from_rdkit(m) for m in rdmols]
# Align the mols first - this might not needed, depends on input.
a_molB = align_mol_shape(molB, ref_mol=molA)
# Build Kartograf Atom Mapper
mapper = KartografAtomMapper(atom_map_hydrogens=True)
# Get Mapping
kartograf_mapping = next(mapper.suggest_mappings(molA, a_molB))
kartograf_mapping
Installation
you can install Kartograf via the package manager of your choice:
pip install kartograf
conda install -c conda-forge kartograf
Or use Kartograf from the OpenFE Environment (soon).
References
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
kartograf-0.5.1.tar.gz
(24.7 kB
view details)
Built Distribution
kartograf-0.5.1-py3-none-any.whl
(30.2 kB
view details)
File details
Details for the file kartograf-0.5.1.tar.gz
.
File metadata
- Download URL: kartograf-0.5.1.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c769d0da80fd8fee1b012434c720399cab5457e728c4fda534a9145fcba0560 |
|
MD5 | 2bd7fc5d65a2f6baf323aac61701e863 |
|
BLAKE2b-256 | f5084359378d433c1b2a4954b3c9944301b95622a49c801a82407753e4196347 |
File details
Details for the file kartograf-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: kartograf-0.5.1-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6aee64d0185e10eb76982e36685af53f01c72e7a93fc23632115ee15eef363a |
|
MD5 | 6f636956b7d2850c58afabd79a15e928 |
|
BLAKE2b-256 | 7ba15b122659f3cf7e969418a048bfcc7810d1b1f63c0a0924c8d5f1090ddd84 |