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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.12.2-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.2-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.2-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.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 917c2aa05c2cddffe8a2da3561275d40bb726f2219f04162b286b881cbd8bd3f
MD5 19b2abbe00d01a1a1ebaf8f7ca208196
BLAKE2b-256 a4572ceddf1d18c683bae9e0fc205b570ab2f9fbb679198c3f83b9bd445bfe61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e55572e7f57990211bb75bbd08cfc7a1e0ea35bfc53364c5b9b955b1f1e38a8a
MD5 89f3b716b591604eb275bc01a7b78131
BLAKE2b-256 5a1739862c6908d66e6244188a566ec7b8a0531902a534e3eff2301386c58627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4be73dd9d380fbcde4152b3c628a7f3b63dd781d9fee04d6c83cf0404cbb45b
MD5 35d41af5833dbf082b4e267af01f13a2
BLAKE2b-256 76b86c720c9fd8c215bcf331712f4b06563a087912cbf096a5b0b566f3e3b3eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cf998cd10c731ad8713ad270b62dd8e4e9cecc321eddb7e7e1b3c344e92bf83
MD5 ac18f6279dcf952253efa24eeae6527d
BLAKE2b-256 8c45070b8c6345e68dd5c472e2969d8d94193fdc30d4cd3b651e0236b2fc9b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b850437fb5f7b346216938810110016c0bdb784e361cdf9480c29d5e01474355
MD5 8030f0c2579899f4d7ce28d2d0fc7ffa
BLAKE2b-256 8935fc2533eca10788d7233ca0cdf1147cd3294ff3b9603b22d6d7bbaecdfa28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb3bfb52aac2fcf2fb4a6e57b627b3ca43467473927f1aa6efdad97140be3515
MD5 c0691dd636bd5ad13b64798f70384534
BLAKE2b-256 b6a012f69a09328cd261e695adcb7849c90f0f044039e3c408b56ad4793672a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ef2fc0388f8104920b78f84909840ac9b1c2ce50f27e9300d3048b6f755cb792
MD5 e43d816992f81d22e04b1cce874660bf
BLAKE2b-256 06bceb8f976051db696ec51c5c1170cb872536ab1df8ddcec8c045b8ee028f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e785f455feb57da255e72eb6343f8f0d2e02f52520806c5d0920d87cc0679c1
MD5 a868ff87fd0befb3866e7a0020f65865
BLAKE2b-256 5fd05d7a8bd8000addc423593fbef667f594dfb2c98b44d49b499433ba3a1ed8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3df1bc494ee4b280610ffebce0c7dc4c02b57c9838ef4e3ad0a8e2a1397f842f
MD5 063cf2eaee99e2138f57df75d19cb072
BLAKE2b-256 27aa52b83f5654b62b41e6f649c02ad40ec64525ab685ba691754a563e43d987

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15ced31859804a5653c8fda9d63c79b2aa14a6123e85523d6539b76552c25cbd
MD5 096b47f8b9de5d9fe84008fb23af808a
BLAKE2b-256 780b8b690fae8528fe47fd8c102460924d735fc993c1e03ec7d8a6fd6cbcd040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4cfb1a731500e3feb2f699245ff0f368e703c559cfd8e7f0520436d8b35e8867
MD5 f2fdc44c126237381a75b01605433129
BLAKE2b-256 4a780fda149c927fbc82ed0502e78399cad986d594bb5a112788989bb2ade53c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 601c73d2646c3fb8201a6dac7da7ac9d63223127ceaf68f31c050e8d5f3c6e89
MD5 e808bb4da85e06fd8a1b923e30f2d0ee
BLAKE2b-256 f032dddbbb0c87137640a72e9f879e751bf6c34ab766aafdf724107c5e726991

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d0099a77de206ad5186c3c05906186d3d8ee00cd962cb24d8f94ca5aaf133c9
MD5 111c6ba725cf718553ac6d8db540fdc8
BLAKE2b-256 79a7b0dd4f13f8f34ca753a3b78206df34c5fb1d71ae26397da6c21efb556207

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9927f51d09f76d79ca0d517321781129c94aaf17645b29dc7b9ac7de2f35cc07
MD5 edb97e89e8750bfe2dfe156758507a9b
BLAKE2b-256 c076a4061567d67177aaf76e61e4cafdbf2fad76ce78a7612393568d9d354868

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 08ad3feb231c5a765261c146d489451d99bc44674e46ee6a32393e8a599a4365
MD5 d1f2cebfa2839e671872dc7c523828cd
BLAKE2b-256 544ceb3a0f8ba13ddb0e9e6830bba4fb88f52a9289cc4d0577859190b564d9d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.12.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49e55e1cff8c9547802e736a561f098b18db5927482065231a8a7f2d54dc4c8e
MD5 08002e5b90bd23355f5f84c136dd96d1
BLAKE2b-256 d15355719a2069f9440104b3a6c01127e777fe082c7ed717685d8e842a895277

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