Skip to main content

Generate van der Waals surface points from XYZ files.

Project description

vdw-surfgen

vdw-surfgen is a Python CLI tool to generate points on the van der Waals (VDW) surface of a molecule using its XYZ geometry file.

Surface points are generated at a scaled VDW radius and can be used for visualization, machine learning, or molecular modeling.

It is inspired by Robert T. McGibbon's pyvdwsurface.

🔧 Features

  • 🧬 Read atomic coordinates from .xyz files
  • ⚛️ Compute VDW surface points using Fibonacci sphere sampling
  • 🔬 Set surface density (points per Ų)
  • 💾 Save results as:
    • .xyz pseudo-atom file (always saved)
    • .txt coordinate file (optional)
    • .png 3D scatter plot (optional)
  • 🎨 Beautiful colored terminal output with progress bars
  • ⚡ Command-line interface (CLI) with full control

🚀 Installation

pip install vdw-surfgen

🔨Usage

# Basic usage (XYZ file always saved)
vsg molecule.xyz

# With additional formats and custom parameters
vsg molecule.xyz --scale 1.2 --density 2.0 --txt --img

Options:

  • --scale: Scale factor for VDW radii (default: 1.0)
  • --density: Point density per Ų (default: 1.0)
  • --txt: Save as TXT coordinate file
  • --img: Save 3D visualization as PNG

soajagbe.

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

vdw_surfgen-0.5.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

vdw_surfgen-0.5.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file vdw_surfgen-0.5.2.tar.gz.

File metadata

  • Download URL: vdw_surfgen-0.5.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for vdw_surfgen-0.5.2.tar.gz
Algorithm Hash digest
SHA256 77864cc0201cdee4cd8b91aa5fc3bc1e081e6a3c6519c7da6b624c2f576fc505
MD5 d471d638bf38cf7989dc24516112fc33
BLAKE2b-256 773d6392b120e34b7b32b3c4475c164e22b97bfc45f5653ec4c0846c1c072520

See more details on using hashes here.

File details

Details for the file vdw_surfgen-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vdw_surfgen-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a757808a0713b490bf0699cdbf5e0f45a7ff48594b61799176f3aa8ce8a677db
MD5 4b91616d311c98285bd6b67159c4c732
BLAKE2b-256 3edf52a6b2c2f5a1638448bb13ec8e440f7b459b4da930a06ee5820c5b007066

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