MoleculeKit
A molecule manipulation library
Getting started
Installing moleculekit
With pip
pip install moleculekit
With conda
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
- Put a reproducible script in a file like
segfault.py - Modify setup.py to have
-gas compile flag instead of-O3 - Recompile extensions with
python setup.py build_ext --inplace - Execute script with gdb like
gdb --args python segfault.py - Execute
runand thenbt 10to show the backtrace - 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
Release files for moleculekit 1.17.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| moleculekit-1.17.5-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| moleculekit-1.17.5-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 | Details |
| moleculekit-1.17.5-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.5-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.5-cp311-abi3-win_amd64.whl
| Download URL | moleculekit-1.17.5-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
53a36635a6abc0dc01a5ef9384008365fc9b6d19eb77f39b971e8f2a96862277
|
|
BLAKE2b-256 checksum How to use checksums |
28f574ff9b44b82be991bb737adbc8c9a86975ab6f0e610abbf8b6db8d1b2b5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / moleculekit-1.17.5-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | moleculekit-1.17.5-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 |
a579572eccfc2b1a3d2a867a05cc5465d5aa44c135b46117a71e28fb551b4c25
|
|
BLAKE2b-256 checksum How to use checksums |
5c728d1461014a904935a98511c5c47bf27e16e6f1002155cc95ac4218f123f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / moleculekit-1.17.5-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | moleculekit-1.17.5-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 |
b2a0fb1b54853d61cc6adbf3a34503031b9f5959b0b089db9ca197dc20dbeb82
|
|
BLAKE2b-256 checksum How to use checksums |
f84803a98a93fd601d424cc1d6ebd227cd5842b621efc84293c8f14a49ae8671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / moleculekit-1.17.5-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | moleculekit-1.17.5-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6f2c7514d57d0c6376c56c3ce3bbf80f99608f465843c80b3a4a5cd55afe7b93
|
|
BLAKE2b-256 checksum How to use checksums |
bae1ffefd65254e1cba7a02d9c36694f216bbac65100834c6ff88609900373ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|