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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.4-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.4-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.15.4-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.4-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.15.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.6 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.15.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.6 MB view details)

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

moleculekit-1.15.4-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.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a5e1baedacbfee8f052e29941c6f6298fe204ab69995cb75f148ed9f2c2f82d
MD5 78b260989f6ea71509011bdd2741d4b1
BLAKE2b-256 ea515d22ffbd1455e372382a1785091519c3eab16a4f3ed0243021409941c8de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 457e7c4fad1988141dcc1a960b4142b97770084859aff82262a700397ad57afd
MD5 518a08f55e13d7013806f73f474ae14c
BLAKE2b-256 a999490ea7bc02ebf6c472c6c4637082e4c3d07239759f5ee887f4a07d81cc21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b24fd29729779de9b097a1ec326338b5c40408ce29ae354ce3e58c2724f220a3
MD5 9071b661f908fbe043478bcf7f4ddbc0
BLAKE2b-256 774e85349330687457efa6c6ae9d1d2c0d2ea76da076360115c9e1f1c7253404

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc783de85a89ca7a0d749bef9c4d076b734b0c0b12892987f0a856b42df89036
MD5 88c3cea611c952575a805b1929e92798
BLAKE2b-256 da32d43ec89371beff7af98c708c9c4540bd8b1d71da14681ef91d2aaf66e9a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb1000686f7603fba0fd16a4c1a0a17967a41f3a8f33351de095cd47e9b04f34
MD5 b25732e2d4728c13f51b6363c7d4fbb9
BLAKE2b-256 e0c72ad9f7414cc53d99a4c73281399a34a55352c481208833ed8e825e7bbf64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff3c3ede99abb7d78f6b5a1b7f8ae14e8e6b1ac6e86e864c9cc93d553180c2a2
MD5 a0dae2abeabd289a65ba530cd6256edb
BLAKE2b-256 1c78b1c692839ed0cd5421c52b3f58340bf76180a3b8ea3155cbdb2ec6586dd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3fabfbcf9ac8c52b7278ae6b5d9c7c8dd677761211eebffe3d85ddd38c14a460
MD5 dc3c64431696ca82e74ed84d957f2a41
BLAKE2b-256 d802b24cb6217cfda28f9eee1a1d115db7f6592feda0bd4bbd4d623c5305eaad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e4c7346e07f268d75442142a5a59eab2d730d2b6e84451040ff29d7a6f3d312
MD5 aba01f3c68b3c38a4ddd8c29da19f7ca
BLAKE2b-256 7d83ccca0b71bb8feadd393e02093c707753a0df7c68813b93daf4c57fcbb14a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b014022d3d5891751fc1b42b5b4d6f44b8c6043c39f6f96ca776fa39f66c8254
MD5 5258ec826b08eadaa2386d04889d9410
BLAKE2b-256 7b72bb6b8a589ea4a4736b72d3db05366b1251d298c4bd3e5946a538f15b3e4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23e9cc564801147730d26c0c985b4253eeb8dc98013d8c72d2b9183c0de3ec5b
MD5 cd40ca3114f48b6f233aee5f199c34ef
BLAKE2b-256 27aa43ea65eb6bc5d49074cc9e8151024b8d80071b32e7b1f270ea6ae2beb548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9bca6d392c06c27b0748dcf3f090b13f4a40784a87ef236f85fbd4aa4bcdbc4d
MD5 ef65ab1af53cc53df1f20fe69605a30e
BLAKE2b-256 3fec51b166f97fec294d8336c1f8f5c55810e32f6637d94a932c10de61023a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74ec8d6bea4797989b0c831c62ee236328af45e32d6f6e9f25a9e53d7c2c6ec7
MD5 1d82ed793e4d9b02f99e583bd29e1215
BLAKE2b-256 22b70522bf8d945b75f0582f05fa0baefda7933bbfe9e8de2a0e830c4f565381

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f9069d54591a3751561d76205ff42ef90de1b8e445e9bcc7d3566b10e5d41875
MD5 99e2909dcb7b2bbdf5a3157f2199bfa0
BLAKE2b-256 7b363447627c19399be761d423a9e3e1d463fa2701c103009b08d9e3b15f41fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8cc39e346df1beb7b7a36a2607f5b5d5d8076c4ce3dc3e948d3bf0d1bdde5ae8
MD5 8be93df967e49b8ede99332ea4a2534e
BLAKE2b-256 c51dcc0ffd92be7b92f3c36fce0456e23dfbc55918e506e4480df262f99bd2d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b19ede7f1787f9afdd9e807f5b1c5c1f7a7350227a34138e926c709cf42daa98
MD5 09e4b74bf465ba16997cb084dc34eca7
BLAKE2b-256 4ded54a5f9511ebcc06c36a41f7a86b3beac9783840f5a168e29047434311060

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f712597f755a34222b57d5dd047553d871f19de5b048de68aca80a58141a7e1d
MD5 f93cfa41d5578cb28119688314de47df
BLAKE2b-256 599452a053b0fe10a3ad2f15df131cda6c1c6276db7b1196c1b71d2fba32fe0a

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