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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.6 MB view details)

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

moleculekit-1.11.6-cp313-cp313-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.11.6-cp312-cp312-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.6 MB view details)

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

moleculekit-1.11.6-cp312-cp312-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.11.6-cp311-cp311-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.7 MB view details)

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

moleculekit-1.11.6-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.11.6-cp310-cp310-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.4 MB view details)

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

moleculekit-1.11.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

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

moleculekit-1.11.6-cp310-cp310-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f71f83b9d25a9224dad0f71cc3e86ed91add8f3114717f6f7f87c18908edb3ef
MD5 997d4031b6d97e04af280702ae34be1b
BLAKE2b-256 59505435e33f23c3c1a0ea3c85f2ab2e10e1749b0bc37081898032a24d621578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a22301e66905f49e82e2b3926c9f985fe83fc31b9a39d409ac173e068731a5f
MD5 9eaa5199e6235389888211ffe2e987fc
BLAKE2b-256 2b244a26a54eb10a3866aaa5d9e501bf7a70f3628088a85f14699e13cbb5d273

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0d5c4ec85f78ea010e79d91fc9ff712bd175e574edbe394fe4cb323aadf035dd
MD5 545565a21468e7b8939747e03d06e257
BLAKE2b-256 9b5f0e7dbef897602a8645d6558e0c36482fae8485a9d23d878de6e160e60dc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3556171f760839463e9e874e81159a9eca02e2d6f3a107203178fb85d7b6bd7e
MD5 ba96fe641c23aa9d0f42b766ca4af8a2
BLAKE2b-256 c9c61985025ebbe8ae9e3392eab83a4d376b0291900cf9b6a90b264cec5b5879

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bf050c11b62ddabd1279abd0e9f8d730f5b0b81bbacfbe4df4cc0eaa93599e2a
MD5 81116b193ae0de81d6a312f8184579fa
BLAKE2b-256 388292802283e019f239605f3a14e2e75f9489e8d56d95aae201a4cf54ecb262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e42bedc15f2b29a15b25e140db785635d9ddfaaa756ada71680cf05b59d149f
MD5 12424e2700790ef63da3227f61ab4d83
BLAKE2b-256 17197cabb7d5b2ebf8f769c1864515229b75179bb48fc2ce2746e8b56d56cbaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 73f60fffdb1f70155e190b57f528be1c530499e9fae5a1d5d379ec046d76dba4
MD5 2e602eb879553b29f6e38b1a9ffdbb06
BLAKE2b-256 9a9af79a8f67eee3c7823e6a53cdc16df343bc9b7e90b070745886fcb9dee503

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 587eab91079453b2aef43270363c0f972123a6181c73f0727eec9cd0a82954f5
MD5 39b2602a63568bd2c5208d0abbaa3234
BLAKE2b-256 248657b4f3df25eb8451040b9adf55bb8c572609e225926fe1369b39ce891199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 065597bfe7acb8daa0535e3e260b6d703373d6808a2636eb1967ef9f22c91e7a
MD5 a778c6e14ad7fc7d8f4fb0c8c92e91b2
BLAKE2b-256 60d847c4e7e6bf445a14ff34388f2e2a68596cbf7e591c2e0bbab33b2ee7630a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3917697da69eb40763f3901c5a08c70ed420709eb3551853a0448cb0f3b413ae
MD5 f5e8cb4dd7e5397e52e8d343f52f151e
BLAKE2b-256 2c59d589915734ddf7d419d4a53dca6b788072066bb9935719111e0d1720a91c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 27508b30cfa2c043ebb988e1fff32673808e7f4a72ba5976d1a5dd3ef5525025
MD5 cf8d9fe62edb70221740a2f9ab47153d
BLAKE2b-256 24fdb425bf27ecddb10391f24a12861837d11360fe946e9f1d89825315d40244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 841d5ade613b869b051f5dbdd478887350a6eae708f61e7d9f775bd9e95905b3
MD5 b5af94dc477081ad0688c519933246b9
BLAKE2b-256 a20fecbc9a5c40b17350c7c43df14da062cf8e3ef3f30da6f854a0e8d661d2f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e216e4bea6c7fbfc89da6a311de5243db6f642d0817e8527843a01901b4a6ef
MD5 0035813ca3b14e77ed28b0f2a0f4a610
BLAKE2b-256 692928318493633b15abd6a56b0fd8a84a900d7c1fd64ffa35b53e0ee2c6a336

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aad2d111b9b9c8ad79402e9ad8488f29478304480910779a35ced540dd490168
MD5 25ca7db73462a2bf30c5db91f269ea1e
BLAKE2b-256 4e117bc249949d0ba018cc3ec8fc52f6cd254f9677d75c3bd7fc114f35dce570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 780bbc9a0eb8c7ef2ee716cdb1dde91869823847a645b3d5ae025c8bd3b5948b
MD5 b76fb26ba452fb264b6db7901e967696
BLAKE2b-256 668905b108692785bc17636495e7388dd6b89ce71e1797061bae48892e38becc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c75a0bb7cde9e83d0ab2b98bbe3eb74773820038a767bad2b7390e46715fb0b
MD5 07fb4fef81e50ceea2b6a003a8cc0c8f
BLAKE2b-256 7be54fa784d36f2ee9ee0b3739aebdf0edb34987f665f782e604b336c8a0d594

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