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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.8-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.6 MB view details)

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

moleculekit-1.11.8-cp313-cp313-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.11.8-cp312-cp312-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.8-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.6 MB view details)

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

moleculekit-1.11.8-cp312-cp312-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.11.8-cp311-cp311-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

moleculekit-1.11.8-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.7 MB view details)

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

moleculekit-1.11.8-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.11.8-cp310-cp310-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.4 MB view details)

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

moleculekit-1.11.8-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

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

moleculekit-1.11.8-cp310-cp310-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f93bce10eb463dffde2bd289c278ce449fb69c9bc37f8c172cb229da432485ec
MD5 8d437bedc113d52cbccef1d75b99d97c
BLAKE2b-256 e628333f8a34c4516b6e66454045c38bb76039c0c8b7685f66c0d6ce98fbe7fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c2e6bf897890171600e0df1b7fdbfc8a68bebf1abe244a1d3271019721251706
MD5 e6149f5821736363953ea829cb448dcd
BLAKE2b-256 ba392fca9c704f56ea8e6aaf03b9a21fd3bdce718e07f2e6718b44d0970a9777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 daa92aa798433018f87e9db6e9e878f380251b76bef5f941aed7b2acd6aeef64
MD5 48ad3900d4682c33b4c7b20cde08f162
BLAKE2b-256 761a6e2f8fce0b34fdc2fd1d4e824fab248a2a880202f60b4af14854cf4ea717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd1686335e91982408a8db4d576e42b6d7ecd7de6a7412a26cd871733eeaef4e
MD5 bd480b994d90a1c42db1f2129b36490d
BLAKE2b-256 8ab351dc9baf9d606d61e7c911bc509e2384f32a09194af79a3c14ce636d13bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 97454b90d06d1feb3daae15b3085c5be944e0aedb9a68907607d34c00cddd71b
MD5 89f1c76eba7629c12e26372480cc3950
BLAKE2b-256 e0deacb7cb145702aff5f59d80204d67e40d741fbe523cceaa9adc637b8254ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d556057d74e884aac564d44e4ce886ba7cd2fd122009c5e3b89fbb13817f34c7
MD5 d11b361de4ab4a806d637e3df14f9a8d
BLAKE2b-256 b8e722f72e53c4afa3572fedf3a31ccbf7c846a19a43d2fb3196d5f955ec2dce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 15808d0de386b466d641f7085e5b510c2ba3f88d554732590346cc104fa7081b
MD5 814a8bee3f3c160ebb6132861d78dafc
BLAKE2b-256 8c4191a99d3cb99602c9e658d03753e4eb1c53ea9a97b806ea5c693fb0fa1f70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6e934acb8bd3c3012aa0211096b49878d19f3df73688ddc4dc6eb69082585e5
MD5 654e25d6fe8707b3c90e0e4fb6e29e0f
BLAKE2b-256 993668d42257b764583d9c9332f7a9ba5f23dc4009f6a6ae170b422e4a0839b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b73449b718578d6fb79d60bbd9eaebfe6f0e26adc96907abf1fd18f151fe663a
MD5 cbd0e848d2230483244dbd0b9bbebc4c
BLAKE2b-256 4b0656f053e5c3f353ae2a779a37cad696c132b70a5928dc0a553cad580beb29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d8cc82f48ffb515267009d46616da2d52a775b4782ece9920d99afa5e21ac845
MD5 67c3ade6a5154c0b7d45203a30531ea2
BLAKE2b-256 cf875783762de0df6b8e8ff4d63ea171708a837126d08ed92ad5063edf678070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 79abe90972fa4a10c5fe71bfdb1ca243bb00b70ca8a7ef9a9c9e3fe852758c6a
MD5 4cf02b7b1b8aba25d0243b28cc3a9a04
BLAKE2b-256 672c6f03d176017fcccbd622aa3ac81381819ff3c45e4de754e97b1c2ab770a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cef4cf31881d4020e5718933362637ddda8bc7bb47b34aadc3bd3d0a521b14a
MD5 ec795c319fb2cc5419251cc5a774bf41
BLAKE2b-256 91fec85c69c02cf473c3ebf357e7d931eac1dae6fc3c6650bdcce8f03f8af0b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9345a65491e813a66fcc611fd1967e60e1572224caa4d7195a3c0ce77fa8ad30
MD5 49562980fc536ba0d20db606b4216b0a
BLAKE2b-256 ccd2422a4b9064609d6beb1152e1a12c47038c827448bb5e80d5645ae6e9f943

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 72397861051df33d5bbf97000f8acd591bfcb17a057b0845abc4912bfbb11294
MD5 6f1e25e38fc6f8796b4909d7118b5149
BLAKE2b-256 775579f9704ccc7d21d868cdce57a2176b02e49fff646a36b535038ab20908ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ce3f5b1292e3d7b29537553052df8285b5920cae8b5f33d949c07f7a8236fcdb
MD5 3280e9f1612232631b59ccf70ac783c3
BLAKE2b-256 57c59b5c12b633c28e0b2e5a55ffa6804f29905cf8fa37c855c080e9b309d8a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5e99c1c3ca128c0077292e35b509db59d23c519edc0edb907d86e9b47cbd599
MD5 bf765074b8cd0aa91ee436c13697b86e
BLAKE2b-256 87d6d9b81f898f98d06c1346de8dd4bd79d74b5f02c881f3deb74f1b146e51bf

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