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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9b65d00dd4c3edfbb50abefdf4a05e2fbafd6756f5266e3efbe27d09eca263d9
MD5 12ee4d514afb48096d52c50f6660b3e3
BLAKE2b-256 cf7b2675b16bfb7a695a45b23e82f01bc2849e573ca890d4e09f11e6d22caaa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d5e19d7c1a943ea94194c3320a51823116b350682c93590e40c8b849f8456fd6
MD5 1806add5c87a387562dd0bc31084d1d4
BLAKE2b-256 cc8eec1953371e47f32516635dcdb419b6254498897574c4ebe2c6ff62a44f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 de1508956b65721e02573270b8a2ea1e461bce3054a0789652e007cb66690079
MD5 17a56c1a0de0a5e2a0d350d26b070988
BLAKE2b-256 06f380e73c661097da08299638cce634434d20b5a1d094a40859ceb730658aeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5f95c9e9a072d042eca260d646f59efce097302bbd47c4aaaaf1af551b3d8a2
MD5 8d3ec6d52df833e9de3ee685eeb1d029
BLAKE2b-256 1c7244f656001a33f5a7981cb05ce4aac4664496b80d5e7de096a896f9435c2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3a37c9b9c3528cc4afad59941d02b1071316135cf86f165262841a9b1e490e25
MD5 3680585bf818c508e71a77a7cf44f8be
BLAKE2b-256 70f70e228bee9647638a865857f1abe5107d6df820e3bcc78f275420757559df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a1dcb8290eababc66d67e66f4b8fa9364cb426bae81cc4b7e50b682b0c96f08
MD5 4a06edfa19071ff030574c63fd05355b
BLAKE2b-256 ccaddfc3e6b5861e4401c77c818b485e0fc38472591eb8709aa90ae346f69eb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f392f1ebe6de077070f87bc6691bb0d32969459d605ce3287755b63d62645292
MD5 b0135f68c5d1bb71573f399dc64ae208
BLAKE2b-256 7f3e513e3c71621f3ff4851968d44b89014abb43645d312bea43d993ba447732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cee926b725ee29a798257fb8514104be4657cf511d1ffa59eb319d3ecbe5adce
MD5 92bd0eb5d7c8b1f245de2a986045c10e
BLAKE2b-256 ff65e531198dba37e74c734e689ea76af5d82a1790dd734870ee96eb968d9482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 566214011d404d0a60c9a391fad34dcaa66de842c38c55a4e379323bd71edca8
MD5 6d1010663af8d9413236d9de6124fd18
BLAKE2b-256 e9ad494d0b745914fe563f2f2bc987ecdd88cfcad8d70b61f538ee7f14656961

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db17192c5735ac97cb6f8cdb9c349abf9a7815794296e7c324b0e0f90487cb08
MD5 396488e545244a88661c6008aa3d26a5
BLAKE2b-256 f9673892029cdb5d96757d3ab6246a67144ac6185e3e5e82b9e0ef9bc8aa8945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d86cf34d6795881e6f30a0a0d34d55a6c5b5dbe4ad9a3b31aec0be794eb3c72b
MD5 ac2535f031e9c31e958d9e8a0b2c2d4f
BLAKE2b-256 6b401327b27954529c2ad5e99ea0b463d1addc2033774f11bb8901110159caf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d6e11e0961a4b7fe6efd881689b1a9986b2136204bed318093e0f973a72f5ea
MD5 510308e55bf86239988069e591dab656
BLAKE2b-256 b7a8f47b0b615f999684416354232932ad3dfaedae8928c6cebc590dee330331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42c6acf929527a85099064fd328e600fb0bcedd14358fe6ef7be32a3375c142f
MD5 4d01b13fb102e2325ae863a247b3feef
BLAKE2b-256 5250aaad2d834cf793b24820efe90a5172b243719928f7df4e10316956deeb00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94074f9ebe31eb22f682ff25f8a63fd3a42b86c52512ebe4ca822b61866f6c0e
MD5 c83c6a2d080d790f9a22dffa3d28356f
BLAKE2b-256 4bc949f9e018f135c84e3a168114b78ac381717dd63db7792ef0e9d29ffa3f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4c02d95701a020a0c3b819f8659340e3a2c4fd8a8962a5c4d467cef7def356f
MD5 1c1377075f92ce4c1610720bd0b002f0
BLAKE2b-256 ac698ed569f1fe58f7bbf7aeba5c0b2e78fb63340d55d57012f9f696fa82305c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.11.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4731ccdf3496b41618be9697f541a09a7eedad90999edda3c3d427a88a03634f
MD5 b9f88a1bb7c36069d0928de1008bd642
BLAKE2b-256 6653cd65322e04aa23d501ca84b4f4c76250fc9507267374ed17d966f520ee19

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