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 hashes)
Built Distribution
kartograf-0.5.1-py3-none-any.whl
(30.2 kB
view hashes)
Close
Hashes for kartograf-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6aee64d0185e10eb76982e36685af53f01c72e7a93fc23632115ee15eef363a |
|
MD5 | 6f636956b7d2850c58afabd79a15e928 |
|
BLAKE2b-256 | 7ba15b122659f3cf7e969418a048bfcc7810d1b1f63c0a0924c8d5f1090ddd84 |