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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.9 MB view details)

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

moleculekit-1.14.6-cp313-cp313-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.6-cp312-cp312-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.9 MB view details)

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

moleculekit-1.14.6-cp312-cp312-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.14.6-cp311-cp311-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.3 MB view details)

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

moleculekit-1.14.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.0 MB view details)

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

moleculekit-1.14.6-cp311-cp311-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.14.6-cp310-cp310-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.9 MB view details)

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

moleculekit-1.14.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.6 MB view details)

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

moleculekit-1.14.6-cp310-cp310-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5f5771f36945c1c0c586bd6044b2b1d406ea3cad1f7300d315db909557a616f7
MD5 babeb6195fd1ad47e6c6c8a6e827c715
BLAKE2b-256 0a9530c1858cd1bf7f8e41ed2a539bdb2b2391b9a151f40e1de3ed2d3accae08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50ea0c1b8e2d6f3d6feea04f669fb354f59560439ee46e8c92769744711f1a7c
MD5 5ff7695a1512a31fd655b59379a80d91
BLAKE2b-256 9a930a9ca39f445127e78f8404d53084a4c52fb39b6043ae234922b0ff4e6075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 29533dad5c8ed2e05d963fb452eb47f3fd2c7799881451e31550f13ad66ca969
MD5 941d164abc2fb7826033b0dcd9f56ddc
BLAKE2b-256 b06099e4bfb536a0fac54caa94a9a08ca0780140aa485d349d728756441ac02e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8b909d7813728dffed43bdf867dc663b113a3ca7870a5c2ca73c74014ccd821
MD5 3bc63cdb878f65b73c89212a9662d481
BLAKE2b-256 e29ff63cc9ccfe40ffc19aba0d568010be84f87e8bae9cfa0d7f88db02e51e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 729aa7c804ca5f47bd29f7310922bbb6e9239fbf65d4158fa6962639fa9eb00a
MD5 980861eb348966582f9e1548a3d7100e
BLAKE2b-256 a59cc8de9da2887167f5ae75b30accd85b6ec71cb3c5227f2299017ca524a0e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 afabf9f280630752fabef3fd9cffe76abb39e8837d03f90da17002887d2ef9a2
MD5 8b6c24d928f64c4012562edf25967ab5
BLAKE2b-256 20f147f847a366a5e51b900d98a3c6f0333d174369a9f3c3d34b8bc8c9b3a18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 17d2e2dc9b6d8453a1672fc110903fb7a56eeb221fadf6547854b2809515442f
MD5 90ed4a382646f04aa66fb2f7d56e46e4
BLAKE2b-256 c3d6350200dd6894574e1d9498fb078814c8f4015b1e1c78b214435bda3f6251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 986e96a802c9837af363e6e7c625762b4fa5ca279a8ad24ab72132aa264b3767
MD5 b1dee9cb6f64a5d4787277ef4e2a4cdc
BLAKE2b-256 52fe16ba629a911158bc87e85cc0b5f68129bc2264071183cce40d969501c5ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8669a1b338d2bee95e4810bd20e40763839d8c2779a4dd8449420c0b03e15d77
MD5 17abce19c87f04be9d13c7601b6ec158
BLAKE2b-256 87961203231e630d3ccb02ab8bd906992635c1ac74baaaec230ef1f534cfbae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a04cc559590c3d0d5298f2a71de17ad6e1c8f28110e5b6491ab9f562e06361ef
MD5 83613032a4d50267f4808bd4d52c3a4f
BLAKE2b-256 375f22bb996d672ac774647e642efb201465d363f4897b9b7edfdba091aa1054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4335bc97db87670915d2c11db23b3cfd4e379cb265986911acf8bd6cfa32cdbd
MD5 2c4368721137b6a7245e9efe58e71f76
BLAKE2b-256 2baa4e5bd38961c916363d42525228fd8e1411b888f1ce35a2ec8548deceba42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ba0c1e6f278f1a114f5513d37b3bf73516a2cf4d744232ac265123e2665b6e7
MD5 f28688a69a8d19343f680164aca6af11
BLAKE2b-256 ec355292498097b2bdd9c3d6ecac33dfc8a23c1327b0f1ae79f1bdc645c59241

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1ab4d198a1be3330b6bf1261a17c40da211e97a061fc5cb0c92bb96f3d81ee4b
MD5 0e4c386a1bafe8b3895a42675d5d9a07
BLAKE2b-256 0ea9e480a7b2d0ea69c5399cbf9368a30759fbae499a7e1852fe32569a9af073

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f6c4ee8941b3b20778a422f8931f78cd84ea0174cc08917a62b8066988fd6814
MD5 814197e2b6a25c3caf24795034dcd64c
BLAKE2b-256 10e7da76d267be077af296d02074031530683c65f56272f6925215e61ae3c663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7588524dabd152be89d743ce32c830352f6be3b7beef703e194701a3106d481e
MD5 3ef52954799fb240d602355aa313e63c
BLAKE2b-256 9e78b3e3008bd80b31a6132cecc5a48eeb7c0efca28f792cb916b6ee49c15479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bb175d2c5dc86498415e54e7c05e471a27594164cb698fa621b499e1153504c
MD5 8da271e97533d948e4dba6b6caf6f57b
BLAKE2b-256 30b74e7f9b2492736d89765b98e9ef05a72b179e94ce552853018bdf5c0da472

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