Skip to main content

A molecule reading/writing and manipulation package.

Project description

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

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

moleculekit-1.11.14-cp313-cp313-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.14-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.11.14-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

moleculekit-1.11.14-cp313-cp313-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.11.14-cp312-cp312-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.14-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.11.14-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

moleculekit-1.11.14-cp312-cp312-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.11.14-cp311-cp311-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.14-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.11.14-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

moleculekit-1.11.14-cp311-cp311-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.11.14-cp310-cp310-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.14-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (15.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.11.14-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

moleculekit-1.11.14-cp310-cp310-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file moleculekit-1.11.14-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e367689f2b596a1f463a9f8da890a3c40cd3929ce5c3c08410c9521a9f96a077
MD5 9fb05ba9f3cf716ea5921f199b39e974
BLAKE2b-256 960aa12dd78cb7ef6489f021625f957d5d4c3bd43651bcc6b19231bf06a17cfa

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 67d58f3ca02886a79a1ca4c65943c5e012654e71ac932a0ce6f2eaa08691f77e
MD5 aab3cf9dd1c4a053a1bf62c55e79e9b5
BLAKE2b-256 9367d3b17b2961ac4d0ffa3f39c1355ff61d637550185f7a9625798a20aee5b4

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 324a00498bc5d7ffdc7f186578a7613383878e47a4168e2cb83c94b7a2e8917c
MD5 61218fd212ca96b9b98479acfe9422b0
BLAKE2b-256 923bf805de2b8a63697dd11ebdbf96b2b22025e8ce6dbbaff79358542c6d33a8

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6b120ecc76cf7b065ada8d0d836872be035b292a2bc07ab9e00c631f1ae53f4
MD5 5e016edf5a1b6d3d25ced7cd111c505d
BLAKE2b-256 278e2bef0bd991c636988123101dd9e24f8266e3895f96216ad00309ee294698

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3f9bd75f1b32e089097373991e6a5b3a34dd203fdc560ee11a561e52add732ba
MD5 4f12467b2a5ad842680cb177982a796f
BLAKE2b-256 5e0fbaa13d3dcc898f3a90ec3dca18ad2138564462adfb75e3d2aa066414554b

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb6ad892be8a5a2e3cf3e6db90ad7b8c581bd738910801a3b84d0f3fd9f878fa
MD5 46305741c4a31055e9ea784380eda392
BLAKE2b-256 70c24fe0fb3545f10d6cbe861527e8cf019c54d36b7176b68083f1a6dcb4e3c2

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 348b620ae203a1ffc46dd720e22fa62734bca3c9cd982b6e53980ab778294f73
MD5 235e940cb77886ed48d92ed9661716d6
BLAKE2b-256 76ccdc92cf0ba6c20828a8009e2d68b41cb74a290e95570faa8674dac5cb608d

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d9d4919467f6487de3210cc0ede8e38b0284d00ea6e852e1baf14792afe2b41
MD5 02a7cbf31b5276b375a17421586393b8
BLAKE2b-256 1806159c24931c5a516a83f2cd5949177f81d0670fff79517ed78be053a557ae

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f299b7ac5f2ca53c9568ea6517bb13c5e6fe9835fb1656f21e7de049b3f40858
MD5 e144582fae6c9240cdd61492e253fed3
BLAKE2b-256 90ba66a7caf41f49e47288e630885cafd4f5ef467a991e67eb4d5a132bb61e28

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5c7371ed99f66d70c4e35875d5d125364b766d73ad17417c8a1996e5075c8f56
MD5 03f05fa77a75317427407f3da2aaa78b
BLAKE2b-256 a536cafbb4dd933bf65464ea20e7604c20fd89a9a6fd48926af9e49b6c9b92c2

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f8fd0d6c5cbb748f38e8d78127817d1ee05ecf4bffababacff8bd495093abbad
MD5 efe304e5f4db4b1052b0321f08be7344
BLAKE2b-256 234e7df700d0f168ff7c267ddbd80a38736f70f67b671344ae8327f4ed277c2c

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16b31ab0bad5b96f01f68b031dad12d55059dddb6acf8afc29f943b67a8c7203
MD5 8f6b8f76d7fb6798772aa6b71f83a8d2
BLAKE2b-256 5ba25ae3bbd733d4b8670f07077c883dc476f90f21fc69fa4eefa3bcf90bf4ea

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 07975203e635acc84ee8491245a854bbb5b2295c46e11ab620583839a5a31871
MD5 4878f5311c90083df7a7894f1bde0cef
BLAKE2b-256 d8132faec77d2f3209f59af0eb25daae2e9bd9f951b901665630cf50716c3ad2

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2f3d98bcee7195f2029ac1ef91215f5d66037bb018a70f61f1d53bc3ea41c716
MD5 4a205d59da7964f37e569ccee14e6adf
BLAKE2b-256 a565c5d9e86cb980732952ad149d6252fea59c88b59a0fe99059e395995b6de6

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9ffc33f1855b3f9ba7128befb4bbf5e5bc6753483c6144c9d03d87b5ef7b2a9b
MD5 b4041bf6069807386520a16fe0ba9c8f
BLAKE2b-256 a72d018153856229572149fe05f635f61c8c3e8fe97d8da8156efbd62435a08f

See more details on using hashes here.

File details

Details for the file moleculekit-1.11.14-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7538bc93aa29cf705ee5654c194342000ba746604661a3d794d4e54bbdac1e4
MD5 0718c6f3bfe4dbe1e57d102a706d1802
BLAKE2b-256 2df986bb2e85d28e0778693c2e5447fd0fc6e0bb089ba74e6d6e7ba3a15146fd

See more details on using hashes here.

Supported by

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