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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.1-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.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.3 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.15.1-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.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.3 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.15.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.5 MB view details)

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

moleculekit-1.15.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.15.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.5 MB view details)

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

moleculekit-1.15.1-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.1-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.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c093c3ac0b5359df333b9243217a75c8fb4645552b97aa53daa8a8c195b0b2ba
MD5 8b935ac98a003f44792d849c49502d49
BLAKE2b-256 670d85c4037ba144769c504f71f2e5b2d287f749b6c19277b178313816ed244e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4429a493a3a25c1fc3f27cdfb08c0bc34fc45089487b7914f5a1ea839b207c9
MD5 cb6d2c97257a257a7a22e10fde632920
BLAKE2b-256 b50a19e1e00340d3e59e43141c6b0b2d9dfd3b426ddd23051556cca6ec896cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 167a2002f57778b9d65e7b494dff64348c441e9f6ab80b863353719f4f99492f
MD5 a981cd3a29346f0f13f1ce002086d503
BLAKE2b-256 8d5233c4ae9077f77bf4feaa90dcc1a67ce1cdd77d0876db60bc7420b9b4265f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c935048576c940449410ca82556749737e66ccd3367a160d06232402281b71fa
MD5 be475a0eb3f09e4dc45d7c1a97574dfe
BLAKE2b-256 023e1196cc61f55e206fd424bdabdae408eba351d7a9a9e31c24c778548070ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 228faf9eb0923bf1b6f61fedf10f5cf92c33ee27548363edb7ed74fcb6c4846b
MD5 6813795d67794a4659c9f499d158fd6c
BLAKE2b-256 1e3e29ab1d508795f7b0e30610dfad57050f3622c8537df86c3ecce805be6d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 529295c0f2f6862bf59187c17836263aafd2cbbe51990c92d711806f9da30be0
MD5 1d8541eeb5971000d1abcc9e119fbd41
BLAKE2b-256 3bb4a9bb50938f292de0d9bd3eb49a9a3cb30a1ae873a32170b2fcefcd7e6a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b2e32a93666558ae9a0137a7569078711aa9fa9d765e437d9118c21fd9cc0fba
MD5 5300b03b6171e0f2e6a229e14b250f61
BLAKE2b-256 c4087054289cd92af34b63dc6421a25b985ba4e55c3a2bcf1cca770bcdb3bcb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e37b5793e999fb6e33b5d3711124c383b1c13f7e740f84a7193a260c6fbb356f
MD5 7d9cfc25bcdd7fd2b1e6175a2bc200a9
BLAKE2b-256 28da2bbd4f93c84cce44360fcbd918dcf4431464609369a8aa0f5a07db764fcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd4645ac31c2d3f4520c2f09f48b1fa23465af0f72b4589f4406877c5df52af7
MD5 4cb5dcac96990dbf36b14fdc9173eb35
BLAKE2b-256 91213c1f8c4a90d604b720578e449da25b5c787dc97119768f7fa64fb6211cf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c5b0706f50d27c09a8aa408c44d26af0c6142d70f3c4482bc4180e7674a7061
MD5 887f5b53f2b0651cb900a0e200e60085
BLAKE2b-256 dbeeb84fcffc690859672820464c833570ffcc7a795eb0f6209cef66dcb99814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d169e9c684c3e4028f21ee259a7d53ae191951b2dc017ee7ffd0bf7fcbbd667a
MD5 6f417d8615cc075522592805caae6ecc
BLAKE2b-256 e8565b8fa04f1f5af4507c4b075f704c003875055edc98d0cf030d97bb14ff4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ee179f8955a5c66b1532e2a77560211ca08b1cadd00e52baf5cd21ff480c160
MD5 ee362ed07333afcbf66e154a577e3eda
BLAKE2b-256 6c799e95167141a40ae1cc1a153fc28c3b880c3ce65ef10b32e81a151f1977c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ccc0c8ed89eef775a3b27faf2d0f1a022abb2704d50463e5f271b5d9c7c75a0a
MD5 19f62791ccaba16eb3c8415f54caac1e
BLAKE2b-256 b213007863da804efb83f3f7acf46ce9afb3d63bcb0832bd51d1448177437892

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d7b036941ae71c0a265e4fe1870d1e4a39a3ebf09b2f1b228c15cffbeda40b7f
MD5 f4b5c96d27841acfad91186ae1503c2b
BLAKE2b-256 6e04d6d19634129eba3c92405a3201ea1a5059850dc390ba2dafd45342c3da1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1298ad209e8f94f5aa8e406ad3e34cb0495c852c792ecb120cf0a3e37e68f185
MD5 813e764508efa78de6b7c0cec28b2ec2
BLAKE2b-256 e78a27dd56a03f353a5741a81f099e70ce4adce019be77213a19d39605e0f7c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbb591135ab0bb96a946dc832533f222fb8f97fb17781ef28708100a30b661fe
MD5 23d11300d0684b3f6d69f249584d6264
BLAKE2b-256 d770b23ea3bc8f7d29935468e502385da5c1ba95e8a45dbca86da0a5c89a06b9

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