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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.8-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.9 MB view details)

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

moleculekit-1.14.8-cp313-cp313-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.8-cp312-cp312-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.8-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.0 MB view details)

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

moleculekit-1.14.8-cp312-cp312-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.14.8-cp311-cp311-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.8-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.1 MB view details)

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

moleculekit-1.14.8-cp311-cp311-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.14.8-cp310-cp310-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.9 MB view details)

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

moleculekit-1.14.8-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.6 MB view details)

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

moleculekit-1.14.8-cp310-cp310-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4d976fe3a21a467ec13d6f50cf3a96aae131d272b77eb3c5d94a546afc9bfd0e
MD5 33b958f036b64b5869ce0de621b358f8
BLAKE2b-256 abda2895bc51b255051d6567073d333d529e97a17408a164e0998a0a17b9cac3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9284132528c465dedc7fe69b166cc45711a474bb3bf02a6ec8aaa5a138bd3d47
MD5 cc6b2eabf05b1a14cfccf2a2eb2cfb01
BLAKE2b-256 fef10f301a97e7b0e3c8cc2fb9023e2bcd20e5102e011cd7d63ce4d8b452a1cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 64fdf73c7974d5447112a2c8f90d05531cc6d77e5bc060bf05a26739e0054f81
MD5 ca04e8a265ac3cd830dfab9fd7a0b4c0
BLAKE2b-256 d3506847180a83882ee13b6ed35f9d689bdf53f725a8d256e64d4a354ad7e8f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9343436ee097e152b2949696a0566234ae66008b5f965fca5b591a1f1ea056b5
MD5 0731de4bd7e1dde4870c5094a363046b
BLAKE2b-256 be08d302da6eccfe3d20b35d2fb19c19eed9ee56bf96d7016aa1a211229d0eda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e92363a8428cae356ccb9747635d5cf4bc63dc44cd08b4f9a9d69183954f9f4a
MD5 49afe9aac781b509b7e0baf5a6e92589
BLAKE2b-256 fc513156492aa0876a98b2a03e4b9053d5da39fd65edf6d5e157e56ec412b0b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79ffc645f798dcb33c8bf2f7989c2a54996f84fefd3cd0d30d97740d65cd1414
MD5 d1d2b145b520a6699e29446efa3d0865
BLAKE2b-256 b004ada366a9d8364092f1e4a5b5ff759acdeb652fc364450c3559258114f52a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a85bef4878d9feb9260c8e613a8c529ea15c61efe79f585534cc750206d5cccd
MD5 3893a79f687c8b804adc38fca7d6089d
BLAKE2b-256 80d1db9958c9f4b9a71526e5b98ce4d39c3468cd10f5d04281856ac1f9b85208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e5e49b7882687fc222485d0af7c9fc90f1afe3e83e89afc06d2fbb5749e5988
MD5 d6f693e5a76e568d96d974a978b16a84
BLAKE2b-256 0b0e0d4b76dfd3e9e56965aa725b6e38f8c2c115538fe372eb9772a6fbf0bc53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e16b8a442b6662b7579ba2ae68001f349b85e9d94a36a7ff92050a55871da1da
MD5 0001f54c2a93309cf26a7d53d2c27696
BLAKE2b-256 9663a31fc7d5cd38cb6e894ef88cfdd54eddb6d151d43c66b6d2acaccb361a8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 25f5adb057be4cd3a4fe5f6f608c67de117936e2ad1854f8566c74043446a1ff
MD5 5b7b73c4ca92649d04a98e0ae5ee41d7
BLAKE2b-256 d43b9f582f76045e5c389a5d1e2ee1aaa583e9e16b600ac5f220b30e9f46f425

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f32a9fcfb61d20714a35814d8c0874b0dcd5d62618d45543f2780bb76864c89
MD5 c4454c9ea3f663b727e8640751107e3a
BLAKE2b-256 b6db3a6f851115f1c59fb7041544f08b2ce5d1d88062298fe652e0b4415eb112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fac3f7bafb31bff066dd2b71ea11581712583b34d4da417e6f22493a114e5be
MD5 477af43481f480b54655fc6f9387c583
BLAKE2b-256 d681e9f7cec5e4d5cb45e14922f24776a10e87769207e7523bc20a9a9839173a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0e909275eb172f9a1ddad480e3517a04e1100a1119b544cdb89cd7851a9c1ed7
MD5 fcf24447c94b81ac67a467715b125dbb
BLAKE2b-256 734b63b4358d55130e7aaa9671cd7a488644ab00f96efe54a0cae9536f1cf1e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2fde878341a5ec3fa864217106da57114b01608cb899c868e2fc1914d4fafde
MD5 83337503a859b192232ec9f473e1127f
BLAKE2b-256 fd25dbc2c5d770b90ea61fff8fedbc38a172f622e8bac6d7178922c39039bbe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2eaeea6f94bab4be5795a3821142cb551bd4b6445cee3d8074f5bca293ce9495
MD5 12544460423e43a9d70b87fb495fb5c9
BLAKE2b-256 8ee4eea2c232d83a92568efed6e038246c4ffe10433bf194bb2b5d9f6a655e48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95493eb7be80d8998bf0e7d96dadb036d83ec82ded9a58ae6658519ae4632868
MD5 6628ad949adaf31307e791028417c112
BLAKE2b-256 7e3a1fffe3e83281bbc9078f22c336db3a2c99e38d66d81bdc115e7ecfa487f3

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