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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.15-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.11.15-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

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

moleculekit-1.11.15-cp313-cp313-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.11.15-cp312-cp312-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.15-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.4 MB view details)

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

moleculekit-1.11.15-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.0 MB view details)

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

moleculekit-1.11.15-cp312-cp312-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.15-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.4 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.15-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.11.15-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.6 MB view details)

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

moleculekit-1.11.15-cp310-cp310-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f95ef9a259481bfb2ca1572eeb3d2a197602694c3025cc914f014e5519b028ec
MD5 a93690d4c0e262c5eca491617b2ab6bb
BLAKE2b-256 ca17f35085c15a3f3fa4962f46f7e50a1d3e77eef36300d4f6cabe794164a9eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a4978a06f53084a969cf0038e6b975a4c77fe614368ba457f9256711140ab4b
MD5 d72d79f4f9830d29e8a082ed12151b7c
BLAKE2b-256 310b1441697fbc752b1cba5845f914cd9e9af6fe4f7888277dd79c9072455ddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50aea9b1cc2b3590633ded15ea748f7e51c90ab9b5d3bf138715b0ac64474330
MD5 0180eca27aeda4bee4d09b600465d924
BLAKE2b-256 380baa34c64ed84d55dd5e1a26ea317c4944ac5bb86235bf153d3c4ae13e0e08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9807d12adfec03d8b99913135bcad322a8778a9321df6325f4d51003542c70a7
MD5 f576740ec296d9b13f36d5fedbf4d2bb
BLAKE2b-256 5a91480f51fdde5e0c3947da1b864c2335646016506e9301a5f35124609610b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad9ece5b72a11cef11300d3ba274df7289d1c1ba0365f55a7f540cc7d688d50c
MD5 583aa5be99adbbbefa47f68b680184d6
BLAKE2b-256 122244db0f5e49d9fb38a3bcb7a797ccf1dc0489d2a20f45d209667b6b12ee66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef03fb54e3d96d010a583b8d8e1cc93d4c6a142970e1d6006af7dc75a123e803
MD5 b6c5757bac4865117f64a7466c8b0d31
BLAKE2b-256 e320688f224ec2729e88bfed5d032d86c1f765c15386d59993b909252f91cc94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a9869956719a1dc6e798ee61bd99fa2c52ec7a70403be9e5c2fca54d3e806426
MD5 17be5aa327f58d3bb8aba9aa6408659d
BLAKE2b-256 81302d09f4b55cf6cdfd655e9b8e80faf0dd6a972b9f064a7ad62ba15164799c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5020c2009d624d33a823665626d3076e6754396d4019b18e6c6531c1e15b8a8
MD5 82e44a2917e99dd8253ce2c1115cfcdf
BLAKE2b-256 40cd095b3528f7c369ecb51378603c8cb1f33f5f9af432d4914455c864a19cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eab1d056a31022d6ec822586e0eead2fa999faae287c66d8b1f5c086adf74268
MD5 d0c5a6919474644fd7176fba8429d3f4
BLAKE2b-256 7973ace28ed0366d89fc109dd7d88372558f8562e8a9ab4476bf159fd45f3400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24dbe938d3c22bf9cff17770e423c68b2fafc0e5450913ab3c54d4ec36960b19
MD5 5ac6cf5172fa3b5a33e6724a98f00c07
BLAKE2b-256 dbd7eb2a145b1e71ce5ddb917751a215734e4c14ea3607aa510fd5dfaad9a69f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dc9e2b7803588fce49c544e325399c9c6cfbd8cf73267bbd345f734ac4386b50
MD5 3a0cbcf47fe61cc31c0b7cec0917d63e
BLAKE2b-256 d2a9bed2dbd3f040ea54a50d879705a89bf35108e76968e6aa9ae1c416af3a8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c818ad37a6cded03cbe1e6327b3d6d83a8adefde673a84d90388900da4027c6d
MD5 9a740d2b6ad36fefe39bbdec52396ea5
BLAKE2b-256 8cba6c97a08902d17d36e8e41deeabe9989432b735fb339520e910a400b0caf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f58e284e80c4ab8f73a1ec8895d52cc3c178315f32633231f8f176e4822039d
MD5 ab1263ce9a0dbaa07549f78d177334e2
BLAKE2b-256 6d6b5f23efe653a8e6ccb614aa42fc361ea67e0aebee57fcc34a1726f56583da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a3ac6b3a8580be309f83c11ddf0a6c90b3fc6eedd8a951c9ad1d74982a35445
MD5 b5c0d8d1a22d4fbaf98b6184d78dfc7d
BLAKE2b-256 9bee5725b286f91cb78b86c0a45507b10fa9e17f704a4f3be157a025152620b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c1e9b77fb77796564820cb7b5178ac14b2327e06f13b8c86bf40f8ca4f60bc62
MD5 9967b86dcaaaed5654fd45fe64a532f9
BLAKE2b-256 f67a3d31f516c15a981e5e63ce88452e86b8e9526a1e1e24de2bd06a3db3895d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04cc57f265f96a69c3dc5937341f976cad95295c46c5804793f4c6a1d4e34205
MD5 54176ee28e59c067ddcbdc43b6902b73
BLAKE2b-256 ed0467d35253ec89bb9306499aca84c4da7d4a894b85ced9d8834777fc3d9574

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