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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.5 MB view details)

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

moleculekit-1.15.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

moleculekit-1.15.6-cp313-cp313-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.15.6-cp312-cp312-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.15.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.5 MB view details)

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

moleculekit-1.15.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

moleculekit-1.15.6-cp312-cp312-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.15.6-cp311-cp311-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.15.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.6 MB view details)

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

moleculekit-1.15.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

moleculekit-1.15.6-cp311-cp311-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.15.6-cp310-cp310-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.15.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.6 MB view details)

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

moleculekit-1.15.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

moleculekit-1.15.6-cp310-cp310-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6b04f41774f22fdfcfd27facbf1955e6f4af99b24076b22f91cf1e3283608897
MD5 13e5654e9f38870608a94e8ee922c1db
BLAKE2b-256 14a4ac5adc560fb916794134437229d013ea61ee7eeabd88c4766fc0010d6504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f97bf68d9bba310a00ca757a0902c353fdce49678d4059bba6d473ae8c29da22
MD5 3a0aaa5f12b1c47233d8d4ec2cb0b5b6
BLAKE2b-256 77f619b32b6f8436c8ccec3ad85f4e093d2fc375e625c12714676a12b92fdf6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 68e03588bed7e8efc0a7209df01e6792a26a0569a259045014de820eb5c5abd7
MD5 895a9b2aec567e115f978f55ff71e00d
BLAKE2b-256 3f1daf2c18532d71cf9973b0810ae9c5841ff1ef5645c4928530d1d5fdbaaf73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 153fc6b89aad2161f2b472000f5667eaa46a4da9016756188361a4fc569e42c7
MD5 1121a8882374b6ead7171d20d0645a4b
BLAKE2b-256 bbe73430f448bf8696cfeb7efdc8c52ff0b977883336f3d29185181ded0892bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 686337e9dd0f8e9f761197322993714d3e84c0df1bea0784bd0217c655bf5854
MD5 62d489ace3008c16f028f43959ff7df7
BLAKE2b-256 0560d01fe26d06468f287a4d2a81669a5f93346fdf4c44ed99757f94c98bee5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e9ffc5e2359fa4f0f672f7c5f03235d5aa7443576032b8f13176a2901bcab65
MD5 e686a963b33fddd95bc2a6f41175ae6c
BLAKE2b-256 2217742501d9f11899a111a0c760afe6663d4e96ef3005acc02a90c99d80b86c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 76d5f6e0a9158ef589937150267d897fb195318303bbdea02867c2bb60fcc896
MD5 90618fe39fb2ad01a1d05f790acb0cb8
BLAKE2b-256 bf4c9ac445eebe0d05f013eb054fdace8b3fa69395031759bab32deb14b4f749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbad9d9e04a1f9a5cd3b40bdc5cfde759e08ea9b2bd6c51b994305c5f44592f4
MD5 64a51eefa73bbd2925382463c5048384
BLAKE2b-256 6727a821e229a246167313e1ac6cb5b6618e981e7e21fcfdab5bc475a12df09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6f8628f1555473ac0f8baca40e218093cabd7b8bcaf02d4d3535d1c68520f4de
MD5 fe323a9c340547c98df912bc35fc5662
BLAKE2b-256 5b0a2646a570842118ec17b49d58585340354fff70fdcbb1f78170d8e0da97f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de8456d395f0250a17c0a989bd41ce1bd2f89ffb63ad52a6e4d7d474209b3dad
MD5 003fd4da837023efc17ff3e54edda9e7
BLAKE2b-256 c924f8ed732fb1fdacd8d4760ffc2de237c5b8c24d32a33f46ed4b8037dc5210

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d5c37404e9404fb34a4cae045ea822a6f19d7fd9bab1354b5249a3bf54624c9
MD5 32e1126fed3154b663dc63036b574ffc
BLAKE2b-256 01e40cd14355c1642ec9fde47034a3d7d00b65a8699b2494ea2b5398cc48f4c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 faab531866de969672f06ee4e8fe4157d4c188d5f89424a0e7f92c26c4160394
MD5 17ac4c1783be6f386729a7d0ac9641c5
BLAKE2b-256 f16b6cbcb1f99aed99855c5ea94e74f3f037301f2e6b28a3294dd4bbe5e5f0b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cfa0c66b0fcf85febcb2426b4afe11e5670086aed40dfd31038629a4d8d31e9e
MD5 6b339351fcf767043892fd6f9b512116
BLAKE2b-256 73ec0ac5dad6d09de8602ae037e8b020827965a2651e7b51fd6e22c5568831e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba30a74eef4c69dbb42086c04b1041a9af9a1b05bccea21831db58ede36dac4b
MD5 b6b6050461ae2c0adf1b86d82314ad80
BLAKE2b-256 084b64b8dbe1b3a07e1548a4c425cae8b84eee09ead59793475dff7ee15dafba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ddfa217223820c149f21597c5d89d55f4890d3334296296be6fb0a3d2fed1d3c
MD5 cd3d2e10fd8d37a289c0522212a863e6
BLAKE2b-256 42bf41566cfc427ca78f92a635c2d31bb0e9fe1e7c2280087d9a69043f9be9a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b1583210ba59abf6c0b55fd20c9849941d77cfb1c28acadd47bce041872c55f
MD5 09652ace38f3433587e1ec0cac2f4d00
BLAKE2b-256 d51d2e970ea583b70884e6913cfc52bec9bc4944222bdb9f15675c31b7297974

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