Skip to main content

Python wheels and a wrapper for Vcontacts, a tool to compute surface areas in contact using the constrained Voronoi procedure.

Project description

Vcontacts in a Python Package

A lightweight Python package to simplify running Vcontacts,
a tool to compute surface areas in contact using the constrained Voronoi procedure from the paper:

Quantification of protein surfaces, volumes and atom-atom contacts using a constrained Voronoi procedure
(doi: 10.1093/bioinformatics/18.10.1365)

This makes it easy to run Vcontacts directly from Python, capture the output, and optionally return the result as a Python dictionary.


Installation

pip install vcon-py

Example Usage

from vconpy import run_vcon

# Run Vcontacts
result_surfaces = run_vcon(
    "/path/to/receptor.pdb",
    vcon_type="surfaces"
)

# Run Vcontacts and return a dictionary instead of outputting a file
result_nrgten = run_vcon(
    "/path/to/receptor.pdb",
    as_dictionary=True
)

# NRGTEN requires setting showbonded as True
result_nrgten = run_vcon(
    "/path/to/receptor.pdb",
    as_dictionary=True,
    showbonded=True
)

print(result_nrgten.surface_dictionary)  # dict of atom-atom contact areas

Arguments

Argument Type Description Default
pdb_filename str Path to the input PDB file. Required
showbonded bool If True, include covalently bonded atoms in the contacts (-all flag). False
normalize bool If True, normalize contacts to percent of total contact area. Otherwise, contacts are given in SAS units (Ų). (-norm flag). False
planedef str Plane definition for analysis. Options: X (extended radical plane), R (radical plane), B (bisecting plane). None
as_dictionary bool If True, returns a Python dictionary. The .vcon file is deleted after parsing. False

Returns

The function returns a VconResult namedtuple with the following fields:

Field Type Description
vcon_filename str Path to the generated .vcon file.
surface_dictionary dict Dictionary of atom-atom contact areas (only if as_dictionary=True).
stdout str Standard output from the Vcontacts process.
stderr str Standard error from the Vcontacts process.
returncode int Exit code from the Vcontacts process.

Raises

Error Condition
ValueError Raised if the input file does not exist, or if vcon_type is invalid.
VconError Raised if the Vcontacts executable is missing, not executable, or fails.

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

vcon_py-1.0.1.tar.gz (24.2 kB view details)

Uploaded Source

Built Distributions

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

vcon_py-1.0.1-py3-none-win_amd64.whl (28.5 kB view details)

Uploaded Python 3Windows x86-64

vcon_py-1.0.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.8 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

vcon_py-1.0.1-py3-none-macosx_10_9_universal2.whl (40.0 kB view details)

Uploaded Python 3macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file vcon_py-1.0.1.tar.gz.

File metadata

  • Download URL: vcon_py-1.0.1.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vcon_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f5431f8c1d145559a2775b5391ebaea9ecc03ec636ba08ad16d6e9efed18b814
MD5 242e0c25539836defd5b5d3ace0853ba
BLAKE2b-256 8722dbb79fc1b1382d6a3447c02fdf6019db152b794302f3490e1100206d6be2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcon_py-1.0.1.tar.gz:

Publisher: build.yaml on NRGlab/vcon-py

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

File details

Details for the file vcon_py-1.0.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: vcon_py-1.0.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vcon_py-1.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 075ec81d859cb348ac9b76bf2dd8e0b17ff7ac4eb1383c737031d47fc7db3aee
MD5 59bbf87cfa4026413011bd8a848097c7
BLAKE2b-256 45462cc003ba48dee4c98c17d06157abb6d6635269b7728a41b933351db587d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcon_py-1.0.1-py3-none-win_amd64.whl:

Publisher: build.yaml on NRGlab/vcon-py

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

File details

Details for the file vcon_py-1.0.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vcon_py-1.0.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d7bf401ab819d683136c5854e414f97e9828865f9db020701fdc71916832dc2
MD5 1c3875e1772c9f80144277b2a08a0807
BLAKE2b-256 cd6c0b6d3a7d586b0c721d4dc0f7f2c20629daf2129be40120422f3ee276fa4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcon_py-1.0.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yaml on NRGlab/vcon-py

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

File details

Details for the file vcon_py-1.0.1-py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for vcon_py-1.0.1-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5639bf1ea4a8da407918d01ea1c4e35f870562637485f99728f5c2c8dc768d6c
MD5 f7a9a9c7f5d189a2ec275985417a0df6
BLAKE2b-256 55c668a8596cf9d28bec60bd8a8322b3c48f11661e60fba04170fe9c6b86fbdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcon_py-1.0.1-py3-none-macosx_10_9_universal2.whl:

Publisher: build.yaml on NRGlab/vcon-py

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