A Python package for rendering cube files with VMD.
Project description
VMDCube
Description
A simple pip-installable Python module to generate pretty 3D visualizations of molecular orbitals like the one below:
VMDCube is designed to work with VMD (Visual Molecular Dynamics) and can render isocountour surfaces saved in the standard cube file format. VMDCube can visualize molecular orbitals, electron density, and other volumetric data.
Features
VMDCube can be used in Python scripts and Jupyter notebooks to render cube files. Here is an example of how to use it in Python:
from vmdcube import VMDCube
vmd = VMDCube() # by default, render all cube files in the current directory
vmd.run()
The following showcases VMDCube's visualization capabilities in Jupyter notebooks:
Installation and setup
VMDCube
VMDCube is available on PyPI and can be installed using pip:
pip install vmdcube
VMD Path
VMDCube requires the environment variable VMDPATH to be set to the location of the VMD executable.
For example, if you’re using zsh and the VMD executable is /Applications/VMD 1.9.4a55-arm64-Rev11.app/Contents/vmd/vmd_MACOSXARM64, set VMDPATH to this value in your shell configuration file.
For example, for zsh add this line to your ~/.zshrc file:
export VMDPATH=/Applications/VMD\ 1.9.4a55-arm64-Rev11.app/Contents/vmd/vmd_MACOSXARM64
After updating ~/.zshrc, either restart your terminal or run the following so the change takes effect:
source ~/.zshrc
VMD
VMDCube requires VMD to be installed on your system. You can download VMD from the official website: VMD Download.
Installation from source
Clone the repository, then run:
git clone git@github.com:fevangelista/VMDCube.git
cd VMDCube
pip install -e .
Tutorials
See the VMDCube introductory tutorial for how to use VMDCube in Jupyter notebooks and available rendering options.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vmdcube-1.0.5.tar.gz.
File metadata
- Download URL: vmdcube-1.0.5.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a5afc7a660491a620f17d445f0323c8423fa8262cc234b34ab81f09c4aeaed
|
|
| MD5 |
93368e3bdd58a00ce01ddbb3f1d021ac
|
|
| BLAKE2b-256 |
d74bc7c726c74f1d5a20a90bc15c819e92e07aa4837d0842d671aac09b7189d2
|
Provenance
The following attestation bundles were made for vmdcube-1.0.5.tar.gz:
Publisher:
python-publish.yml on fevangelista/VMDCube
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vmdcube-1.0.5.tar.gz -
Subject digest:
b4a5afc7a660491a620f17d445f0323c8423fa8262cc234b34ab81f09c4aeaed - Sigstore transparency entry: 192579220
- Sigstore integration time:
-
Permalink:
fevangelista/VMDCube@1266740c5fde945f0f253cf56a21dd84209b5544 -
Branch / Tag:
refs/tags/v.1.0.5 - Owner: https://github.com/fevangelista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1266740c5fde945f0f253cf56a21dd84209b5544 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vmdcube-1.0.5-py3-none-any.whl.
File metadata
- Download URL: vmdcube-1.0.5-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b3bc511281aed8d6dd4ea7a24875df6f27be173d4982f3b00e3fb70a7b1f3e
|
|
| MD5 |
6edb9d7a7d4a7e4c3758ec0479728800
|
|
| BLAKE2b-256 |
ebbf02bc90d716c1a77c309bee79fed068b6f6e819de3e225702e0755a936acf
|
Provenance
The following attestation bundles were made for vmdcube-1.0.5-py3-none-any.whl:
Publisher:
python-publish.yml on fevangelista/VMDCube
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vmdcube-1.0.5-py3-none-any.whl -
Subject digest:
41b3bc511281aed8d6dd4ea7a24875df6f27be173d4982f3b00e3fb70a7b1f3e - Sigstore transparency entry: 192579221
- Sigstore integration time:
-
Permalink:
fevangelista/VMDCube@1266740c5fde945f0f253cf56a21dd84209b5544 -
Branch / Tag:
refs/tags/v.1.0.5 - Owner: https://github.com/fevangelista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1266740c5fde945f0f253cf56a21dd84209b5544 -
Trigger Event:
release
-
Statement type: