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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.5-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.5-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.5-cp313-cp313-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.5-cp312-cp312-win_amd64.whl (6.9 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.5-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.5-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.5-cp312-cp312-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.5-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.5-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.5-cp311-cp311-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.5-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.5-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.5 MB view details)

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

moleculekit-1.14.5-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.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e27bceff0c64304cf8cfd4e18d802103249931e6284912053a86f2c8270485be
MD5 73824fdd207a3d02599fa202f10c4d9a
BLAKE2b-256 8eb48c2a5df91e65ebaac1e771b518c97cf6a46ad06d9dca1cd6db6eab7f685a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e20904efb21c9c8b0216ac878fce72d00db2b658fd87c35c805a5d807427238
MD5 17badd20ab674a0e974060e8bbf5d729
BLAKE2b-256 8c2a0bab324e3b4cb5e26a3fcae1a6434e1d68ac5f478270c844f6a63eb774d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48345dee492dfcbb3ebe6863652cbf70589d8d8a2703e388031c54eeb4c119e0
MD5 9c8824f2d11f598498a9a7a4d55121ad
BLAKE2b-256 193897cbe751dcb106faacd009dcca2ebee699086e3851f1a3edfb9492821de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7fd9dd92bcdcd835e45ee7925047226f010dc042cd8ff3b37d4f0260ccfff62
MD5 d415bc74f31ce2de6622377f6572e1ab
BLAKE2b-256 94ebe2f783f3fdaab8f9829d4c1f82218b82c79bf2b244837eeb69eae1842f8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bca2f8ff6caf939f9cb7d21cd087d58c5ceaa4139078fad26fe22187deaddc48
MD5 4abafc7a803aca98ef1c253f52445f63
BLAKE2b-256 c3d56af623d1a439c7d87fb370599d1678807302165df54a63330800d0f05d25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ddbb3c454e6dca3374bbfab1d7e83fb94412a974d3c0f3ce4616520be710f837
MD5 9379309aa8acc76466848e67a26e3eef
BLAKE2b-256 29430e0da547e5bbac37d9eab5d99fe352f348e2e87f471ef4fd55cfdcb29e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0624200e1cb57946b2b2b440e166a5f273403c198c9c7994fd72a2873c4cc74c
MD5 cd03567f2fb9ccd2d605eb02dc5ca8e4
BLAKE2b-256 6af8b507d2189b8d1dcdbac243a2eeafea4f50a1479a92f9575d8035440a1fd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d812985a6decac73db8e30b5769849bc785526f39fabaf311b974a9f24d63d7d
MD5 93fbb1d30a0734290275bee536849f8f
BLAKE2b-256 f55a1e5208591c7a5953763a9b874e35aca72bb4f5ed9c3bb3228f9db0e689b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7684c76f22ce413baecd196b56146854258a34afac03bbe3dfc3280f15f585d0
MD5 42f284634ea8f88c08b8cefd96daa545
BLAKE2b-256 facd6317a6e60f565006f06960e1111f0903a142aa26779f33fcb6873d8aa547

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 915b89603e39ee4a5d1097f8099e47fbb25b59914ea281fae52cc1a776d8eda5
MD5 2f744055706f356ec526d35e6c2f9284
BLAKE2b-256 8d6d9d9f86eb963929448767386ca9b3cf0a6c19314e981d8207722226088551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 32911167a7fbf7a0e2f4f0393e74bff2d99e2f18fd03b24ae839941194ba4bc2
MD5 bc16973763ce540a21cb6a43174713fa
BLAKE2b-256 ce85c04823b4a9ba6e492a7bd53a85914fc5afad1c81740c9d13845901e1615b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 685eaadff9cd99112b91ad4f4caa95cb855436c26e590f4540ac26961ffcd035
MD5 05d16f0ef43309be1baf885fb00b883d
BLAKE2b-256 571980a62b2509d3cdb02172117dba3a6316c837267fe6aae6738172375218e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ae8a55bcc5fe04420ad47653c46243bf9145772f4fe0c0a09515f3db4ad8ae2
MD5 12ccfccc499465f71ced1992e745e194
BLAKE2b-256 e1e27af10573d621fbe6a4370be78e50919c8597b36a2a04f30afbf4c74ae991

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3cc24099b06735092e3b082159de582b1d8de603526a91cb2d38bdbe3d98eb27
MD5 0fd5d939412ddd3facc5febeb0b17dd2
BLAKE2b-256 3beb8e27633638169f58ffe2d9fc2dcc6fe67d325ae9e19b064e0256b86d5221

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b383d96760e2f3ead6ede412d59dec462f3afcd8dcd38f837c7068c5722fe868
MD5 e7fc24e456b49af473bdf11090f336fd
BLAKE2b-256 ae302be53a35fdea8a168d690ef52859de1bc02b110fafb58c786dc53ef71f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7c571723e29e4cffd3efe4f37addd8dc01fdac5a16482ed8f1abe48cf886f96
MD5 2cadf48e88991259bfaaa2139803a924
BLAKE2b-256 035a8cf3fcebb6849261bea79377ff46920e70c678cc94ecb0cb19ef2e369fd8

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