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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.11.10-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.10-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.10-cp313-cp313-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.11.10-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.10-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.10-cp312-cp312-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.11.10-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.10-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.10-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.11.10-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.10-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.10-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.10-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9f4cc622f2d141e44dcaf5480891bddf128a9f8772c3fe07b14ca5d68549f029
MD5 2f941040df8365d94b80b6e2481e5927
BLAKE2b-256 2a697af2a03b279932aa1768fdb8aafa19ce57da238f3bb6972cab58b48b8c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 edaff970068a70e92c8c267ed9301012dc1d81f24c7e5b764cb23d6492b9540d
MD5 547045e4dc98b12dc5003b6db1e6c9a8
BLAKE2b-256 dcbb6530585ceea9134014b774452c9e5bedf86450016b23fa7e426434fd38ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c658a3b05539fc4e77f470e098903d738e21137b02d80644e5945d882ea49a85
MD5 0f9cb8ee11bdf90c82aa0eea5963be16
BLAKE2b-256 a3dfc32e848a5c9e4bca25df23ad754bc71c0c6d5050460cc9f8caf510414a7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fb11f21cdf861a69cdcd987055c347dbc664e7a0bc6091f448c4f403cc8056e
MD5 7f3937385356614b4be847d8b9b8caf5
BLAKE2b-256 d1359372be9b05e02b5fa38ae06de825f2d567502535a4c91d60fbae37037608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9bd1eb54f149c1eb659efeb2bac8d9745c777e4e0741eefa8bf7af2f29bd81c9
MD5 0dc5d0050acfcec6079e8ea57c172584
BLAKE2b-256 6502149abfdf00f0a9f1e5252133e2cda9cc964e36897f1a7d7ac2d6749fbd2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed8d7b625a5b0142d1046a9969720ffe3b3a3dffc08ed82b5ca0b0f54a626cfb
MD5 08f1820a359caec20b3729bcbf38eada
BLAKE2b-256 d176e11c9883aad66a82ad118995712d422a4a42a3c01b183d96974e45310a46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9cef9aae6563af13ec8fafaa8ef5dd4e95839a2a2b102ae9a14990e70cec7e6d
MD5 0a20291444a97239c3fd2e64a80b71a3
BLAKE2b-256 836d29e98b10651f7e9ec95e66445f68c6db5b27743493b619da3a4e357d0610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f20e6e28392aca8d08dd69bde198dad4aaae4bbfe5efa1ac5caeca4cf42f55f4
MD5 d6f168d4b8b26906279ecde7f7372d24
BLAKE2b-256 505b15cecfeaf5c4a2058f94dc4cdf2e6af9ee34450fa3409d41ddd9acf1187a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b684e7fd9b853f9ab9a05be3b443303f55b18f357885a370cbb8b0aa41c2bba8
MD5 3c45ca18e5ff33c63aa5b890f416cbbf
BLAKE2b-256 a5d37228d919472d01085d6601d0aee60dce237f63212b9aa91fb4df26ddabe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee902b210a7eeda400b26974ae25a0dda680d0b7ad11fc61e8476e64c14b53f5
MD5 02799c1848a12245236150d75db5c233
BLAKE2b-256 d17b7ba1e50af2c0536e10c935226cd64a6cb1b29f97762bdfd63d5172794122

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0ed7388f11968192c1a4483d9741893eecc110934d2372cefc6063496b1d90f8
MD5 da27376887a5a9b8bc352961b10a7609
BLAKE2b-256 67f14992c113a3f28d6e7e149121ce069344082e40ab03bbdcbd9c0635299f91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2a329edab3b897c25fd604bbd8ab86c9617781568c755af208543d11fae4d28
MD5 f7e6a2c360ef7049d7678fbe48fca30c
BLAKE2b-256 e7bb762dc568412f1ee85212d66d4e29cbd20e2eadcb075271d810d15cc0a5bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c9186daf236b2b988f239870bc3aefbf2b23d6e14c6bf346a1754cbde5f46045
MD5 5fed76144d75f1a332ab5852d69060d4
BLAKE2b-256 c7049b98916f1efd7e99e63d3e360f880d504fbfb152d8a7a73ff6844398362b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fcca4ed01864d0719a72d80083a25dbe02daa690f8455c0e7d23d547eef5c078
MD5 2b2932cbb6886f05c81c28d805d2fe9e
BLAKE2b-256 f2fedb540920d279a5052e9b5d8f095073e7a71a9c1ad2778ca677435c221948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 917a0a675f9bd6a603e12f7bde69e929dbbfb5521e5b8f3a6433b4b9ee22b0fd
MD5 20a484d7f4d6631e57d117311f4d1023
BLAKE2b-256 1d53c7774ad4b4a43ee97240d8ed4e0f3aecc54f0d9f54f1ef225952e5be81ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fab2975f9bc508049e3d6296567138a60f06ee50eba2fb064a6de5098604abbf
MD5 2d9b3c8e20d76386ae37925b2992d920
BLAKE2b-256 8695fd1a9874435a3384af1b5b1cd90976d7bc05d84233f3831464f62b8149cb

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