Python wheels and a wrapper for GetCleft, a tool to find clefts in PDB files
Project description
GetCleft as a Python Package
A Python package designed to prepare arguments and run GetCleft.
Example usage:
from getcleftpy import run_getcleft
result = run_getcleft("/path/to/myprotein.pdb")
#optional:
stdout = result.stdout
stderr = result.stderr
returncode = result.returncode
file_path_dict = result.file_path_dict
SPH_files = file_path_dict['SPH']
#Using arguments:
#run_getcleft("/path/to/myprotein.pdb", output_clf=True)
Arguments
| Argument | Type | Description | Default |
|---|---|---|---|
pdb_file |
str |
PDB filename (e.g., myprotein.pdb). |
Required |
min_sphere_radius |
float |
Minimum sphere radius. Get_Cleft default is 1.50. |
None |
max_sphere_radius |
float |
Maximum sphere radius. Get_Cleft default is 4.00. |
None |
output_het_atoms |
bool |
Output hetero group atoms in the cleft. Corresponds to the -h flag in Get_Cleft. |
False |
output_all_het_atoms |
bool |
Output all atoms of hetero groups found in the cleft. | False |
chain_ids |
list |
A list of chain IDs to be considered (e.g., ['A', 'B']). If None, all chains are included. |
None |
num_clefts |
int |
The maximum number of clefts to be generated. Get_Cleft default is 0 (all clefts). |
5 |
anchor_residue_specifier |
str |
Specifies an anchor residue or hetero molecule as residue, number, chain, alternate location identifier. The placeholder - is used to indicate a blank character for the alternate location identifier (should be present if unsure) or the chain ID (e.g., LIG123A- or LYS128-). |
None |
anchor_mode |
str |
Mode for the anchor residue. Can be all, interacting, or both. |
None |
include_calpha |
bool |
Include C-alpha atoms of residues in certain outputs. | False |
include_cbeta |
bool |
Include C-beta atoms of residues in certain outputs. | False |
include_all_residue_atoms |
bool |
Include all atoms of the residue in certain outputs. | False |
output_spheres |
bool |
Output the cleft spheres, including their center coordinates and radii. | True |
output_clf |
bool |
Output the clf file. | False |
contact_threshold |
float |
The threshold distance for defining contacts. Get_Cleft default is 5.0. |
None |
output_base |
str |
The full path and filename for the output, without the extension (e.g., /path/to/output/filename). |
Folder of the input pdb_file |
verbose |
bool |
Output filepaths to files written by GetCleft as a dictionary | True |
Returns
| Type | Description |
|---|---|
subprocess.CompletedProcess |
An object containing returncode, stdout, stderr, and file_path_dict. |
Raises
| Error | Condition |
|---|---|
FileNotFoundError |
Raised if the Get_Cleft executable or the specified input file cannot be found. |
ValueError |
Raised if anchor_mode is provided without an anchor_residue_specifier, or if an invalid anchor_mode is given. |
subprocess.CalledProcessError |
Raised if the Get_Cleft executable returns a non-zero exit code, indicating an error during its execution. |
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
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 getcleft_py-1.0.5.tar.gz.
File metadata
- Download URL: getcleft_py-1.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3834e6dbe568ed3a6a23edbe30d95c7a6d9acb75c9b3f1b7d031270879c1e27e
|
|
| MD5 |
e8c9f4044d8e76b9027d89a149916a21
|
|
| BLAKE2b-256 |
1aadb4de822e742588b7b923a283bff4e3b2963e57d074d01ac1c4a464fa9a98
|
Provenance
The following attestation bundles were made for getcleft_py-1.0.5.tar.gz:
Publisher:
build.yaml on NRGlab/getcleft-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getcleft_py-1.0.5.tar.gz -
Subject digest:
3834e6dbe568ed3a6a23edbe30d95c7a6d9acb75c9b3f1b7d031270879c1e27e - Sigstore transparency entry: 359131815
- Sigstore integration time:
-
Permalink:
NRGlab/getcleft-py@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file getcleft_py-1.0.5-py3-none-win_amd64.whl.
File metadata
- Download URL: getcleft_py-1.0.5-py3-none-win_amd64.whl
- Upload date:
- Size: 19.3 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 |
f9d5d09038725b451142f8df25485cb1daa335a97c2caaaaaed4ef6ab203cc12
|
|
| MD5 |
f8ce4763a3a7ab35a53080255d440269
|
|
| BLAKE2b-256 |
b76b5dfa3be5b13aca95bdfe26cd2d9320e4c5381cd83c55ff4b1f713475670e
|
Provenance
The following attestation bundles were made for getcleft_py-1.0.5-py3-none-win_amd64.whl:
Publisher:
build.yaml on NRGlab/getcleft-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getcleft_py-1.0.5-py3-none-win_amd64.whl -
Subject digest:
f9d5d09038725b451142f8df25485cb1daa335a97c2caaaaaed4ef6ab203cc12 - Sigstore transparency entry: 359131870
- Sigstore integration time:
-
Permalink:
NRGlab/getcleft-py@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file getcleft_py-1.0.5-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: getcleft_py-1.0.5-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13ce80ac5dfaddec17686f38a8ed57c540112e0199594937dc36446eeb97d04
|
|
| MD5 |
d93dfadc3f2f75fc7a111f0910c4ee77
|
|
| BLAKE2b-256 |
94aafcb97e7bccc94e25ec55fe481614f069934ed46da3ede78bb469714506a9
|
Provenance
The following attestation bundles were made for getcleft_py-1.0.5-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build.yaml on NRGlab/getcleft-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getcleft_py-1.0.5-py3-none-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
a13ce80ac5dfaddec17686f38a8ed57c540112e0199594937dc36446eeb97d04 - Sigstore transparency entry: 359131844
- Sigstore integration time:
-
Permalink:
NRGlab/getcleft-py@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl.
File metadata
- Download URL: getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 25.4 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 |
9b0f53573500cfccb6b917b61fccfc385d3fbdfbecf649811c99580ac3dd6809
|
|
| MD5 |
9a0ea5c873db50b4b89b72f59159e25d
|
|
| BLAKE2b-256 |
653897140b9f5301ee4b3913e296edc529952768be6c0e1863c90ce51072177e
|
Provenance
The following attestation bundles were made for getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl:
Publisher:
build.yaml on NRGlab/getcleft-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl -
Subject digest:
9b0f53573500cfccb6b917b61fccfc385d3fbdfbecf649811c99580ac3dd6809 - Sigstore transparency entry: 359131901
- Sigstore integration time:
-
Permalink:
NRGlab/getcleft-py@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@40c85e6d13d9d7860720b503b7ed72100fc3e6d1 -
Trigger Event:
push
-
Statement type: