Skip to main content

MoleculeKit

Conda

A molecule manipulation library

Getting started

Installing moleculekit

With pip

pip install moleculekit

With conda

Installation Instructions

Using moleculekit in ipython

Install ipython in the correct conda enviroment using the following command.

pip install ipython

Now you can start an ipython console with

ipython

In the ipython console you can now import any of the modules of moleculekit and use it as normal.

from moleculekit.molecule import Molecule

mol = Molecule('3ptb')
mol.view()

API

For the official documentation of the moleculekit API head over to https://software.acellera.com/moleculekit/index.html

Issues

For any bugs or questions on usage feel free to use the issue tracker of this github repo.

Dev

If you are using moleculekit without installing it by using the PYTHONPATH env var you will need to compile the C++ extensions in-place with the following command:

python setup.py build_ext --inplace

Building for WebAssembly

Install emscripten https://emscripten.org/docs/getting_started/downloads.html

conda create -n pyodide-build
conda activate pyodide-build
conda install python=3.11
pip install pyodide-build==0.25.1

# Activate the emscripten environment
cd ../emsdk
./emsdk install 3.1.46
./emsdk activate 3.1.46
source emsdk_env.sh
cd -

# Build the package
export PYO3_CROSS_INCLUDE_DIR="HACK"
export PYO3_CROSS_LIB_DIR="HACK"
rm -rf .pyodide-xbuildenv
pyodide build -o dist_pyodide
cp dist_pyodide/*.whl test_wasm/wheels/
cd test_wasm
python3 -m http.server

If you get an error at building about numpy missing, check this issue https://github.com/pyodide/pyodide/issues/4347

Debugging segmentation faults in Cython part

  1. Put a reproducible script in a file like segfault.py
  2. Modify setup.py to have -g as compile flag instead of -O3
  3. Recompile extensions with python setup.py build_ext --inplace
  4. Execute script with gdb like gdb --args python segfault.py
  5. Execute run and then bt 10 to show the backtrace
  6. Have fun

Citing MoleculeKit

If you use this software in your publication please cite:

Stefan Doerr, Matthew J. Harvey, Frank Noé, and Gianni De Fabritiis. HTMD: High-throughput molecular dynamics for molecular discovery. Journal of Chemical Theory and Computation, 2016, 12 (4), pp 1845–1852. doi:10.1021/acs.jctc.6b00049

Metadata

Release files for moleculekit 1.17.17

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

Built distributions (wheels)

Table of built distributions (wheels) for moleculekit 1.17.17
File
moleculekit-1.17.17-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
moleculekit-1.17.17-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
moleculekit-1.17.17-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details
moleculekit-1.17.17-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 21.7 MB

Release files / moleculekit-1.17.17-cp311-abi3-win_amd64.whl

Download URL moleculekit-1.17.17-cp311-abi3-win_amd64.whl
Size 5.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
656c75e754b2e68f1c0ae4e32de6a5d88a3cc2ec4673d980f66520753c277ee4
BLAKE2b-256 checksum
How to use checksums
302af0e272364b62e42637fc24ce7ba384ec19b1bb7f5a515cb0b043102ffbaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / moleculekit-1.17.17-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL moleculekit-1.17.17-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 5.6 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
50cf5da984eefbf14255029c7fcb09743710a38abb2a67167eb8220d10b2e86a
BLAKE2b-256 checksum
How to use checksums
8c976903107793dea5254aea1bfef3205aac0aecf0c248a49ba2cd485b6e56c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / moleculekit-1.17.17-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL moleculekit-1.17.17-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 5.5 MB
Tags CPython 3.11 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
e0a0a00ba3a0212d8c8f27187968c79856c5c62a80c43100c5dab043bab710c0
BLAKE2b-256 checksum
How to use checksums
7e5ff5a60c6dae373501e92bb6421d5fd0fdc8832b3b8293be439d21170238d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / moleculekit-1.17.17-cp311-abi3-macosx_11_0_arm64.whl

Download URL moleculekit-1.17.17-cp311-abi3-macosx_11_0_arm64.whl
Size 5.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7df123f5990731720e1a3df768e28c686bd1fa343d0ff08a9acdcfced2f6c9d7
BLAKE2b-256 checksum
How to use checksums
89f8be185325297d980d24b92ea24bf61a82ec0216bf4dbdb8fc020687e634b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for moleculekit 1.17.17

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.

Release history Release notifications | RSS feed

This release

1.17.17 This release

4 release files No provenance

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