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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.13.1-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.13.1-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.13.1-cp313-cp313-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.13.1-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.13.1-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.13.1-cp311-cp311-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.1-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.13.1-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.13.1-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.13.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 07c43c1edf7e9706a7894b92b6e8cea5f627309bb6990d3281feedad25d86157
MD5 56262b5bd63a90c9a133820800fded88
BLAKE2b-256 f0338b2f7f9ae952cd74f454886e066ee614f86ce5d36fd41340520ab3df8631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 218926966935b17040e3ac9083e4eee7f6805b39d4ec00ee4356c0c82f801975
MD5 6d97aaf48b122a43779c9ac1dc87f7b3
BLAKE2b-256 aa62b1e53f6002371f906748ce803b4b8dd95c377516827d6aa98995cd805e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 712532c4d3484c347b9d54563c4bc08b27ec301ee63064f2bbe2a70a880c4797
MD5 27e7c9a33a8082abdbedceb142029cc3
BLAKE2b-256 22c0142f4686bdf3cc7b802c4a81e1edb891ceec4f91d6fab61ec55d8c810ecb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 126f97c0c2e6217e6ac0f3f529621f8027200ebe91784ee28e4c5e9d21e74a9e
MD5 1ab5560314cd94248f000ab8a653652b
BLAKE2b-256 f14e62f83cf98712da9b9b77c175e226cf2b479312e5cd5435801be4464602da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 076bcb309d3b0fa8c9472eb6455929690e09eec51228b6957ff57ec6961f991f
MD5 6aaeacbcf10b6a4f8a058f7fdc62a9fb
BLAKE2b-256 3c56004cb8c790b2b2547648e0a26bca206782aafcc7a12420cf6da4b01044c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ebbcea7070ee609402d0f9e61200ee1a63ff1440add0dc6b54c6ac7e205c37a
MD5 83d29fa2a2f8e27d49ee05d7d3df91c9
BLAKE2b-256 31383022823fa6a7bb0cc90ab02669d8256bda443876e9a3f373bdeeb7437f48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 beb1b15e1407c2e6ac80de2c89cb4f3ba4a787ec816c663a5ab490d6340f417d
MD5 64adc1dc80f8eab3b190c1254ce8adbc
BLAKE2b-256 25eadb64207d5576fb0389ff30dcb6746022222c2ea043544ea091d01c28fc56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a46d2ccd43f63253adc7d909ff5c26272b71a0b737252cbf55c403cb01c655e
MD5 b9c4016f5541bfd0b04985314ea9e0bc
BLAKE2b-256 dddcffe5657b855f0e8eecf0548bca32a0ecc8bf04f573f1b61bc78ebbcc7fa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f2e3aa9a83f4439c3e6844245b1587e2c22a46385a878663cb12126998079f9
MD5 b17d26f6dbb862a44da103f01cf524b3
BLAKE2b-256 06a5a7789edf3fa87f46faa191282a9909c37207f15a15944db72984e335fca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2bacbbd2c47639bf418b9f6b3af7ab89ad9ccecb905a67ad3604eb340c3d1081
MD5 cc8ee31f6bf8cf899651a247f9817541
BLAKE2b-256 ca4cebbad312ad69e363a310b4a1bb6549be76cc3fe06c2577275c752e1921fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 067614bd07802d5905b101803a96fb0cd6065c0f963546377f05e003872873d2
MD5 c6b2a4b620995ec15a24493adae9b497
BLAKE2b-256 d48f7c3db0430dbc46e1d92b1381992fbf23284d79bd00718c5104ba76ddc97c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b22d84777dfdb009c8579aae803802dd3a2f5596bbbe94d6d207423d956157b4
MD5 af4c7bb1d73ead358a65c331112f7079
BLAKE2b-256 537207035bf127e506b9e4cd936a84ea7be334d2d8a0c7f8ed1f8f554c8304b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1e49b59c7cb7220b7a749ff1e3f06b5b4ff780b5a99bf5d433e14ddf4bb0877
MD5 3ce6fff622ef9fdb58dfb9790b372311
BLAKE2b-256 e5980c26696b99675993879a2197b312a98dd6307ac3b0d96052a92c04f60293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4fce34bbf0408f38f84e12888cb33f00e578bb67113bac8b963e389ead798487
MD5 60f03cec5f3cc1462a90152bf9ead0ce
BLAKE2b-256 7e67a71678a5d8550b6ffd3cfa3442a8f424e56d3659f4e701172ac2d77d7aec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2b3ed064ddc9686dfcb2cd6765eb1c493c9c5eb4d730367da463c848e70049d0
MD5 04a973c6d4e2814d4b0f94fb2f4ae47b
BLAKE2b-256 5ae937dfc6926d33b2c44196284f42b858088b5d5500ea82b36bdf112fa3190e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 760873781af0b237081c8586f20d01cad90cc76f886e1e6532963c8a127a9e1d
MD5 ac9047d46e1dbb91c0912e5374a47e4a
BLAKE2b-256 14e413d3bfe611ad29bf497386794487a231d79767b1cbba91d618ed183d5d02

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