Skip to main content

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

Logo build coverage Documentation Status

Pip Install Conda Install

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).

For Developing Kartograf, you might want to use this approach:

git clone https://github.com/OpenFreeEnergy/kartograf.git

cd kartograf
conda env create -f environment.yml

conda activate kartograf
pip install .

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.2.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

kartograf-0.5.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file kartograf-0.5.2.tar.gz.

File metadata

  • Download URL: kartograf-0.5.2.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for kartograf-0.5.2.tar.gz
Algorithm Hash digest
SHA256 2f1f7e7d3fcfca114f092bb2b99480af78112ac088ed3f870da2f987a9c2ae46
MD5 d6a2c5b2b454e025fd45ec87c8b1126c
BLAKE2b-256 a267db7e031e2cd3c68e9c439453bba2c4b9d4c0e45c9d89c9b579245e8e34bb

See more details on using hashes here.

File details

Details for the file kartograf-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: kartograf-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for kartograf-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a825da4b001d0f0b4bdef05fc372f1034651e64e0018087d2f02f1fa1f795018
MD5 9d4c2674c4fc131c773631348e7fc0a2
BLAKE2b-256 1815923c59b1532096eece4d8e224749c796b6bd12165b3cea8d573608fff571

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page