A molecule reading/writing and manipulation package.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moleculekit-1.11.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83105d2ec309e4f6625e730273bbb803f313b93bcfd57e1f083c8421f4172564
|
|
| MD5 |
13484e361d3b8e5840977ab422b1772f
|
|
| BLAKE2b-256 |
bda64cc82a1b0eaf9ec87cf640511b23dd850c42a769063046299d4c51255ecf
|
File details
Details for the file moleculekit-1.11.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edfc083732f62a1750b8a15f1926d1093cbffe2cff65e71607f268afac54bb2d
|
|
| MD5 |
3f861ef8223282977030b3d1fbe27148
|
|
| BLAKE2b-256 |
4fd59bca95b6f240feef364e1128ee78b5e11193b0abe2dad461ce629444eebd
|
File details
Details for the file moleculekit-1.11.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 12.6 MB
- Tags: CPython 3.13, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605a340f7c041a0deb830d7e4d2d5f57023141c5f46629365da0cf16883e1530
|
|
| MD5 |
076b1bd16c731400c27cd0ddcbaeb218
|
|
| BLAKE2b-256 |
fb8e687c0b62cab4fa50dd2a43326948c7cf4c708500b04aa89eb4f3d80e076c
|
File details
Details for the file moleculekit-1.11.1-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e51ec1ee85161a3dbb12dbc1a873ddf403ff52b7f9df2146e6541abbd71cc9de
|
|
| MD5 |
db3178fe8a57ee6352bc6edded83dedb
|
|
| BLAKE2b-256 |
43ad277670f00e73cf56e1f4603007b4a09b471243169a590cf4f8c7596ca68d
|
File details
Details for the file moleculekit-1.11.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55d01f25a924b9dd96583cab08db80238b3f0478ab2809624fc6584d11813804
|
|
| MD5 |
c6a1564153adba886fee401476ff5b9d
|
|
| BLAKE2b-256 |
f505b6f75bb1c288746cc4ceabc5f9f7e3f05dc32938839d9a7d0da1bcf5a3e1
|
File details
Details for the file moleculekit-1.11.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d282e0e77722143a3bf1aa330d5bc660cb9da9ee29dd46b2d3dbbbcd1d19233f
|
|
| MD5 |
ffb73ee106cf38d2094fe27c0ab1a64a
|
|
| BLAKE2b-256 |
4a3e397d622462f27c610726e490b3240bff3083ef256daf75814b7ca211a652
|
File details
Details for the file moleculekit-1.11.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 12.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4c3b26f8510bbc044fef9074b4677967e60bbb1ee4b3165b0cac78ec4edaa4
|
|
| MD5 |
70b1f0e7be08fb7dd24f776406cf20fb
|
|
| BLAKE2b-256 |
f8c8d8934b49fc1c46f488596d22388227b7f16e1730700c36a77ca7d59c1505
|
File details
Details for the file moleculekit-1.11.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ee366c3f3d22a4f4c4c6a50403d8fbd47a755e8d2a9b315aa2ba56898f29e45
|
|
| MD5 |
8127616414aacb77499a740ab592e294
|
|
| BLAKE2b-256 |
003a219adf953aae98bb6f5ce2ba3ef8c2ef0c0447c842ae18e2b29f9c16af62
|
File details
Details for the file moleculekit-1.11.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95d44270e6c5177b44decfaecd20d63cba30eb830553c6b7c083b8e7881d6cd
|
|
| MD5 |
5cdf91fd1856df769699eee18af130bc
|
|
| BLAKE2b-256 |
0cfb61a3a2825b06ab4cd38efc13d86ad10c1db2bd2c2ee7ba3730a345e59aaa
|
File details
Details for the file moleculekit-1.11.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291caa9d5424112f16c99a9fbd1a38f1f23996d64f54f7d73b614f462e3348ff
|
|
| MD5 |
ab5779cb2aa6f76ece54dccf58fd963c
|
|
| BLAKE2b-256 |
b67cac0261368ae0c5fbb8ce73dd256939cd00267e76f0d77e9dd81ed4b1df95
|
File details
Details for the file moleculekit-1.11.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
515d973f1ac0d3a4f7a1e08cd1d53c4b5fdd0b97a4d7677555ad0bc92c6fc021
|
|
| MD5 |
8df0786dcd9a4138f896beeae2725a90
|
|
| BLAKE2b-256 |
f78ad58a4ed91fa9a2a331368ee8d27d1728b2f01b2727a22b592ff777aacc6c
|
File details
Details for the file moleculekit-1.11.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef1b4a86b8e20ab30d37117d5bf5ab64ef28088b7e7bcfb47689519c156e1ff
|
|
| MD5 |
cf06a984a8f3f0cdd1879f79027a6a53
|
|
| BLAKE2b-256 |
85aaa4ee5b1ce1723e5650336da5196fd59330ca29ff3d85ef6abaddda141169
|
File details
Details for the file moleculekit-1.11.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f931edea34373a134899f677d68fc02fe5f4d9b784c9c354c8977a609d8676
|
|
| MD5 |
52e9139dddbe068fe1fede6bb510134b
|
|
| BLAKE2b-256 |
abc3515ab8f1718a6b713f570d23508e1be094aca7a99910c567545d36712396
|
File details
Details for the file moleculekit-1.11.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f271eb69340948a544c721983486ff0bf44817d5b2c43422280d1508157335b6
|
|
| MD5 |
02afdce8f7c87120864aa91fa7f0ba25
|
|
| BLAKE2b-256 |
b669ed36baacfa3d584094403f3a2728e8cc4bf5d962f4a169738f033619c3a0
|
File details
Details for the file moleculekit-1.11.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 12.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99bb121faf8e086b6f2030c8c707ab15546a2a8d2d5d5996a9aeed02d1ab2f1d
|
|
| MD5 |
0e384df2a0f56230929bcc8f091e2734
|
|
| BLAKE2b-256 |
429a346f45ab5d7ce483290e4852c42d87a62c35585ba4ccdeec5648ead63336
|
File details
Details for the file moleculekit-1.11.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eb30d95ef3a529aefe5a8742174ca46fcfdaccbaf62a4c68adc489d12828bed
|
|
| MD5 |
9e6e7c360d89f9a0d8ac3b074c7fb045
|
|
| BLAKE2b-256 |
8e8d0ff1cf68d306b3199de7142048a6f825fc9f0c7e3562d2820188f1ce7616
|
File details
Details for the file moleculekit-1.11.1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c804d25e428e0d43bc0d2e670d4eba62156821cbbd200230ec965fe19a6dc3
|
|
| MD5 |
fcecf9557bceaa6259378aae4183c99d
|
|
| BLAKE2b-256 |
0ea7e4fe2563a9cf00892171cd66bc99566269a1620e60aeb84369192e027069
|
File details
Details for the file moleculekit-1.11.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6f2d1a63d4830fc56b73c5f7e5e4c1f731e4b546fd58a951e2b0c46d76fbf7
|
|
| MD5 |
68518d6052613e3c803a6efac1fd6d66
|
|
| BLAKE2b-256 |
16fb9bd10ca3ee7c3addaac923c322e6a42ea4514a897785fc4107d11a12a66b
|
File details
Details for the file moleculekit-1.11.1-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 12.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b3adead7e8358e1f57fd400626265b21a75bb409ec5241c0a00b48d3da777d6
|
|
| MD5 |
eb830d9764f5605c2069543b386af556
|
|
| BLAKE2b-256 |
2b4997ec9e3cc35bfa45affb0f802a388f7277cb14dbf959d2b45c01e9a908b9
|
File details
Details for the file moleculekit-1.11.1-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: moleculekit-1.11.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83c569168f920b4fb0357ae954cea967c04ba1d1a8dba6ad0d4da3326d4ed780
|
|
| MD5 |
ed1c35834e5673956d5110b53e0183e3
|
|
| BLAKE2b-256 |
a03dd271c05187bdab1e4a4b4d3227a82ae5ed093e67f33809ca06b2a2b84de1
|