Socket
Book a DemoInstallSign in
Socket

processligand-py

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

processligand-py

Python wheels and a wrapper for ProcessLigand, a tool to prepare target and ligand files for FlexAID

1.0.4
pipPyPI
Maintainers
0

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

ArgDescription
file_pathInput file (not listed in the provided dictionary)

Optional Arguments

FlagValue TypeDescription
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

ExceptionDescription
FileNotFoundErrorIf the required input file 'f' does not exist.
ProcessLigandErrorIf the external process fails to execute.

Returns

TypeDescription
ProcessLigandResultA namedtuple containing stdout, stderr, returncode, and file_path_dict.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.