Skip to main content

3D visualization of small compounds

Project description

PenguineMol3D

PenguineMol3D is an open source Python3 package, which utilizes OpenGL python binding (https://pyopengl.sourceforge.net) for rendering of small compounds' 3D models.

Usage

Initially, the RDKit Mol object is created from data in a file (e.g, MOL\SDF, MOL2 format) provided by user; the Mol object is further passed as an argument to the Mol3D class constructor, which generates a 3D model based on atom coordinates of the Mol object conformer. During the initialization stage (before running an event loop) user has to setup a scene by creating MolecularScene object and adding all necessary components like molecule and light sources as it is demonstrated in examples. As a drawing surface for rendering can be used any surface compatible with OpenGL; particularly, provided by such GUI libaries as GLFW (used in examples), PyGame, PyQt, PySide, wxPython, Tkinter + Togl widget, etc.

After installation enter:

python -m PenguineMol3D.glfw_surface_example python -m PenguineMol3D.glfw_screenshot_example python -m PenguineMol3D.glfw_transformations_example

Main folder also contains script, which can be used for small molecule visualization with predefined scene, to run it enter:

python -m PenguineMol3D.display_molecule molecule_name.sdf

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

PenguinMol3D-0.0.5.tar.gz (46.8 kB view details)

Uploaded Source

File details

Details for the file PenguinMol3D-0.0.5.tar.gz.

File metadata

  • Download URL: PenguinMol3D-0.0.5.tar.gz
  • Upload date:
  • Size: 46.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for PenguinMol3D-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c83bdfb7b851321a87ad7e8a9e9c3a5d8b113b23d4dfb3ed9a8cab676b9ee920
MD5 39b98145aef8598ce7ff165b2783af70
BLAKE2b-256 7da1077e649ad3b058f13c72db0aa581bac11721c817a767881dae072e6f6e80

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