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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.13.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.13.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.8 MB view details)

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

moleculekit-1.13.0-cp313-cp313-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.13.0-cp312-cp312-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.13.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.13.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.9 MB view details)

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

moleculekit-1.13.0-cp312-cp312-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

moleculekit-1.13.0-cp311-cp311-win_amd64.whl (5.7 MB view details)

Uploaded CPython 3.11Windows x86-64

moleculekit-1.13.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.13.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.0 MB view details)

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

moleculekit-1.13.0-cp311-cp311-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

moleculekit-1.13.0-cp310-cp310-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.10Windows x86-64

moleculekit-1.13.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (15.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

moleculekit-1.13.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (15.5 MB view details)

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

moleculekit-1.13.0-cp310-cp310-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file moleculekit-1.13.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 34fa126f27225e9d88030cf81cd4f7902876847c47ab722697e2112bd25d40f5
MD5 f2dae434627afe6021c4ce4fdfd8558e
BLAKE2b-256 61353883ed1fae1d9f8b66b61ceeaa3cf302eecdf69469c416efc68221fd8bef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd3bd8e983f348220179d9e8f39d10c6685e5d35ecbb4a42c2896750e4aa2361
MD5 96dd672e36756f9a9819adba4ecc2947
BLAKE2b-256 59ef45edba13760210952eb0eb775cee245e2ab8c584021e9f39e73582ef55f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c1eaa43423bc7698b60a2889a6278295de51585c50155d06fdc894a50fa82ef1
MD5 cdb064b5fd0534326ef7ed441f84c8ff
BLAKE2b-256 f7d9f72233019d5f61766ec55061cfaac70a4c8229826e1dfccdba5c0a7cf9b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31177ef37b2bb46773b677f93d8a9cc55bfed72f6fed8282399da5b8167d5b78
MD5 988b8ddbae7991e96a57e3d3738466a6
BLAKE2b-256 5f348505af2506844b6cff79c3fa9726a90e53fc3a6b8fb9baccef9f9d25dfc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 666b3d469f7b64b57c208b4aae187daea3db548a61b93788b137f6628c541b6c
MD5 11055eae6abd2144ea9ee3fc3787eaa3
BLAKE2b-256 32750785eceacd5c12456b99501905601270a884f6f2524f540bbf8e22336779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9be4bf4da94033f98e1b84ced77684debef4b2b6e5241b11661d88e9662d8992
MD5 37f25a54ccc0cc9c15acb86da10cf838
BLAKE2b-256 4f3b07716ad629f3a538a449ce5138d40c6d83676ec2930bbcb9ba586d95661b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85e64fb0567de3b839f9e5d64a25ca61ffb0f27b74347f4c8671e960d053bf0b
MD5 407c7816024f88ce2f5b636ae33f4fe8
BLAKE2b-256 df832b708e1ab5c56463a38d69cae27f8c823984219a00de5c75fbba43337e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d189d1677e92a73eb73788fc834f63ff7864e54c94f73c2467a23be62f6db9c8
MD5 0c48ab35d62cd32329ac717918fadb6c
BLAKE2b-256 4263a36b5a2a75bdfb167cf19932b5a6a87b22adfb34b240ca0653bb1d3c38d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 995e1aff7e2e3fdf62a7448cc4d09f3f1a84bb214c6e5e774c6e9c0cfd2ba1f0
MD5 5bf6480434e7fffa1c10e5ac015caa61
BLAKE2b-256 965723044138de50ba2205e69b938476f82b1d7a4f5c053913e81e5b402f90cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fac57314d93da36695d00f081e55d85dbbe11c51530c30601a583bc47cd0a50c
MD5 e41747a7a2e246375f7b18e9c3254d1e
BLAKE2b-256 6b859b4cc514896ee9577dadfc673be7606c7ac73fb8bf3b5a6d7d9b320226a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 79f0ed57c7444d04c80b3fd0144902789d3bed2ddbb3648fccfbbb97efbd21f1
MD5 b177f884717b95f9641b3e00436de51f
BLAKE2b-256 fdfa4b9f906f914f1920a0a758574e23e48339ca0aa189ab55e448c41d136f00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bee1b630af553971725eb6e5afaacd47c21f18b80df03ca57a817c9d24033f27
MD5 3b2a93982252b6b58fc1d4a3e4fa9975
BLAKE2b-256 368626987cac9acaf2bfa593cb79f4458cfb78496eceb23f09338e73de5416bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a881d1fb9754a47aa51d14dcbba4ae46f5b1d0540bace28d870c8253349db6bf
MD5 de9d2919f7d01875e4e7dbee737d9257
BLAKE2b-256 2de51470006d121e6038dd696ddbf5b475e14041d97422ee05b4bb388028d060

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b1343e3d896af712c0cd49a043e4cb76bc34865676fb69414c44c9522c32842
MD5 613be301275ff5e82a3c2bb01ae7908e
BLAKE2b-256 c5c25720d2a8da69654f23b34cf87ee38de9235de21222d84f679b6499e7596e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 644e08ee8343a0df136438a279e63def6f480cbc044c9f1e54f694533be4b990
MD5 dc4bad9ca5fe094d57ae358e481647f7
BLAKE2b-256 99d515f57b14292d3266573efca7eb5bb2f2d153abba99e5006200c6578b4cab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.13.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a7216590c43dcad0a51fead086d1778739985a606fadc8ebb05a47c8270f8c9
MD5 523b07eaa85cf5aff09ddb8070faca79
BLAKE2b-256 f43467a395cd2057014b62e43ebb149fb3569aabe462a0a5d6a625e8062693a5

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