Skip to main content

ProcessLigand as a Python Package

A Python package designed to prepare arguments and run ProcessLigand.


Example usage:

from processligandpy import run_processligand

# For a ligand
result_ligand = run_processligand(file_path='path/to/target_or_ligand', atom_index=90000)

# For a target:
# result_target = run_processligand(file_path='path/to/target_or_ligand', target=True)

# Using arguments:
# result = run_processligand(file_path='path/to/target_or_ligand', atom_index=1)

# Expanding the result:
output = result_ligand.stdout
error = result_ligand.stderr
returncode = result_ligand.returncode
file_path_dict = result_ligand.file_path_dict

Arguments

Required Argument

Arg Description
file_path Input file (not listed in the provided dictionary)

Optional Arguments

Flag Value Type Description
target <BOOL> Parse a target
v <INT> Verbose level (0 prints nothing. 1 prints everything)
o <STR> Output base filename
e <STR> Residue to extract
c <STR> Convert molecule to specified format
atom_index <INT> Starting atom index
res_name <STR> 3-char ligand code
res_chain <CHAR> Ligand chain
res_number <INT> Ligand number
force_gpa <INT> Force reference atom
force_pcg <FLOAT FLOAT FLOAT> Force protein center of geometry
d <BOOL> Deletes tmp files created when converting inout to mol2
pf <BOOL> Prints a line containing the filepath to every written file
hf <BOOL> Include hydrogen flexible bonds
wh <BOOL> Add hydrogen atoms in output
ref <BOOL> Output final PDB from IC
gen3D <BOOL> Generate 3D conformation

Raises

Exception Description
FileNotFoundError If the required input file 'f' does not exist.
ProcessLigandError If the external process fails to execute.

Returns

Type Description
ProcessLigandResult A namedtuple containing stdout, stderr, returncode, and file_path_dict.

Metadata

Release files for processligand-py 1.0.4

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

Source distribution (sdist)

Source distribution for processligand-py 1.0.4
File Size Uploaded
processligand_py-1.0.4.tar.gz 4.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for processligand-py 1.0.4
File Interpreter ABI Platform
processligand_py-1.0.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
processligand_py-1.0.4-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details
processligand_py-1.0.4-py3-none-macosx_10_9_universal2.whl Python 3 none macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 30.5 MB

Release files / processligand_py-1.0.4.tar.gz

Download URL processligand_py-1.0.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d1f22cff8e04070bec99f299bd5851290cbd5eac926ac01b85df11b5348365
BLAKE2b-256 checksum
How to use checksums
95a6d1741da89ef52c63112ddf7775e13b7c795b37c90d02a490189f1c9b5a63
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 26, 2025.

Transparency log

Release files / processligand_py-1.0.4-py3-none-win_amd64.whl

Download URL processligand_py-1.0.4-py3-none-win_amd64.whl
Size 20.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0ee5b90aac18eab083540c24f5e4f9e122cad1f4da8b2d56e9d12ad299a7571c
BLAKE2b-256 checksum
How to use checksums
68021588a3fbb509ad18c870a78eba07ef5d3c64927efa8c4a74312b39a0e789
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 26, 2025.

Transparency log

Release files / processligand_py-1.0.4-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL processligand_py-1.0.4-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 5.1 MB
Tags Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
98c7db6ab4818d400bbc05e7818609cae705a9d6cac13c9ed791636be84c479f
BLAKE2b-256 checksum
How to use checksums
edaee64a42832132635085a85bdb04e81748fb1a3536457daf6a449acc4e2c82
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 26, 2025.

Transparency log

Release files / processligand_py-1.0.4-py3-none-macosx_10_9_universal2.whl

Download URL processligand_py-1.0.4-py3-none-macosx_10_9_universal2.whl
Size 5.0 MB
Tags Python 3 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
2ec46a04e7b6817b11afd90193b46798d1aec45b2d07ec7e5a9950c2006eb0af
BLAKE2b-256 checksum
How to use checksums
21e7bcc0b756f54e44f8d107295584f3cf0e36670a7514e7a60e09b13be7f0fd
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 26, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.4 This release

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