Skip to main content

A Python package for rendering cube files with VMD.

Project description

VMDCube

GitHub GitHub issues GitHub pull requests GitHub last commit GitHub contributors GitHub repo size GitHub stars GitHub forks

Description

A simple pip-installable Python module to generate pretty 3D visualizations of molecular orbitals like the one below:

Example of orbital rendered with VMDCube.

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:

Example use of VMDCube in Jupyter.

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

vmdcube-1.0.5.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vmdcube-1.0.5-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

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

Hashes for vmdcube-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b4a5afc7a660491a620f17d445f0323c8423fa8262cc234b34ab81f09c4aeaed
MD5 93368e3bdd58a00ce01ddbb3f1d021ac
BLAKE2b-256 d74bc7c726c74f1d5a20a90bc15c819e92e07aa4837d0842d671aac09b7189d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vmdcube-1.0.5.tar.gz:

Publisher: python-publish.yml on fevangelista/VMDCube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for vmdcube-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41b3bc511281aed8d6dd4ea7a24875df6f27be173d4982f3b00e3fb70a7b1f3e
MD5 6edb9d7a7d4a7e4c3758ec0479728800
BLAKE2b-256 ebbf02bc90d716c1a77c309bee79fed068b6f6e819de3e225702e0755a936acf

See more details on using hashes here.

Provenance

The following attestation bundles were made for vmdcube-1.0.5-py3-none-any.whl:

Publisher: python-publish.yml on fevangelista/VMDCube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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