Skip to main content

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.

Metadata

Release files for getcleft-py 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getcleft-py 1.0.5
File Size Uploaded
getcleft_py-1.0.5.tar.gz 5.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for getcleft-py 1.0.5
File Interpreter ABI Platform
getcleft_py-1.0.5-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
getcleft_py-1.0.5-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux glibc 2.12+ x86-64 Details
getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl Python 3 none macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 67.8 kB

Release files / getcleft_py-1.0.5.tar.gz

Download URL getcleft_py-1.0.5.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3834e6dbe568ed3a6a23edbe30d95c7a6d9acb75c9b3f1b7d031270879c1e27e
BLAKE2b-256 checksum
How to use checksums
1aadb4de822e742588b7b923a283bff4e3b2963e57d074d01ac1c4a464fa9a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2025.

Transparency log

Release files / getcleft_py-1.0.5-py3-none-win_amd64.whl

Download URL getcleft_py-1.0.5-py3-none-win_amd64.whl
Size 19.3 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f9d5d09038725b451142f8df25485cb1daa335a97c2caaaaaed4ef6ab203cc12
BLAKE2b-256 checksum
How to use checksums
b76b5dfa3be5b13aca95bdfe26cd2d9320e4c5381cd83c55ff4b1f713475670e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2025.

Transparency log

Release files / getcleft_py-1.0.5-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 17.4 kB
Tags Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a13ce80ac5dfaddec17686f38a8ed57c540112e0199594937dc36446eeb97d04
BLAKE2b-256 checksum
How to use checksums
94aafcb97e7bccc94e25ec55fe481614f069934ed46da3ede78bb469714506a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2025.

Transparency log

Release files / getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl

Download URL getcleft_py-1.0.5-py3-none-macosx_10_9_universal2.whl
Size 25.4 kB
Tags Python 3 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
9b0f53573500cfccb6b917b61fccfc385d3fbdfbecf649811c99580ac3dd6809
BLAKE2b-256 checksum
How to use checksums
653897140b9f5301ee4b3913e296edc529952768be6c0e1863c90ce51072177e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.5 This release

4 release files

1.0.4

4 release files

1.0.3

4 release files

1.0.2

4 release files

1.0.1

4 release files

1.0.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page