Skip to main content

Logo build coverage Documentation Status pre-commit.ci status DOI

Konnektor`s fancy logo

Konnektor: A library for planning networks for use in free energy calculations

Check out our article on Konnektor in the Journal of Chemical Information and Modeling: Konnektor: A Framework for Using Graph Theory to Plan Networks for Free Energy Calculations - Benjamin Ries*, Richard J. Gowers, Hannah M. Baumann, David W. H. Swenson, Michael M. Henry, James R. B. Eastwood, Irfan Alibay, and David Mobley.

You can also find our pre-print on ChemRxiv.

Content

Implemented Network Layouts

Several Network layout generating algorithms are implemented in Konnektor, with different advantages and disadvantages. From an algorithmic perspective most of the algorithms are actually a reduction method of the Maximal Network. To speed-up the Maximal Network Algorithm we implemented an parallelization scheme to it. Below you can find some of our layouts:

image

Tools for handling Networks

Konnektor implements tools, that allow for example to merge (if a node is shared in the networks) or concatenate (if no node is shared) networks, append single molecules (nodes) to a network or delete transformations/molecules from a network.

image

Enable More Complex Higher Order Networks

Another goal of Konnektor is to go beyond the standard network layout algorihtms and allow easy implementation of more complex network algorithms. This is achieved by combining the Tools and Network Generator Algorithms, to build up to more advanced workflows.

image

Code Example

# Here we generate some input data.
from konnektor.data import get_benzene_ligands

compounds = list(filter(lambda x: not x.name in ["lig_2", "lig_3", "lig_4", "lig_7"],
                        get_benzene_ligands()))

# Pick your Favourite Network layout with favourite AtomMapper and Scorer
from openfe.setup import KartografAtomMapper, lomap_scorers
from konnektor.network_planners import CyclicNetworkGenerator

networker = CyclicNetworkGenerator(mappers=KartografAtomMapper(),
                                   scorer=lomap_scorers.default_lomap_score)

# Generate Network
network = networker.generate_ligand_network(compounds)
network.name = "Cyclic Network"

# Visualize the generated network
from konnektor.visualization import draw_ligand_network
fig = draw_ligand_network(network=network, title=network.name)

fig.show()

example fig

Installation

See our installation guide for full details, or see below for developer install instructions.

Developer Install

The development version of konnektor can be install directly from this repo:

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

cd konnektor
micromamba env create -f environment.yaml

micromamba activate konnektor
pip install -e .

License

This library is made available under the MIT open source license.

Authors

The OpenFE development team.

Acknowledgments

Thanks to Enrico Ruijsenaars, Jenke Scheen, and Josh Horton for great discussions!

Metadata

Release files for acellera-konnektor 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acellera-konnektor 0.4.0
File Size Uploaded Provenance Actions
acellera_konnektor-0.4.0.tar.gz 14.6 MB Without provenance Details for acellera_konnektor-0.4.0.tar.gz

Release files / acellera_konnektor-0.4.0.tar.gz

Download URL acellera_konnektor-0.4.0.tar.gz
Size 14.6 MB
Tags Source
SHA-256 checksum
How to use checksums
8a7785187b98984ec576c7a44b40a6b88a60aaee4eaa5136eeb4dfedaf122a15
BLAKE2b-256 checksum
How to use checksums
bc7c6b12a46a6562890d220be5015531d9a019734c700b492145c1cdaf098ec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for acellera-konnektor 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page