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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.13-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (13.9 MB view details)

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

moleculekit-1.11.13-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (13.6 MB view details)

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

moleculekit-1.11.13-cp313-cp313-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.11.13-cp312-cp312-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.13-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (13.9 MB view details)

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

moleculekit-1.11.13-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (13.7 MB view details)

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

moleculekit-1.11.13-cp312-cp312-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.11.13-cp311-cp311-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.13-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (13.9 MB view details)

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

moleculekit-1.11.13-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (13.7 MB view details)

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

moleculekit-1.11.13-cp311-cp311-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.11.13-cp310-cp310-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.13-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (13.5 MB view details)

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

moleculekit-1.11.13-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (13.4 MB view details)

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

moleculekit-1.11.13-cp310-cp310-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b512a1ac6704e9def008e409e57a4be2987fecae73b9c48f8f5ee36ca6a9c1a3
MD5 72aa9ca4a970d2d4d8daabe71b0dfa52
BLAKE2b-256 0878f505c769feb3202562bca9228f3fa80f91bec9a509426ffa8c8f9c27230e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ab7c02d145ad15ed26af78ccffd3ac0b24b88766620179d64d3513402b855a2
MD5 fa2f81e6f51f8d9d32802d99db187c43
BLAKE2b-256 1624c1c073f9a33f2935b824c8fd0a9a4479ca23bd04d6184496b5875d33b84f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 626308dd96981f7434569bb1d73a91cf03edcf7995e61c0025c793d9f0375dcd
MD5 ca2cfc09c3e959bc806ac23935fa508b
BLAKE2b-256 b147bf0c8aaea7263a4be0a696a11517c905bd094a8a193ef4d6ba8e63115803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17778fe494f02e19d9206d236b62258a2e7caf8b3ff6f98a5683454da3c3185d
MD5 a6029fe5a0b565416813dfbff3df2092
BLAKE2b-256 6ad962f24efe645ee66a1b59ad4c2e92706957633c64c0bdff45b20414bd82ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9fcceddeb615215e14a60d8df8bad3ff2deaff229dca007c493589dd43d2aa71
MD5 9c4297e8da7e0fd07eadfe4d4aeccf64
BLAKE2b-256 86c31df307c5a4f00a045bd09085ef54f03f239b0a466396b21396473ee52925

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0d367779773272a69312e8a25287456cd50f22308c0468a5ec3aff9e9f53ea3c
MD5 01a5054bd9f58c4fa0b0b83cf98e646c
BLAKE2b-256 8dc5cb761c9cb266d4bc4e10bab43abc5c4b50ff682535121ce9bb4e1b42bfa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8f3eabb4e44a762ae1ccd3e5802226c9ca3b9ab4c676dc989295edcaf6493332
MD5 e8c878d58d0be414fd04fa4ad3ba9d61
BLAKE2b-256 79882bde756f7b160c50484702fbfb820b5dedc0216efb39c4ba179fb16ffa24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c82bd581973e7d091b6a29ac7f3757a2507a57f196a4f7e2b6f82764422d6f8b
MD5 91b81704a0d00740bea26e5a48d77149
BLAKE2b-256 e95cf81e16d2b6aff291c099e44449f363f451870121edddabcdc12fadc392d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ece3e555daea8cc4d38f92bfd039ef82df206912247dee62022e8c0f4f7b17fd
MD5 34aa692fd38a1b3c604717faedc40e1e
BLAKE2b-256 86ddcd38823be3b8065a6a4faae9b8bcb9a05560379d5959b9886ed710fa2063

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f15fb0989f999329034c2fdbf3da670f56ce7dc1be1bb9f09944f8a6d0074808
MD5 ca85291de591a5221d823be2dad58ceb
BLAKE2b-256 2c4798756d861577f2acd0c4ec41867ec8cbc61433aaf9ab5bf2a25d1d9c91f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 955ed924cef95751826d85639173b517f2ed3c141bf4063f4d2b2afc53a7430f
MD5 d9e6d4cfa1b3166ff14291f76f39539a
BLAKE2b-256 802164ef89eb63aa463cb5cfd2d338efb3ed20a8dee28a42171aed24759bc1d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16ae3c51e9b5b62491e2d1ced99a3b5a3a0e1840bab6ecb8c12afee0537f096d
MD5 c19d94092a468945a1cf9d4fdb5845a8
BLAKE2b-256 cbcd5637938cbef15d27dad58d121db66abbb1f9f0b486516d02d836a4691eab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3dc3d2864a1ccbd75f4fcbf0538e87bf3eb6d5db06c92e95838356e6a7859ea0
MD5 bdccb225d984483006654cb51a9f3890
BLAKE2b-256 920c08e0a37602be857acda7be14e5054ed19ce377f212e0fba09650c7c2041e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0913f58a2b3100955b3a709b2615277dbe80fa514ce3f81b0a4c5fcb690517fe
MD5 b5073d5601e414f477c7dec70daeef8d
BLAKE2b-256 99f4c885b2b87f492ecdfa6209a034d1cc9f9ed25d04daa96289b2431ab9ca6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7f4b3ccd3fccde3049cf9fd1fbafd8e13dc11e73af38e3f9d1c13cc7f937147c
MD5 076165e7e2258d93fd2629af1d0705fd
BLAKE2b-256 faa323de5b21be40abc6b29f62146be436c5bed61afd82dd88776be19051c5ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 345606a345c17fb3214a6c8f046d6f9e9dc05d296b6735d3b6ed393980072140
MD5 4afde2b343da6c0e0e333160709e6058
BLAKE2b-256 9ac368e4206068aef02c849c2afbe512ebee3f9ed90985b554b65004ca2ddb52

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