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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.11-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.11-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.11-cp313-cp313-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.11-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.11-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.11-cp312-cp312-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.11-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.11-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.11-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.11-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.11-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.11-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.11-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ea64fa60261ad28ed71abafbc73df038884c89edd758f219360ab331121edd9e
MD5 1af7126f3c334377d2400800f0b47c0c
BLAKE2b-256 f6fc30c72965703e652cebdfa812cff3e2a38895896444bd15cecf5a50b48142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6547262dd3cd53dde05476494c4347828e9ed24c9228ede8039b3aefc6f77d13
MD5 21c23a6174557201c5d64995eafedb5b
BLAKE2b-256 6e55d0d430a092b125ad932d9a74d2ac9d838ff5830d304c2dd5609862cb31f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f164d7baabde86239f41647d135a8df47cff98289811977579d78a29b3e30940
MD5 55a41bd2024ec2b69fcc64a5e6854e50
BLAKE2b-256 06d51475f26c11187a6d8a55527bb4e30dd7375679bb5d274cc3e7f1e59630ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf7b6288a39a4e57737edf570388b2d40f73257ad1f78dcd7254efe7dcbc09f7
MD5 bb931b134c5f2a91255a80f19ffa0e56
BLAKE2b-256 017f8a5f27ad0b2cc010247e2281a5a6b2555a2f5414970e25c79f5da4444b78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d9d90a06fb0e52f7e7ff86790f999b28ab80c93361b6f5276e461ffe6ef0b2c
MD5 f0db7fdfc638af35a180b385c3300f54
BLAKE2b-256 0d374bbf8296279457e20714d40213074c185e6ab5e14f99d7199324e7d26846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb7116a9ee8cf4e356fb6da1015fffcb4f9b883f792eb0f1bc0b8228db3bf6b3
MD5 44b8bd05ef20a5e65d6b2f5b3ef13e12
BLAKE2b-256 3d143996801ed6d5ef32bdae3224e663a48bbaed8b65dc64ebdc4555cc18b9ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 45bf8e8efa15258133b5e2034b210f8737145d096dd9ddb446fa698b2748f6fb
MD5 faf85033f31c2382c8fc285cc2f470bd
BLAKE2b-256 228cd6e876e25535a77f899e29f106aabddf819dd7591d0637880f33500c0574

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0082da3dc81c19f1130d8624f334317bfc57da8ae4d916434938b0cb697fb501
MD5 f6b996d3543718b7ee53747d51e6ccd7
BLAKE2b-256 b2a755632be52a93eb60279ae61fa43ab98042c473ef681e31fef4dfc3d17c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a321cbc37a73ca6d23c371fa23e5f2f390bd9822c2b205538bface7e48660b6f
MD5 bba6f509dfa1ff27dfba1a666e264007
BLAKE2b-256 28616efe259d5aa4f1ec637b9b22e6df784413918850524f87ea7210abc07493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a76d3cc17e7fe7fcbc68d52bc4b92a1875de7dc74631777d26e94391f94a87f6
MD5 e824807636e42e595cb7b6f39738c6a3
BLAKE2b-256 afc5675c6e38a41e8533a5944b4b74017e72c9690acecb8c7e6a0b8ccfdcc4b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c901efb8c76ae54843058eabc4bce48c4c931708e0991211ab53c401f6435ecb
MD5 76878a0b7d9596f5b70d71a4558aab41
BLAKE2b-256 83aca4f1dcb1157b79dc74d05c79f8771ef64acb7bd302417cc69c570a2a991e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c2296b5d9f0a7c2f725c8d6254cf3242e10e8244dec8707718a9361dabad2ba
MD5 9fe79230ee1d0beb836ebabad5c44e5b
BLAKE2b-256 444278b18d098aecd74420ac7200ae216ad4f37d1e6bc6042c6aa34870ef6037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a8f3d5fdb6d688d2615bd6f8d2c8d69180431d679fbfc9536c223f2e51a2f0db
MD5 e78ed7b304d7891d0f88fdf86b818f2f
BLAKE2b-256 d87d1dc71a4f7ee31d507b9f3ec6d03ec73b3b46046a84dc8cb9c03411cc734b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e26b4d955d98da70a5a1359378f748781d58b89db86d836123b580ed32a44b0
MD5 88c7aaab6e6d8a58ae2a34b42b73422d
BLAKE2b-256 5e260fea1d4616480fe329de8de36567d99d487199d48c84445377d38797ed0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ac40847efc7234f35a106cde13f3e95896201a8bfbe0ed7c7a0fb73258815e63
MD5 d09b6907e188f7780e03cfebebf5f2be
BLAKE2b-256 ff6a31d0ed868b2e5b6c04efb9fcfe01e3d62626f2f209344d298db6aa88f6a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08f9fbc1426c8e3ea5bc973c6e022c768d2e627406b81c25c3dd6187c5f96aaf
MD5 f7edfe2eb7dba4925af5970d24d848c3
BLAKE2b-256 8621c15aca7606ceb2ef119593d81212be629e1b930c0db2f71cb343b15e24fb

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