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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.3-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.3-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.3-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.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b63ca4e1ac45fe5bcf80d0e70d151f0b5473828a550ae75552315db8b42ba6bc
MD5 6a96012bab0facc950958db57ca06904
BLAKE2b-256 0466d2b7618d45a9b6fd72f289daa1ce92d08a0c422ea1011004967ab1c33021

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0938d4b7d8fd4e00607952076a8fda5b80a03a5fe2059c386cbf5108f30ef658
MD5 b610bd4eba1af6fc2d55e1f2e545fe61
BLAKE2b-256 9663227246db2f86f13c74e90ed228acebdd143c1ba4d9968082250ec53dd850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48240a6c9f0895703bc55949f6b88d13349587346dc33eaa6087ac074a1514c4
MD5 2d9e7b5eddec9894385b9881267b785e
BLAKE2b-256 19ec62ebdbcff27eb4d38e30f0a49d6270d81f17f5b1cbdb45ef9812051cb3f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a6de89d675ccffab44616fea32165cf204e9148e1066410fc44f6a93d66dc8d
MD5 b0133bbf87c412cd10b257b7ba853552
BLAKE2b-256 2875adf3ac79dd6dba058194ab1f28ddeb24b79d288a48392d41f4249c8f0fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c74bd64a3f04779c568aba5c4065811232e9d8ef5abfe332d59d2fd332b4f93
MD5 b7c346adcad74a83492d4d94217b9757
BLAKE2b-256 691381edaa755bc643e38296b4757cf7054d9cfd20da2cbdbe689d4024d8d578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6568e20875f659e2ecfe37915145aa2bf83f1b6312c2b282fd3557adb3a9d944
MD5 51b867cb0bb4857273327ecd56e48c93
BLAKE2b-256 ee40633adb914d74ab9f3a9ee74ce151e6d4481ca17d57aee458db026005e3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a431833560544cfed1ff67367e609b63fa5edc416881e94671b3b232ee12f81
MD5 71b4efd7a7ce012448d20bee8f881a52
BLAKE2b-256 9f35a3ebe66b9722202103604dfddf447b28da6b780e712c3e9c3a4981db0de3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5eea36607c9f7fab4b52a9fcbce08a39e5e0a940437c742a54396a6f11262e7c
MD5 a437a5e744d4f30ee3f2176750dcb46d
BLAKE2b-256 f602bb8263b3abd97f51461b4fdf9944a06cc5197f8b9c9b2a277a3a3029e43c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ae19d069dc18ae2da8f8ed6dca63c3841cd48d02d0646cf84fd1414c21aab92
MD5 252cecfc96e05d52a7c8d8190439dd85
BLAKE2b-256 7e66d419f0950c16ea764665716f2b319b30554883fc9901ab19be681f2ff371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7fcf7c588dbae38d159d348e06267190b8115431dfbc86cdc3ac0f6c1b4c833c
MD5 6af96ac08efeb1a9e3c07b303473f8b9
BLAKE2b-256 6da8331d372ff5d000ea2518f4ee2e1c0587519f3e9fde9fa6bf839ec6240c35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db3d4fa668a725395a22558b56487713c79cafd0c662a1d98bc32d26f6378d53
MD5 9613a73584bfafa9d405eb6013638665
BLAKE2b-256 47110e5767dcb4bfb2355cab7773eed66ab690e873bd859ee063bb52c98b6edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85763d911408cf0e662008983565693d828d60cae1eb37fc3577bbd6c096fb36
MD5 0f9d9bb8777c417a6e33a4e1f488bd25
BLAKE2b-256 30895e1eeea2048b497c65982a07a214aab65f7b06371b6b73283106db03c44b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af32fa161ee28f332eb6dc9cb157ba6da755bb205444216f0661d43751ad6507
MD5 833fdf80350ef38813fe1798e8d23864
BLAKE2b-256 72c019b36bad33d55298060306677f03866e9c6ff8bba51a2ae05db0858f576d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d841e76fc7b6c14aef2b3afe66913f242ed4832b5b6505e06c3d811405dd3324
MD5 b07efc54cf45746aff79122e1457cb8e
BLAKE2b-256 8265c982f2a477fcc355916d3645f3affd1ca8745b6971555db85ecd842dfa16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1652e30ccbbd98de9b7b3a2444902d87c3aa084771de33dff166aa3d0732ba4f
MD5 b3e88d026a0b914eea4af563996fe7e1
BLAKE2b-256 7754491ac2cd7357e712218bc07d6ca55bd8bb5e56c3f87ea908ae58358de0ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd7f46e42e18c73ff85a9d78ba628e32728200ec2faf3c56ac778e66b59f854a
MD5 68b7a91b106658fe1c43b12118bfdb6e
BLAKE2b-256 48a4864b558f8a8156cdc5847c1a875e58467d6ead9af537645f06721348c7b0

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