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.12.0-cp313-cp313-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.13Windows x86-64

moleculekit-1.12.0-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.12.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.8 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.12.0-cp312-cp312-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.12.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

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

moleculekit-1.12.0-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.12.0-cp312-cp312-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.12.0-cp311-cp311-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.12.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

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

moleculekit-1.12.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.12.0-cp310-cp310-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.12.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (15.8 MB view details)

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

moleculekit-1.12.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.5 MB view details)

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

moleculekit-1.12.0-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.12.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 27c421dbf745c0db4275ccce8decff34783da116897ca8f7ba0cb3245bb51573
MD5 238643e3839285a34829d353bc6ac0da
BLAKE2b-256 cb1d38d6096b5560af4ad302bc7639041e21538ffc03efd949aec78e963e908b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 671634273b94f41b3b3d9da03fb3508222cf20490b8d3e774ee72c9e1e84a689
MD5 33dcc567475a5aee700accb75b07fd6a
BLAKE2b-256 dd6ba86dbf9d21485c29bd244ce45274077c1dae00ad7471ea916d2bfeeeb57f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ac23696b9f28e3be66763776be967edd33e9567201f23bc220bc20e7c01ba51f
MD5 bcff0074372dcf880ddbfb12596bbd4f
BLAKE2b-256 9dd7959e944c642fa2524ab14d3bdc3e2bef588e8bb400ed0f0aea15eeadb1f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4589c3d292b315e6c926e443e5f6a456bce536f2767f10395062ca5afdc175d
MD5 daf378c7125f7857f08f10dc1cede083
BLAKE2b-256 d9346cc17faba1251e82e2eba40218402a6020a00fa6ac6281c2894d44cf014f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 845c9916e37915813a96f8bcc2e03f9d394aa2520f2802bac8ba553aebc1aa94
MD5 f7fd21609067604cdebb509b1e56b66d
BLAKE2b-256 4de4f027b57e656b807f1f8956bd55f7f9215fe49d8e8b4a3e0ce5bd96580a30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 04e3ec4a565a588c47650295e729c92efa78e8184f67db6f8d22101c4e646e1c
MD5 769908a601df8d29f7a07bbb0e3434e7
BLAKE2b-256 4f049db81df46912c71ef0e9f0b06e62967bbe7d4e81c09a7b2feae58de666ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11c34b02aaf0eb5166890d2074eeb1221875df54a512a8cc567b7ff2a1d93cfb
MD5 54b7e8fe10a3422fe05efb017066da85
BLAKE2b-256 71f9e03fb6e860ea317fca1572f61d97a49a72e8d6bef1e2d2c1158a761b5173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22c7c75df37d79178714f705de35e586b3e4eee99b12a4fdcade92d03b5c44c4
MD5 09be96c21a0236b33d880199e93f449e
BLAKE2b-256 b0f1b6bbbd9345a4d9e19eeed9b7cfee4e37759f420f07af9e40b40516ab43c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 01c2f5c41ab3b190bbfff209d52bd7c9fd1ae2356e8eaeabe88b90ec5f78559d
MD5 d821030f6908c244e9d9fea214e36d37
BLAKE2b-256 18d95b340c9f1c8fbd5cdb33f143fa678e17df7585a4decefe54f72a6b699067

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 350c3987daba98427cbee084895d883a03f1eb0ef717b4eff215edb7776efbc4
MD5 c086c3a6f2916f0ae1e5003205762678
BLAKE2b-256 212030dfb1491accd9d8c442afc2a0a8a79ccb6aa955ef4d1dcfc0db0060934c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db19266e98ccabf6aaad8394e15cbe98490b1037138a81f23bc1e401b1a77fa9
MD5 d0e9b9d2fe94908392b0cc6e966a8c94
BLAKE2b-256 5ecafc3e6b7990519d36f31ad829f8d0583d491b2fd62b13313ce42c7dfe1d76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0aab3f3923307e76afbe38cdabf7587c85490fe844d2a479551025bfc7a06b19
MD5 e8aebbdf86fd42d67355b04a88d0b6b1
BLAKE2b-256 41c542ea7c68287eaf27f34000a09071e82697e01990c9f89ac6acafb45771c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e8d3e0b1fa839d0ffe2029cc8b56a633a0aef6ce1de3184ad781df32e72fd60
MD5 f60ca17a2cc75c7566e01eade703625a
BLAKE2b-256 0399cab56d89eac381984ec87eaa0676a93b9c4532c145c16d426591741ac7a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b621d44ab52210a638f5e2647d66f85e0b9515f5c261345eb5b811a3d6bff76
MD5 6848d779849a0329dd19e0e9633d522c
BLAKE2b-256 900aeaf53ce7b02e44fb8c704249dfb7d547d1212ec3faeadf0b3855d9c7a917

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5ea84413b1f2153d8b3312c34acac54f071dd05c7814a932865043d725cc6688
MD5 497c25f737f79c75cc96025f4c35b44f
BLAKE2b-256 96a6f87c1900a2bbc1221683ebc67c0c887f25de1763f460f88fa89a74e4df9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37a0831257232e8921f3f41053506ddc7774b2356874cc62c105e5e1d1eeddfe
MD5 bb3b9e2ebb5b385ef8366e71b2f35bec
BLAKE2b-256 fa7ac8007a3145dfce362404421752296e469fdcb0cd2a50d344fc62e9cf34a4

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