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

Uploaded CPython 3.13Windows x86-64

moleculekit-1.14.10-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.10-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.0 MB view details)

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

moleculekit-1.14.10-cp313-cp313-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

moleculekit-1.14.10-cp312-cp312-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.12Windows x86-64

moleculekit-1.14.10-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.5 MB view details)

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

moleculekit-1.14.10-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.1 MB view details)

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

moleculekit-1.14.10-cp312-cp312-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

moleculekit-1.14.10-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.4 MB view details)

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

moleculekit-1.14.10-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (17.1 MB view details)

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

moleculekit-1.14.10-cp311-cp311-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

moleculekit-1.14.10-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (17.0 MB view details)

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

moleculekit-1.14.10-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (16.7 MB view details)

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

moleculekit-1.14.10-cp310-cp310-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 90f6d124d93a0d9296a5d8a8ef14f293c6d4ecaa287c4de1000f59efe9280103
MD5 83a973903377f59a36ca88a264934e87
BLAKE2b-256 3a686b995505dd0ef7517dac1cf00d4158d68745c4559e58ab8cf0db670cb10c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de9d5af3035db8eab490a688df9db2e11b16adbfab2f0a80dc052121f882dc5c
MD5 e650dfb1571ba28415f21ad9e0312be5
BLAKE2b-256 a0ef68451b472f6441ae7c35763236e50db25fde6719ed0877cfb9d7b8d29a68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9412ad74f5caf744803c2c7b04a04d978a15c0d545cfc26a40a1a32ed5afefcf
MD5 f3e65b0843318795ff140b127896da7d
BLAKE2b-256 e913ba2ebb7aeb09f70b3d1abf65c7d22749f0923ab645d755ffb3a1a7191140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec995f5da72c08d811fafc90fd140ab947e63544d25f26f755a0aa7acb136a77
MD5 265ae2066f029754c573785c2bd045cd
BLAKE2b-256 625e76290a2dcea7111d79c78506c54b1fded318a3b7f1d757f497291b454f52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e8267a9cf1bebd22b52f10b9c55d81d1c8749d72c79e1d16ad226e032462380
MD5 e6a9afa537574dbbaee6eed456875162
BLAKE2b-256 6c2282eff15681c8758302a4ae1f760da3ed7ccd10e8a822fb6e33fcddadaac4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 faa38488268114b29ea6dca5afa471be84f29d9d84d826d79837cce7eff02512
MD5 58fa47565a5663203045c2c3f945d1a7
BLAKE2b-256 f64e3cf8f750a86f09378c9474fac95b0983f1a08c42eef98b376d29e201295d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f859a5b2f3d6b74551711f2a3d888535a9e6d8f3857918e7ffed8451ccb5a609
MD5 d7045cdf0ddded9b3cee29b290647295
BLAKE2b-256 27463bc2a1f7c2c53b33c654286c70ef60d1d8b0436f02be68bbdcb5696557e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b213bee9c3e1db8d3303cac5888c00346183d6234236c85b63ed6e44e277ff7
MD5 690cac2ec54312e53dae048e2f3cebb9
BLAKE2b-256 83792837083db0a061b412fc7ebad0e6117d645f8937c6f7b23855483209b45b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 369d42d314126b503b2745eaa9312ce21f4358511cd1c98f2f0691924b88076c
MD5 fc22d0b785ad7d0eaaa5db81e8c573f4
BLAKE2b-256 ea75764ffd859015f53c3bf6c3a92fa006ba6c7ca0092a4a4eba1c7be9616acb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d325d8bf8b3cbb78d50b93336473d59c75019ce4d7697343ee03fc0533b68aaf
MD5 482b1a1f596aed623ca1ba400d69abce
BLAKE2b-256 50ed340344734fe1737e1407884ab60ef150a1399163444965e21f07b7f4c8f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 58d271b453d4e4d8362cb5ec261d6917b1041d7c1ca6853ffa9b707ecdc5f964
MD5 70521afa1820f80fdfd25e9c7582ea42
BLAKE2b-256 da4ef9f398bbe513d036e418adfc08fbd97e6f079392e20d0773b734f12c7290

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 380454ed2abaa77c33cff6b15d8a3d00863eb7b91d4d0ba8886e3d24dd93e938
MD5 da3014a6e7b4dfd3276367be8a136622
BLAKE2b-256 af9d82425e9591c806a07224b8c700b232deab3f813afcd09cf978dae51ccf78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6199f9d4b2d36ac5a6882c0129cf8198f52104d80427e5d8c12035ec4b92e5e3
MD5 6316fbcaa4c0c0165a849ec42eb0589c
BLAKE2b-256 84452aebdb65ce455efe24618b0fb17b045a5422e2781b73ee756fccb3e64b9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e80845806cda0f90bca0b37dcf37d2945a0545b87e89ea8383ed36417b4a2c29
MD5 8af41caa3b75204412bb47ba8d1a3acc
BLAKE2b-256 ee2b8b0a6c1a7c37eb76edbdfd793bdef49e1719659a7c3411d8a2cd306b0dd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f9c79d010639e510b1a1e28dc565279989159244cd796f79efc652ca3d375498
MD5 87bd3a6e56db20a332791d6749d77b04
BLAKE2b-256 dff7a29a6bb60e223bb4cf2276ad136f7343bd6d457ea220d86f4310ed7e9831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moleculekit-1.14.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 285540776ee9f991b0f13b28e7ab807d1d64b3c01ce18a1c33c37bac85721bc3
MD5 0674064789f67ebaaed89cda5c9231d1
BLAKE2b-256 438d02b19b7d206f8ed40f9bd65cf63946cab0a48d2da804b990417a0b5110ae

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