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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.12.1-cp311-cp311-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.12.1-cp310-cp310-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (15.8 MB view details)

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

moleculekit-1.12.1-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.12.1-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.12.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5da95b768c342ad52d0783ff106fb4899b41e213b6dfb9dcd2053c66d642644c
MD5 4f3dd6566baf06620ac2171647a4e21a
BLAKE2b-256 5e6ade80d78f2c94013c5cdcdc7de81d83d0530b17cba17f3987fe6d52e9d0b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6fb2c47a60f2c51c34e639e584b6efd6f3038ca1e2acf04a2acb14368ceb6203
MD5 30c3614eb77de38faa0990fd17f541a2
BLAKE2b-256 5a0b82616c76d39a080f1c22ecd936ee480ebf5a531069b82ff5625f333d45b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1d4624009a3f119605a2ca8a52ffd7f1a1044fa6acc17af98a82f240dd37dd00
MD5 1d8c44d12ae7746f6c19bcada7f98ae1
BLAKE2b-256 5ecb2b734c2b3cf5bf84c0b3ae716f2f9c2df2c9114d3fd0c8190d92e0c41fbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fdf442eed72870481661f1e695e75d9fdd12256d18df15c54bfc62f562471b6
MD5 02ab0d13d92004cec213a4d64fdbd17e
BLAKE2b-256 5c2ad4ff4f223213c1dcec9e0296b93e12ed4312e9a9826f2e45e3941c3951c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 91699170e961e9e49c71030115924239b21e803a410bf9acb373464ec3180b02
MD5 06f700a6a5f4b88819735357181ec573
BLAKE2b-256 9f06d18daafe98f104d3b05b357c5efc065093d35145e093fd785a9331c250e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7d446a5724e48cb3b592c38b98bdf425c7285c2234800d4ae5e3948ffe6d7a0
MD5 9415b57fc60dfe22e175bd9a9981e77a
BLAKE2b-256 c85e60dda7dc7bd95fe93c3b29318142bd6556ce84964bbc8062d5b8cc73ea28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d401335e9b40a711a90789805ffbff0041e8b2acd5204147fd5aa8d7926c1b44
MD5 bc0126a952a7450bdf99195b6ec562e4
BLAKE2b-256 51e056ba6c8fafb329a0c122c58898ce17479a7a6973deaa516e6ca2722d4d59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d39a678615f9ceb6f5b92e41b2b2c0c4df46d9c4e743a0fbeda17272f25f0423
MD5 df904ddb996e6f3c05f185722f0f6705
BLAKE2b-256 64dad914959ecf7cffa72297e89e8777ca061bc451dd40005060ee2d424945b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e11a630487943bd507fe9c8f0796bef925523b061c0e1abe85e937e5f885b83
MD5 67c8028247b9bd5ad5792e01b869a77b
BLAKE2b-256 afa7c9aeb98034331c2bd35bb5fc8548299ba650b53357a635d891a3444c0dbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2213ca63eb4bb26bc829718ba46a210426f17a110808098d98273a455ab8dd8
MD5 48e73c8ebe37e8e62efd2f0d48cd5831
BLAKE2b-256 989326fa79f82b6b95b062ae385f80679ccb2928141f19be80fa77ee5352b01e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f35bee21f518aecaeb5d3342e639f3c7c2e43d30858ac9fa059443941cd42fed
MD5 30dc5df82b6f1d07fee19a82c707f190
BLAKE2b-256 3a1536c996d47ebb01a135d7cd0f40651a0139ada8771c512edb01fb233c5f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91c87d0c805c7bd92039cbf495c9b5c8b64165e697c2a4fb26208ca024ecc2c2
MD5 fc3b00a7eeb05834b53077940164b9b0
BLAKE2b-256 7871e843a59ba35b8b9cc002f46634aed3ccde2adf90eb339a8c0c1cb7dd5645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b7f7ea7a7f9c000ba845dc97be2c9ccb97e212d0ec2c1e43180ab14bf4327fb6
MD5 5a0be59fefc2c6c3c7bd22633c1840cb
BLAKE2b-256 b7fd65b027b019272423e577b0890f03b053a5c59526a80def468c1cf5717552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 969075cb46a618cd6d362b1b350308219332e022caa312fd67e20d8c62e2a497
MD5 fa660c8d97790b2925332ad2cbd76208
BLAKE2b-256 92c76a5c8ad05a40e95df05f1c8af74771c0d87bb3d267c6364f37a89a3b5e77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ce21ff6e969ec05d8ebf0550976529c7cde0f27dafb38512f9a460fa930d2dd6
MD5 8ad146942aa6fb55719561e9c93a8d53
BLAKE2b-256 5e50eb3f93889fb2f3c209ade440ab6bd5583a953eef95baf139a52abe0a819d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fecd88b1398535c0ac85704b5957550d6f59294122f265d9809ca80832ce8689
MD5 d9da89fbb102579003135f417d91698b
BLAKE2b-256 dd07a6e45af954c9d8ace123280de2782f46aa898e65a06d844ea67c7aba4f97

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