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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.15.5-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.5-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (5.4 MB view details)

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

moleculekit-1.15.5-cp313-cp313-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ff3d603031931ebf36bba04db82ae4320c089ee60747b4e9f320627cc266db80
MD5 2bba4192bef8962755ee35c6b12af874
BLAKE2b-256 ad3c8be18410df3689b6252c70c22ece7afe9d3f8a771a8cecfdc8b55e4ec6c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 35d9eae7b5611050d0526d82e11219df78e562f4d190a1b896b9b82ee6ca96db
MD5 c76f796f95562ad4e03407a4426eb4ac
BLAKE2b-256 593d274baeae2ea656eac00f6ed763f30dc890c59e3a3b5ccbd6a11e658c23eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4a10aa178028d607904da9e73e6754c733a4fb74d8f3811bd709da703f85fe0
MD5 e4c1a87d09fd511d683c0925248d7caf
BLAKE2b-256 8f2ba87f19c314d55cae8c6d367f06acce505f82b194c033591aa4b95d0719bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0524d287bd836c8da5e0d7dc02f599dacac894eb02e6ac429ce57cc8038ec498
MD5 92e9bb3e3815db0a890dd8cfa2de7243
BLAKE2b-256 dca9901e5be60e173bdabc342f317ae551c6d4589d69d1e5f0057549f74787a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 26974347ba15ce1f91634317e7e6ca786a0e8d8b6330862b5c735321213048ef
MD5 e1731f99ccbee29645d58c250c68f22f
BLAKE2b-256 f08e11cd8c4fa7f40ba834bc136ce46fe06785a661208306b726bb630c900b24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b1ca7c2fabc1a5f2e4a1167916d7db0588c4bfcd1c0a35f305c75efcc03f9689
MD5 4c9427a70b983c68e3980da33a1efdea
BLAKE2b-256 8d36fa773d88ee1d09d0ef06073002fe25da6e2c73e1a0e2d6ca327ca4b39e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d1c106dbb1b33c45eb6c2d889f2519e2b8233394aba51434e2f62fc4cab13011
MD5 cd2d98a3e02208c0e9e9ef264a8b15d4
BLAKE2b-256 beeea8a86159833fe99a9353e754518e5e07ff6f7fdb0b21f213e74cf274df4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94f8426920ecde61dd1a3ee220faf801d6336e3888415f433b851ec36a699dee
MD5 604af76eb8e21b1dc63d4a4a336e8b49
BLAKE2b-256 63562136c24065a06d1e54dff44178da878190ccffed7304028a04a994c1fe85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 570169432292ab3af762c43abbf7675f8abfc3bf70ca78415e9d54d1fffff725
MD5 54ec8cbca0c49749c2f729f28d544ff0
BLAKE2b-256 94474cf71a49131528835f944b17bcbb135bb62f783cadde8ea79393e21f942f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d863cce4b6aa9d3d7e546fe91f29e39c60206bbb0606546620bd467f8e4ebca2
MD5 01c7d33f0b5469f5caea4084a11e64ae
BLAKE2b-256 c0eb9dceedd6df92f4e7a8a56afc4aec531e1c0c40cfa5485b1adc6c01371099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a4f4a413fca4dbc33c8e1e380c676c6e1a557c5744f8b12a9b08e9da2c1c81c6
MD5 f3f3680a331c667b98a33296c49110e3
BLAKE2b-256 6ca3edecc6650435d97c83324f447cf8cb57e1a64325cec581ef94342a1a79ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbc80be3f2477ead4fc41023f5f1391173fbc013925644dca7e0e3517f1e67ab
MD5 f9b17fb42cc39b1e720a6a845ac6cb17
BLAKE2b-256 c246accf6c4c56c3444f99edacfde0a17d4c515d6bf6e002f6ffbfe3b7a4ee06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 592a8ee3a30005fe427fb61f40d4feee01e9d6b5b1358f4eba623581adc5fc6c
MD5 e8d4ef5b23e6bec298ec82b04513b44e
BLAKE2b-256 f50a75858b8e7a73cf8a1a928fc177e775c28183e339d98029125c287e4dd619

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b251d1b3e66d8660bac35645e67e9374087d3ea183a76404e66f44dea8bab36
MD5 150415adef1619e7266b4b6f77dfa743
BLAKE2b-256 1b55c133b550fafaa96d6cab3291e8138716b6e0befa8e71d7aaaae45cb1fab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 42ebf917bc4f927c23b1b1c65ee4de0a6496f8f67d602df77b830c64ba09eeae
MD5 b5cd6b597444b492166020325960886a
BLAKE2b-256 d0773e3c98200572b50090727f1f6b545181adcbe8c7d87b55359acdc2fde30c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.15.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83877002ac283aa64504abe05d8775d8e25569bcf79f32157426a8392eadd476
MD5 a1d69c979c21372f2e30b1c6ebf8ee62
BLAKE2b-256 34f058c7d4d5a58a5fb57a7f033fd70075e918cfc5114491b3e20bf43b5314c0

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