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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.13.6-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.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

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

moleculekit-1.13.6-cp313-cp313-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.6-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.6-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.6-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.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c8ca26ff9de9a6e1b45675f0f9d0f1394fcd4f6a97071880639a59b92eb641c6
MD5 fd5e1040d5a85e465482ae8194a4056f
BLAKE2b-256 fc5446bb10a9efff2c5fd29ec0c6da8c7df1a0061b0071ad033b05f870de3833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 edbeaa1f36b466fe3737f56157c4336624c2739ace40876965c652f33ca5f4d8
MD5 482ff19a5eba1618007547601093926a
BLAKE2b-256 a311d4da2774478b9f26a5fa4c87e625a12d0da64e009af6d5e33cafbd9f0227

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d6b425e21a29ac9bbc9dc9fd6e953b88d996e38a1ec7971f50a32d1afcb5b696
MD5 a51428f3060fab788f8706a740df8710
BLAKE2b-256 78919a4945c73360acb6f2dbc8da3e478ff41427088ab7b1f7ff6d13410912cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75ac23a0f84ab270cb0b32ce6175a4f063e8f6a11bf544074bb463eb127e8e2d
MD5 3c5ef6d229f57018c68ace05a6781024
BLAKE2b-256 d3e842019aeb47aa3b8a51eaa044ed676c087d56e934963dbb1f208760536278

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1490d13d88bd717efec03dfea3066b0fcde81479de6418a5e0c1d37ffb00cf58
MD5 9daa56184bab8e274eea779ae80b2625
BLAKE2b-256 aa60d4a8b0a576690a40c0e6bc93979a7b7df726136a9b35e4cfd052b1bab244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee14390023ea85a5d7588eec4b039ac56c9f97a623271c119a6561cfe61a0270
MD5 742ba9c7c0bec2df02def4f5aff53240
BLAKE2b-256 c85771f5a041fd6296cb7252b4b57d86d51748ea806f2024c9e4e256b61272a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b793f3005f8635f2b9650e0139abd74bebfecfe20ae9d01ffff747e776add24e
MD5 2dae6bba01de40e19e9cfc1b6e76f3be
BLAKE2b-256 6625930f32c00024d4af72a4e95033c5e180c37a48b87c0d9a24e25e13a7481b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2962d76d778119b85ae3618e3aa4b902bf293ee8bff49362bc730ea35d6efca
MD5 1049025dbb0f547f79e8200749ea3dd9
BLAKE2b-256 bd2fe8187d063beae45b7b94025e459290338adc866744b3f00a4436e9ce58df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6d38b8fb0adb821b5b08db5e2e13e14da691530ac4edf00f84894345bf35f03a
MD5 cb2acf4f5434d62db6fcb83c2505c255
BLAKE2b-256 f8b11448dd55513fb0206bf528aa3bf09305caf4518656557cfe0e86b05bbced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c57933106da157945124610b4b4709ac8231583ea88b080d7abdb21addc64c45
MD5 10ad3c7652d0a984210b82f11472f9ef
BLAKE2b-256 9cb08aceb059bf9ab91be3faa9a9e2af4659f6a3b07e8aa96e645a498ec93e74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 77c51ba7babf9ddb38d621e087191dba59e8fecc054923f11861d1a3984a8323
MD5 a868e3e3acf2160dd1f9a3c5648c5973
BLAKE2b-256 f7efa0e6d74683d460e16b809dbb2a9ab326a53f763d41b6e1d56e9ffd44bc76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f83abe160ee4a0b0f9b67967ffe6c6d7adec71f8ffd6c0447da1c542f0710634
MD5 98c0b88dcd303318cd5b2fe4287acccb
BLAKE2b-256 2c8f86690d52c0a9f2cddece4f6a734ed822afb98548dbbfd802c3487cd28229

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e509df79a5013befc915352f8f3e97c5e38d58a0fa34b372da1598ec90af421e
MD5 e92e813765f3dcb8a3d5ef54deedab11
BLAKE2b-256 789b3ea6b71d6c96d14c87c479f77682cdea29d5e711638beaa7d9c7ba3d6aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb2562c97c1840ffba5482b5b47b0f7c2e7ce6e60e7b56f3e8b49857fabf7c10
MD5 f7a49bc0abd54ccd57a5bed718fc85ba
BLAKE2b-256 fefefae3a1263303fe2e9faeaeec930c03f8a5b8180956d537c8ae5419300c62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 beef02c1dc8bc75e6a8609722c7f54c7b29758e13ae65d8f123350e2e3b27e6e
MD5 c3215d3505a8f50c76b5d35bda080c25
BLAKE2b-256 cdc7ee174b987804eebd566131ae576cc487da169fd25ffa4d7b0703f2c75b2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdd541e0409591c598d1902790d17968f960294ed1fc2196f055bc566d4b7d7e
MD5 cbd1f5152e0fc7db489b382dabc80636
BLAKE2b-256 5b8cc62a2fe6e2d214ba949a0435d8159148a5041e2aeba6d1996afe18e967db

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