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 = run_vcon("/path/to/protein.pdb")
# Run Vcontacts and return a dictionary instead of outputting a file
result_with_dictionary = run_vcon("/path/to/protein.pdb", as_dictionary=True)
# NRGTEN requires setting showbonded as True
result_nrgten = run_vcon("/path/to/protein.pdb", as_dictionary=True, showbonded=True)
print(result_with_dictionary.surface_dictionary)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vcon_py-1.0.2.tar.gz.
File metadata
- Download URL: vcon_py-1.0.2.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1f9e3ff6e2f246c6b0ee7a61f7e12e928a54486c314fbcf0a289c158b93a2d9
|
|
| MD5 |
e2fa0319dd0b8cc5bb85685254217029
|
|
| BLAKE2b-256 |
5baa671fb2abe9d7078e4d1a1fa828d6800ee62d6ea6b26fa822ce85edb4cc18
|
Provenance
The following attestation bundles were made for vcon_py-1.0.2.tar.gz:
Publisher:
build.yaml on NRGlab/vcon-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcon_py-1.0.2.tar.gz -
Subject digest:
d1f9e3ff6e2f246c6b0ee7a61f7e12e928a54486c314fbcf0a289c158b93a2d9 - Sigstore transparency entry: 467136908
- Sigstore integration time:
-
Permalink:
NRGlab/vcon-py@de08861a32e47d04ed7289a8ef02925c035480cd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@de08861a32e47d04ed7289a8ef02925c035480cd -
Trigger Event:
push
-
Statement type:
File details
Details for the file vcon_py-1.0.2-py3-none-win_amd64.whl.
File metadata
- Download URL: vcon_py-1.0.2-py3-none-win_amd64.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60768817be53faba3dcc7336e18bee26b5c39aa43a34b9282acd04a0ebbf2383
|
|
| MD5 |
2f30f332452d7919e271d0c17795cf1a
|
|
| BLAKE2b-256 |
4355170cc71f9d8475377a42aae2b07c7819db9fd7cfb88e01adc3106f11a115
|
Provenance
The following attestation bundles were made for vcon_py-1.0.2-py3-none-win_amd64.whl:
Publisher:
build.yaml on NRGlab/vcon-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcon_py-1.0.2-py3-none-win_amd64.whl -
Subject digest:
60768817be53faba3dcc7336e18bee26b5c39aa43a34b9282acd04a0ebbf2383 - Sigstore transparency entry: 467136958
- Sigstore integration time:
-
Permalink:
NRGlab/vcon-py@de08861a32e47d04ed7289a8ef02925c035480cd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@de08861a32e47d04ed7289a8ef02925c035480cd -
Trigger Event:
push
-
Statement type:
File details
Details for the file vcon_py-1.0.2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: vcon_py-1.0.2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81d22e3f6b98b99f6a28b36eeef1f343d5789e67bbc58634aee7f2e1efad7209
|
|
| MD5 |
0a5eee4885d9d61090fdfbfe53f126c3
|
|
| BLAKE2b-256 |
a1014146cb1b0263d3b8ef158465aa321f29e12307df645b494b8adbe0ec3627
|
Provenance
The following attestation bundles were made for vcon_py-1.0.2-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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcon_py-1.0.2-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl -
Subject digest:
81d22e3f6b98b99f6a28b36eeef1f343d5789e67bbc58634aee7f2e1efad7209 - Sigstore transparency entry: 467136922
- Sigstore integration time:
-
Permalink:
NRGlab/vcon-py@de08861a32e47d04ed7289a8ef02925c035480cd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@de08861a32e47d04ed7289a8ef02925c035480cd -
Trigger Event:
push
-
Statement type:
File details
Details for the file vcon_py-1.0.2-py3-none-macosx_10_9_universal2.whl.
File metadata
- Download URL: vcon_py-1.0.2-py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b155cb90a74bb34e30902d45f3707282ef5e1ab5ddfd64b36ab17ba36de364a
|
|
| MD5 |
f155f6d206710027df78a7bfcbe3dec1
|
|
| BLAKE2b-256 |
81b3aefc921cf1f131d7df7a8df87837b90358e1d5bbf9f0e50f81b278cdf530
|
Provenance
The following attestation bundles were made for vcon_py-1.0.2-py3-none-macosx_10_9_universal2.whl:
Publisher:
build.yaml on NRGlab/vcon-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcon_py-1.0.2-py3-none-macosx_10_9_universal2.whl -
Subject digest:
9b155cb90a74bb34e30902d45f3707282ef5e1ab5ddfd64b36ab17ba36de364a - Sigstore transparency entry: 467136937
- Sigstore integration time:
-
Permalink:
NRGlab/vcon-py@de08861a32e47d04ed7289a8ef02925c035480cd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@de08861a32e47d04ed7289a8ef02925c035480cd -
Trigger Event:
push
-
Statement type: