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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.2 MB view details)

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

moleculekit-1.14.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.8 MB view details)

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

moleculekit-1.14.0-cp313-cp313-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.0-cp312-cp312-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.9 MB view details)

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

moleculekit-1.14.0-cp312-cp312-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.14.0-cp311-cp311-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.0 MB view details)

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

moleculekit-1.14.0-cp311-cp311-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.14.0-cp310-cp310-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.8 MB view details)

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

moleculekit-1.14.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.5 MB view details)

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

moleculekit-1.14.0-cp310-cp310-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 35e5a973830ab3b87b8fbad156ca2257eb3a8e9c0d2b036ec47dc62fa8f5309c
MD5 518018199620d8b00f7850f67d0695bf
BLAKE2b-256 307091a411f5e7cf952ddbf1ed26524d630d0ac08a46a4871b34cab0cf5932ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6d5abecf8f3db8ab6e275362636fa31e26944bed1c7dfb379bae806c5269521d
MD5 6fd38f9881c8b5e84252d4c48fa7a7cb
BLAKE2b-256 80c84398e67ed5f96b10b2248ed473e0d095172c958b801429b7d612a883479b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c9da39e00c17f72977017b4785af5a65a7b5aa0dea7563d87e4a02aabb0713a6
MD5 37ab46253b498832e257a644262dda9b
BLAKE2b-256 e662f7f88d5896bf11b23d449d3aade6769b304240f79b16f5272e1e262b197f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a28f5630df86667c6c4da415d11e03358e818af6b1152ed37aa372a39a4fa304
MD5 5ed0c643307419e5e69324efe36646f9
BLAKE2b-256 420a6f147a75813c746ccb5f5d6a824c52620317f81829894f4fc39aece1a5b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48140cd1c3a2cbfa35a41abdf670c834d4d5ab241813c013b34141af014c210e
MD5 f8a37b3063f924941485408fc26f7b77
BLAKE2b-256 b8c8e26d8f220a3626d56c9dc696b3d854cc216737b9b5ad994880644ec34b89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3688f5896bd5abe6ca607849812e799254bec792bc2a998ff56cf4baa19d7a87
MD5 63eb5a134ca3f765a1c8a80102202651
BLAKE2b-256 f8c12bb7f13b374d672864ff63c91836576c94cf3351133612941755350996ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7a10ba7cd9afbcf7129ddbf2393da100c367cb25327c94ef1b115c74445a9133
MD5 69ba81bf74808f5518888d6612896019
BLAKE2b-256 c219a6f11969d06fb870753ddfc9d67fa23dd85674e74d66285e1fd8f9c16340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c9daa5265fcc5567cc673a101278f4ea7f8cc365cf0a572a967bd1df508374a
MD5 931a58c70796e7d699a2991b1caacfb6
BLAKE2b-256 44ecaa078edf2e3a46f693dd93ceec21205e4a01b43e195c0a06d54346be32c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1365ffaffcba2550dd42e1215dcc8ed9d22cb079e7842955421deb2724543e14
MD5 96c60b05e4675f49a003e2e2937fc326
BLAKE2b-256 6d112decdbe1c0443ed9f1bcfca58417f8c45fe15ca2c7f4abde439bfcb506c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d738aa42b8d81682f254d188cd73d007bb59769c48572415c95cdc4dc45e76b3
MD5 1dfd416481d83b63ca1b37fd0685821f
BLAKE2b-256 85f7f83a4a261528efe228aa08d35dbfc76023d5d8a2ffadbdc015c857574597

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 34157ccda037acf8a22e965f73e2d0ff67d31368a3869e04506f047b524ddcdd
MD5 8029f6ef3764ac156cc5bdc29d584a6c
BLAKE2b-256 d600308ef87f60de75471b1d6c669116d8bc7a57a977ea7d00bb232addd051ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac0ea811d327815a663c340682be327e06ce79881da4200517bbb28c92be9b6d
MD5 39d46184858e9f6540721faf39c95832
BLAKE2b-256 243ff7fa8c4255b8e202cb00c544f58e4f64ad96a6f5d848f3ad94515caa6b39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 915e4a70a50315473325a24d459793d2513550da45de2002de96a6d164de8dc0
MD5 cd3b5909bbc1ec9d4146a457f0324671
BLAKE2b-256 085f64aa787028dc4021eea76019375642966330f17cb0a92ceaca1b24687b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fbb20ad0cc50a4c6350ef7f4b87687b86376605045a04ff186a988282342f4eb
MD5 306cdac7782aa7b6cdecadd14d1a6309
BLAKE2b-256 4e9966f85616c9ba9b332e3867fcb50a0d00c59659c6a0dc5011a8f9441a4ca3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e911d876d03c321ff5a23cc867cedc46bcea3344f9c654ee5d3a4ba3fd9a5ce8
MD5 0c9ea9fb632b4f6b954bee5002baedfd
BLAKE2b-256 a4dee87213210e2b767c85768ee475767f72b7e83cbfe5d8f35e5573717374be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10a5068263793ac1356356118bed73ae74d8fc177560fab3e6ea3c4a947c3f70
MD5 157ba166d6fab576506526b445ac30aa
BLAKE2b-256 859b20e981d66deccfd6a95c493404c09e23593eea32bf84c57fb2208c9c62d0

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