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.3.tar.gz (10.1 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.3-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file vmdcube-1.0.3.tar.gz.

File metadata

  • Download URL: vmdcube-1.0.3.tar.gz
  • Upload date:
  • Size: 10.1 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.3.tar.gz
Algorithm Hash digest
SHA256 a067f4ad86e30fff8ca4bc7ccaa4c5ff9327f046d1228646a1ac05c02d0abadf
MD5 854bcffc65f67165911478c1eed1a43b
BLAKE2b-256 125b3a9587c647c6242f1f0950b9e55fd0bad84fea5912358d140b30d048605f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vmdcube-1.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: vmdcube-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 909be73d9b1108ec5f8e34946f1c64c50a10b55b6f389fde1cf02ff8282201ca
MD5 2c7d02762af72bc8e3ad03b2d3b368fa
BLAKE2b-256 42f6d27547471a20cac6bb89bf91c6f5960c0242d8ed3e01fd8075741eba288f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vmdcube-1.0.3-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