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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.2-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.2-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.2-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.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 84b9af16448c6864f0aef50279cc7624ec5d056e7838138b7831872e17c88cd6
MD5 64a5e8850b9c327ecbdf54086eeaf221
BLAKE2b-256 6f65be27e6bd81a9d28ebd73c0e3627c483a0e573d4c7aa285fec5f30bf254be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5e134c57c754ca913b58bf9e4b601efeb8661cd9a63d42b53afbcf32361da30f
MD5 bc70e31ff751a8ec7e03f6f49afe5ba1
BLAKE2b-256 11f3522a1511ea573e5415d0a80e19deab988f6ef2003160a59b173814b5d93d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 57f895912ce31d4284560867d9de1e328e9fc69f58ac38b448e88921740ba497
MD5 3f5fe5e0f097a84f057c65fddcdabe56
BLAKE2b-256 f52e53d391782b06324988df3e674b5c0bc8bf13aed3f1a9e9102847939c35af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11fbdc680a0c1722d2235a2d518eb4007ab0e207f78454be9d33ca886998bb49
MD5 ad95f51fad4fcceb604313cbe88dbe32
BLAKE2b-256 c1d2bad998cb73df36ccbad9f05614394327388c36faae0bda05c02709c58f65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b9c59e2600d7fdc2ce7a4114f6c44abed78a492e72b4feab66120c9b792df26e
MD5 ebe9e5d284c8e3043e0bd1bad5310fc0
BLAKE2b-256 3a00ef87f5165566465af162d4fc890a9e677735e12d7bdb7fd068446f1e6631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1b92baf0143a370e306874778359a453735846819eae8534ec58bf278cb1df8a
MD5 2d6b0734d46133e4fbcbd4c328e647d5
BLAKE2b-256 2a0eca9435ebcdd274ab24488865cced215625798af1c91709e5c09635bca2f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50abef68890192e4d4813dcd201673e88b3577e8792b981c8c6e511208a76577
MD5 4036a8cb876afb16e609d3980b1c5317
BLAKE2b-256 53fa08ef89320e1e11e1f6b70f3458b075ae8ef442feb75f9f5c80365ddfa952

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78ef23f401e1a8f95dfb177d46b8c5f1d63188ebbd2ed33eec601ce4c50743ba
MD5 9e957d0c6aed99d8c58f1177ffb8d837
BLAKE2b-256 7aacb1a230ee0ab883bf0090c1a428aeaff6ae3f7b09897bea7a050cf692f7a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f394403e2dd0bebda71a85f93c4f0412a382359de4b43f36db03d129a98d20b4
MD5 83bf9a1ca84e69e763a9a21fea11e5f6
BLAKE2b-256 413c09313db5e2d60721e569cf2d9ecae5484a43dee0c11eac9566f236bdf01a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6bb0d44c1bc0db7027262a4f551fafd2c3a4518af28162baae51a02eb57967c0
MD5 dddb43ca11cd38e5f8f53460a0a67988
BLAKE2b-256 89300b6eb62ecef777ae0d678b7bf466ca9b6e7f5f24d50136093b08431bc850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0a29c10215d729877100735a95b734908cc58dec8aad8d32437aba924010273f
MD5 29719c856d6923dadad70a18bf9be6ee
BLAKE2b-256 5716a0f5133f9cc3ea1902a3db2290bd2bbce406e09e956c22186e71c2519996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 289ae6d8cce473bf09d1ea2d679aa35e7f9c6dc90bd5882f85fc2e0ce1e1679b
MD5 22ea98479064a6befa89ebe19455d343
BLAKE2b-256 e7794fe290e759d764b348eb8c271083b5d532ebb2b45c666de80a9176d85718

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a71acc1e1437123a10c9f36f77487c68daf23313b024bb818724929c44abeed
MD5 31ab967c75fd09175a890bdf4afcf169
BLAKE2b-256 b59513bc7006a7be7eaeffefd123a98b81ce439705bc497653a973aff6ec5988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74dcdc38e3e824d03658113a5c761fb52942c14a85a119655af71801d514ed9f
MD5 3e7e49b348d9c573e74add9ddd51771e
BLAKE2b-256 64fbc25732248b4bbace692ca4ec70a5fd8c999bbc81ae6f397bc006c7c12f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 980baae9612379874670a2056ee7652e31820ea0548cc7709f3f953b5eff7d7d
MD5 2892597855550950886ff2a54ecf8371
BLAKE2b-256 efbb035a9c64624d4807ef7758c4b510c474d1e074afaec386c1a1148156f52b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5340e42b5a8502d7daad239c201034a9cd7d49061992d569d766dd1a1e69ebdf
MD5 37443eabc536268fc579aeee73e4a802
BLAKE2b-256 422a9b89eb5eeb6602ac4c75d494cf8edbe12749286ca658c361ec7041fd4272

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