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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.3-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.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

moleculekit-1.15.3-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.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.15.3-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.3-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.3-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.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c58aa99893127c96cf0cd38d7a3dc26365c6540dcd16f8cf0080d812dc1f40f5
MD5 18c13ecefd81c6a05eef89aef8d3730e
BLAKE2b-256 64d221696c8338919ddce7a716ab83517fcf6d3715819dba032b092f89628339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb512568b1963879f554e5f970a31432c3283372e19c77d1cf69f1005dd1de9f
MD5 f5593b513906c0c111e112fd44d04e1f
BLAKE2b-256 1d9ac127a4bc9d08031c3efc135c1282a33b1b8cfea7cb1fd97984d3ec594f3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8cabd39dd5f0c2ef6549b29b092e6f58883af2e894726311ebc3550fa44e01a6
MD5 491284e72ca2c8dad9dd9e1061cc7704
BLAKE2b-256 b70b67c2c496ac71682d2a092862e0095a8693bddf78374b85e4e86431ff4591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 386ee33a806702926a133717152a8124d72823a643225a27a1a34900c1f357a3
MD5 281e6d8a0b89b60a45d2c4243b6b28a8
BLAKE2b-256 2cbd8e74fc63dbcc8a74c77a545417fc2a2e3df1bd7d5dc21e2965dacd0531af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cdf80fe5d2dbf2d0e726fd1f727ecca284d56ffa50e282e4c60b004b70cf2a24
MD5 ff6ad8edae9a2ee01d9126f18b8f8887
BLAKE2b-256 860bb52133f64fa730683bd51c443dc8debc0984abf8af88a0df5df9d13e3f9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9b855ae8b9571324657987754b73f5f624a4d04de67b3ced8a96192d26dabdc
MD5 3285ec389616b0218657f0e03a6df64d
BLAKE2b-256 c2787905d5a0d5dd642b336d2054366cc783c0311331271c0ea1b4131f747492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6ef47500415d80dd1dfc25a0588e4aa7c2cced6a8c83fac330690200345fa42e
MD5 867786d783077f9c6a6b188dbe7de0a2
BLAKE2b-256 284ac698c28822456dab3bd1ab986638ac47c3166a062ea9ef27366a4707f3b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6548a5f6776e31983620479d99687b055f05c7d57281f95f18643d0d0c1cc69
MD5 85b5602d9678a9bf4287f293b32f1e5f
BLAKE2b-256 a6c69d24b6d6772a35226b56b319c7a30606d4fdded6261965feee97bfb5975f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7628ab7570f5e92e255e5466a5796baf1fe8f376d8ea45323caa1f7ed3a4d56c
MD5 45da8f86b89a21ed9be48b2b29f3dc13
BLAKE2b-256 5798cf511e724c5d834198a1f0a2b41c0329890cad2583226944713afe171220

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b48f3025928566d6820b93dddd741e1c6601d9b13ea6f35781c9fc3ee96c498
MD5 7843b10eaf388d06941a8e7cae7d8c9d
BLAKE2b-256 5f17b96a500a1f3ea17110be5fe29dec4e40ec44af0f255003a680cb506aa463

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 679022ef0e3023e1b7b82929aada5d97f1a95d8755925cb951648935bef78751
MD5 c5850f6ea7f530ede437805159abeff0
BLAKE2b-256 8072f9d056521af52a91a4c2bf82d7cc008e91c50f93e841a4f0574f264f149c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a73d48f6c6ec26e19a18170e89bf98e58244f2e76248b9cda293b98fd4dc306
MD5 8b0d7df6cab7b331b3d9f17684458f55
BLAKE2b-256 6c8d377d5894b67086ee30de47746c37aa76a80e3d003abaaf9a5ab1f677a7d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fb7623b902e482e545ed0ba0c2e0d696f17020324d7aa92f7f76e40a71da89df
MD5 6d954cd49846df7dee2b4aaeeffdd8e5
BLAKE2b-256 344ebacdd08056eeaab53edfb96452e3d489ff9f0b520a68f0971e5d183a3326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 391c92713d7a7d9a30faf58a1d400a163fc8aee8e9553607280bed036461e4ad
MD5 54daa177a22b5b99edc7e6afbf33dc4e
BLAKE2b-256 b44984b6b998f6c8cc81c1d8e4404e3d54b2e587530b7deccc8e5bf6b179ed80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d18ba4843af9daad8c7d5d16cb405c78113a6abc4bde8e1453eb0c88d1609365
MD5 9fecf92cc7a8fc102a5faa608c595528
BLAKE2b-256 e6c04383a99b9af4aa6fca9a5527d0975891836b3f7fe259a52b689061e600bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1ca8b3a85b5f6f759da3d842c38425ab97b1b0bf86456707f97c2ad4eb469a6
MD5 fa0f7131bd5880b22f88909cb2b8a334
BLAKE2b-256 ac3378d9a66e8f2d8d279803816fa5b49a4ac53ac146297e33b3ba5c8973fe08

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