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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.0-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.0-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.0-cp313-cp313-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.15.0-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.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.15.0-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.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.15.0-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.0-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.0-cp310-cp310-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 aa08626f21ce17729161f1963045c84c57e6d9ef4d849ea1dc14bc5b1b602fdc
MD5 b8755ed93518fbd99f914f7da8020d3e
BLAKE2b-256 97bc5b81f256baca1d40fab94cc7c03289d4afee87c5698e1c19c152c7f471e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7d82639291f20e6327b017a2e95ababfc7936014e7ca15131586be3652e96cd9
MD5 ad86ca2db38b203322692ff4eea778ee
BLAKE2b-256 0673768028f3e90945290ed58d1569a1fdfa915d2118a31e0ace1189a2b0dcfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e0ee55e3cdd1d446fa18be8c9594c0cfa6daab7823907f114d2c03d6111ba1b4
MD5 324c8b1d842e350ce06f7e31f44dee7b
BLAKE2b-256 85c656bd8e0c1bcf88fd709fc105867a9ed9e12e08e36b9ef384e81934ed6831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eafc05a2a1bf70cb208b8ba5714396347b990320bed789eb98fafda90e5b75e2
MD5 fcb70385c6263806c13f257a297b6061
BLAKE2b-256 313e2e0ac00c90f528f724f8c4515f7979a4c745797ee90ee18437dfc8685795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6243e4d934626e9905744d121aa786ab194ed2a30e7d81050f7d0114a2376e61
MD5 6e454d4dd6c9e2e177b4ea15a8677232
BLAKE2b-256 0aa7dbf444cde92c22115f02aee877fc66012736f44cf473bf40374104e687df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b1758dd9996c2911c5698d81ce6230ac0dc187e8bf87d107744358238f027a7
MD5 57f1bc18d8b5d93a68a64f7d51e7175f
BLAKE2b-256 5314cf17e51fa03eea8eedcb008af902649d8dc5f74e2a5c99aa78dafb5485d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8d3acb5a47bdf1a46e9b3e5767c9bd85093da931a8ef89be9b6a0a4c23ce0ce7
MD5 738bc084e9606906d4b0d153186f7225
BLAKE2b-256 6771aa54c575be0d060cea1ffe8aab60f7480757b389fa5e993281ee675fece9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64f0293be5cb652fbcf6d5524dbe33b30488995edfc8acc2cd35dcf58bd7ce77
MD5 cb2d00d4cbef1347e57a60f8a944f0f5
BLAKE2b-256 a238c5bec664a7d737af07653cc41126e153d3709defcaf120f7f459ca91cbdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f8317936cd52ffdab73aa6a3d08b39fe05fb4aff947b202f7992a261d7bd6144
MD5 d4ccd625b424d21539cc54a27819133e
BLAKE2b-256 e7fe5411296e324bbbd3cdc4443ec6c8142a96b1758557bb8e184086a5e484b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 966ddb3c3ea66ddd2f02e6638057d75857a7845f70b63759faa53ca759daef6c
MD5 4f8caa62ac1cd0071247b50e3155aff4
BLAKE2b-256 04cbb879ff759159bf811745085db2f2af0bc175d2bf5e270e5f15b6b183713f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fbbc5e1da1e9a0b103fa0c3c4b4b35263994184d28df900fbb6fe079fc6620f2
MD5 127b1cac6734382081f4acbeb13332d9
BLAKE2b-256 723abdcd869a16666082c01aea4fe8a8853c218d699bbe8f06d03d0a96b745cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a97b0c8c1c27f81d942275bafc1dbcd5143eea0ad87739ad731b967fcdf11a7
MD5 bc9614d7441eac9b475dd21c4cdcd696
BLAKE2b-256 f5b1bd384b99e2f712b6ad893de0911b17c23da4d472265a3b531b22f738679c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 677a99da8132451bc0dec7637156c7dc8f3e643b4c503b3b494e7ad39ef0b136
MD5 09e61c6ad4c7f644663d3f3bdd084a61
BLAKE2b-256 a4cfcf4eedbabacf3df0aa46aeb2bb884706c32a94b941445f2f3c37f924a276

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf9c9775eaa69f5d674231f8228104c77d3683939ddeb694d4c30af6213075dc
MD5 1bbdd695485ce6a05eec18dbe563963e
BLAKE2b-256 099d85b5656442077d83d018cc5e29c65879e5baaf8a69b2c2169e53ddf05919

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4dfe8acdab61778d78c55846e2d801e5e03db7a9019e84fa7adc36dc606c1790
MD5 3ed8d507643d81b7fffa806644c4226f
BLAKE2b-256 b4fa55c7021c633ece4631aa0b0cdc935f2848301efdd00675fb64fe72d5c9be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa218680b6120426c9152f20968b4d09f26b2a0babbbaca1b29569fe0b6be88
MD5 40c61748a0f414348e2dd4700ca1f9d4
BLAKE2b-256 39ff3b9a91eaa3caae803fca532924b2e820e2c3281d401775d1ae8bd4178cd7

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