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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.9-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.9-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.9 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.9-cp312-cp312-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.9-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.0 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.14.9-cp311-cp311-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.9-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.9-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.1 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.14.9-cp310-cp310-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.9-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.9 MB view details)

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

moleculekit-1.14.9-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.6 MB view details)

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

moleculekit-1.14.9-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.9-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 abed284e91bb746f83084b75ee6e91e793d87982fdc95a358c22b6ada9c0579b
MD5 2547d345d847fd40e72849117b100a99
BLAKE2b-256 41a4c23e3c39f97df88419385d74068695c5d3d7e1b190b386e89531307fc639

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a8c2f51ca601c0529711bd93b4a60cba3f030a5f56a95d1fb41afa136c1d96d1
MD5 502b182aee104e704f9866dc1fc39bf2
BLAKE2b-256 64eaffeac7c42082719e2ec926b1e899e80993b120096fcf3eb0a76f7078f7d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 67ffa4f2426710dec0d5b57c8280940ffe7c5ed7d6359b977440b977d5083b83
MD5 367b9dc68dffa6c2c041678dfd493e83
BLAKE2b-256 63d599cf701121121e8abb3117be723c6af88b8cdadb87331c27a65a1d98444d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a598470e4378af5c324033945134099f336b071f194657dbe5020699b9726640
MD5 0d91f15ebd9517a60f48defdf52f994b
BLAKE2b-256 d55c07d1eb0945b8723025f050a9665632d113a6b9581302a4de7ce7198343cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1181828948b731d1fe48a49d3a8b5de4ae56f54fcad29c8ec7a64fc91dedacc2
MD5 bfe602da363f43470dfb347191135fe5
BLAKE2b-256 e4e7c84eba72c3965ce1f769f0feb86042a8a044e57aba4041ec69f62cbb0983

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1fd5114199505fcefff5adb8a1a26d9c4676e3b98946eb339ff5a31a86635de6
MD5 e239afcc142ab7b8dbf46e29a47b4295
BLAKE2b-256 ba3514559d43d89cc97f1692bb37100328ec00900b1b2c3f9f605c19447aed1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3bff58bcd1c05c9126fd9a5816b4658ad4382b54a0c72eae7e123bacc08779a1
MD5 0b8de2207369c22bb5f1ad8ed6614fd3
BLAKE2b-256 6179b151d6b044a1197ac84e8a36f872d54f1e2123afbf140685859eb36613c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc66cd9b28ab746381b59db789945cbb80f0dda993c70f25d7591f3b0f06a024
MD5 c048790fbedbec3b545f4e4aa5377dc5
BLAKE2b-256 cb1d70c3a2cd24eed2e6eec7822d32efb63c2de14c8a5797d035132317257497

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f063e8f26c5aa8b92fbb8b97cbea8af7d2647a065255bfa94df92457a9dd3f5
MD5 5fd2aee5322d14d46deefab8cb37a6f1
BLAKE2b-256 8734ffb96f60239c6ddc77cbb34750986056742b628fcd61a7f15bfa0233106f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 35c0efc2f4e84775687e059ebe68412fa60573b288a8563f7aa3cedf82e38eb0
MD5 9662f71b70532247c369bbe7fc03b8cc
BLAKE2b-256 56d7e907636a651298bf145098396e4c978a0b250bc07dd0865f2fd61a19bdb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1b791a0378617764e70e2e873b950ac492209b94f37f15ce0903d3afabf6a334
MD5 562eeadc9a55a0ba0facb933fb89d068
BLAKE2b-256 e140b0a65a8d8ff173f2a93cb1263de3cdee02fd63b010dd7e99298c281abc37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 830da79fcb7a2f918bcbc05438b8100d6b9326f5d4a056759a82d3ee37548526
MD5 eba52785e40a85323b826a2fb4899eed
BLAKE2b-256 01e28915cef7c180810dd01f8df7b3de799ab279d1bf2020a99e846a7b27a3f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8c4320c710b75cde1311b812e22597947bd7d3069f32bbe670adba460d86693b
MD5 fd48cb07fed87723063c0e2e42b7300c
BLAKE2b-256 14c0873368348ec1a40cf9fc876f412c58fe142c3e59103376e84a48b592208a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 99c09bacd2ad2d0c8e20f2687daa44645c66ef8c5fab7e2d8468cdff6cb5834e
MD5 aac5ee472ed081e167d0f428fab9fdd6
BLAKE2b-256 929d0b99e586a677cddfd6cb96e5e205c2b396e26e6fd6092c1c8f6e508203b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 62f2b8b262c4f87d500b014a3e47099e6f95d93c2e644dfed9771616b9d329e8
MD5 ae97e291635cbec9901ada5ef80a4a00
BLAKE2b-256 0446ba3c8d791754eeb70ae599c15b45baf8bec5121788154e7bea67efcf370b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c551d86d46aee2524fafb66e52aaadb4ee766fe892a99b0c6ac44f7aab91992
MD5 bc13688981bafa2ff8e471b06ef72d36
BLAKE2b-256 6e3fba204ce0991a77d8f2d63a15ef15bf1380abddb4e51cbfef7fa20bf7f65b

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