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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.4-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.13.4-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.13.4-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.13.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9b2f103ffbf7c2d43c65f5424a4f52b6f24be893637ed20219598df0d75b0a4e
MD5 149c89cee27f27a2a1c9b922c2ca11d9
BLAKE2b-256 610e55e76a3582b70f6dc7aa624ba01183bf6d95ec863423113adbbe38f7a189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3c492ed73b6ed89fa20210e632b9a0aacc753780d1cd8ce528435b5d1ee8ba6f
MD5 0676a311dad78dd94ba47f6c7cd95b06
BLAKE2b-256 e41d670a6312dd531430fdea2190bb85d2f36a34f7c4fe30e9d5812435c6218c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 148cfb79d0f7a47b986e6386307433333530e0e42ce4432e23fcba5ea000de46
MD5 c1f9acdae41dde920f35a05319be06ab
BLAKE2b-256 741186ef295f6f94cfa590cafbbbef42f91109390e38b7c46bc048b9b62b6c10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 460e677aec3b19ea38b3e7ff5344ec122ffa2ca8c41bd0f15ca18f2e1f595ce3
MD5 5e38c45b764b5fc147d2eb9cfe7cedee
BLAKE2b-256 3c58fb6de502aa7d50d142d92f077b637e6868623f87904d7018551f60a05afd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0466314aea657de29214664973a525d70510c118001c28166bf8ba99d03e848
MD5 5c93b750dba78e1f8cfc393b25578e49
BLAKE2b-256 289f2c177a4207128b353fed2be7149372b3a0264aea121a1694c0f016b9eece

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e36d4d31e0e29b57bd2e40ed52cd028b6d204194ce3f653b843f65451f1b3091
MD5 d7689c23635c0eb3b6187302216ff89e
BLAKE2b-256 571f65b760b0d0e097c669ac164a5906986cfe090bc348643b08ffaca1311ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 89583a7d72bb09cfa82d5bc84ba5e720e0a7221529913b81cbcfaab0f9ffeeea
MD5 f75634424752ce4f17c00df5aaec448b
BLAKE2b-256 0608e6f4e621359c44b39420bd67b7a4e4ff8c0e141ba6e9266e36f091df030a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b0eff6ef3eaa1b1ea10f17dbf3a37055366777635e0098c71d43325b2292288
MD5 ccd6f72152059dcda10857f0a84b9074
BLAKE2b-256 99a8ce50b16b892a44207cc0bcf055476c5faaa5ebb9a23b8cdf1695f9a07a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db75ca87a19be7a8ceb1d11371cbaca9a6712a9bda8880a8459639a57f64d6f4
MD5 af00e1d3459740516395f2777709e1a3
BLAKE2b-256 a579e412979556d1455412da74a9121217fd54687ec4bc40ef51e0cecd151efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb0636c3bc2c717624e0973d5626c82f1813cec14e2d45dcc40bde0c77f2191a
MD5 5119323700d906d55c56dc3254562c3a
BLAKE2b-256 66a0e2b135758c01ce40b16c7f54a8cdb26ededdfc74664e79f2d5c318e4bd47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8bc32e10982452d908e5e347363c526cebacbe21c3fe61b5bcb0599b9c3b33b
MD5 3e1a90dc2d1ffbd2394e69462f2091d8
BLAKE2b-256 2e3b6b3c9a2a5475f99bc30bc734467c98f93e880a93114664a5c82a1771f1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8c6145ca706ec4e7bcd910dd5c9ab2d33a9eb92a3e3b4897a697843c7d5c7b5
MD5 721e18c917992fd71f017394a5d39892
BLAKE2b-256 34ffd44c71c3362677cf9ca75b43ed8c4a51f2a001b5d2b050afd65cd2ddc3e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0db9b509fe1779712caf889aaf1d0a33817262e2c7d8e5f5a87c2c8b33ccffed
MD5 a6e13605532c3ff0f81d57e0a813c0de
BLAKE2b-256 395071ba37eb99d4eae4e3c4a2f6bb895d7852afd583945a31c294854f72085b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19ee0ccac9264641a5bd49507dd0066afcd02f70ad25e88ad37ca7c77f7b173e
MD5 4dbb9aaf93ec63602a4a59b390a12071
BLAKE2b-256 f9a6b8c9606c33ac2a9b2a8f00f0b0eb312a6a9a5d9821ba3e8e84d227803163

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bc20c5701fb9c7ab6126e02a9715c4ee81ba2149efaa998ebebc18774f2c4bd5
MD5 bf7bd8a2e26cd15fd124abde75234d13
BLAKE2b-256 e4dfc90d655bd8b9a14fcc760ff5e482e73f53f3548e3cfa3f812614dffdc086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87a1c28c9d3383abf093e2b7303568cc512e55c711fc28648b10a351eef3e947
MD5 c871aa8abce812ceca0863cac90535fa
BLAKE2b-256 05dc9b03cb2f49998a0403fe0a00ad5acbbd39cc526e0ff07c0eafb963459028

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