Python wheels and a wrapper for FlexAID, a tool for docking
Project description
FlexAID in a Python Package
A Python package designed to prepare arguments and run FlexAID.
Example usage:
from flexaidpy import write_config_file, write_ga_file, run_flexaid
config_file_path = write_config_file(
target_inp_path='/path/to/flexaid_target.inp.pdb',
ligand_inp_path='/path/to/flexaid_ligand.inp',
binding_site_path='/path/to/binding_site_sph_.pdb',
config_file_folder_path='/path/to/folder/where/config/is/written'
)
# Modifying config parameters for running in high throughput mode:
# config_file_path = write_config_file(
# target_inp_path='/path/to/flexaid_target.inp.pdb',
# ligand_inp_path='/path/to/flexaid_ligand.inp',
# binding_site_path='/path/to/binding_site_sph_.pdb',
# config_file_folder_path='/path/to/folder/where/config/is/written',
# HTPMOD=True,
# MAXRES=1
# )
ga_file_path = write_ga_file(ga_file_folder_path='/path/to/folder/where/ga/is/written')
run_flexaid(config_file_path,
ga_file_path,
result_save_path='/path/to/save/results/RESULT_NAME')
The result_save_path must be an absolute path and include the name the result file will be given without the extension.
In this case the results will be saved in the folder /path/to/save/results/ and they will be named RESULT_NAME_0.pdb, RESULT_NAME_1.pdb, etc.
If you wish to see the output of FlexAID live to keep track of the progress there the live_output flag that can be set to True
A full list of config and ga parameters is available here:
https://github.com/NRGlab/FlexAID/tree/flexaid-cpp
Args for run_flexaid():
| Parameter | Description |
|---|---|
config_file_path |
Path to the configuration file that is returned by the write_config_file() function. |
ga_file_path |
Path to the genetic algorithm (GA) file that is returned by the write_ga_file() function. |
result_save_path |
Absolute path including the name for saving result files (without extension). Results will be saved as [result_save_path]_0.pdb, [result_save_path]_1.pdb, etc. |
live_output |
Boolean flag (default: False). When set to True, FlexAID's output will be displayed in real-time to track progress. |
Returns
| Type | Description |
|---|---|
FlexAIDResult |
An object containing returncode, stdout and stderr. |
Full run on a target and ligand using GetCleft, ProcessLigand and FlexAiD:
import os
from processligandpy import run_processligand
from flexaidpy import write_config_file, write_ga_file, run_flexaid
from getcleftpy import run_getcleft
file_save_path = '/path/to/folder/with/target_and_ligand'
target_file_path = os.path.join(file_save_path, '2ixd.pdb')
ligand_path = os.path.join(file_save_path, 'ATP_ideal.sdf')
result_save_folder = os.path.join(file_save_path, 'result')
if not os.path.exists(result_save_folder):
os.makedirs(result_save_folder)
final_result_path = os.path.join(result_save_folder, 'RES')
gc_dictionary = run_getcleft(target_file_path, num_clefts=1)
result_target = run_processligand(file_path=target_file_path, target=True)
result_ligand = run_processligand(file_path=ligand_path, atom_index=90000)
config_file_path = write_config_file(
target_inp_path=result_target.file_path_dict['INP_PDB'][0],
ligand_inp_path=result_ligand.file_path_dict['INP'][0],
binding_site_path=gc_dictionary.file_path_dict['SPH'][0],
config_file_folder_path=file_save_path,
MAXRES=1,
HTPMOD=True
)
ga_file_path = write_ga_file(
ga_file_folder_path=file_save_path,
NUMCHROM=500,
NUMGENER=500,
PRINTCHR=1,
PRINTINT=1
)
result = run_flexaid(
config_file_path,
ga_file_path,
result_save_path=final_result_path
)
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 flexaid_py-1.0.3.tar.gz.
File metadata
- Download URL: flexaid_py-1.0.3.tar.gz
- Upload date:
- Size: 41.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d45ce3ec7d20095eba27ba7ae6baf0cc6ffc68ce2ea773412e24d2ab904d053
|
|
| MD5 |
1c684647fc8c217066892d6cd6cf7951
|
|
| BLAKE2b-256 |
8b74816025577a84eaf1842e0912674a3c1d6875e729a852dd931ba7d40c51bd
|
Provenance
The following attestation bundles were made for flexaid_py-1.0.3.tar.gz:
Publisher:
build.yaml on NRGlab/flexaid-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexaid_py-1.0.3.tar.gz -
Subject digest:
1d45ce3ec7d20095eba27ba7ae6baf0cc6ffc68ce2ea773412e24d2ab904d053 - Sigstore transparency entry: 437005300
- Sigstore integration time:
-
Permalink:
NRGlab/flexaid-py@16c81e2390e83d3ea995501cea2389761dba106e -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@16c81e2390e83d3ea995501cea2389761dba106e -
Trigger Event:
push
-
Statement type:
File details
Details for the file flexaid_py-1.0.3-py3-none-win_amd64.whl.
File metadata
- Download URL: flexaid_py-1.0.3-py3-none-win_amd64.whl
- Upload date:
- Size: 154.1 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 |
c6f5a33b02dd126b41a4a94a119f32f381f308825febe2caa297ce6a9d84bd31
|
|
| MD5 |
9b3a8136a4d7af9bcb2979256ffdc84a
|
|
| BLAKE2b-256 |
51356d90d07d25946ca2cfdc604aa36c4ea388054f681ca7e5c18587c61ff799
|
Provenance
The following attestation bundles were made for flexaid_py-1.0.3-py3-none-win_amd64.whl:
Publisher:
build.yaml on NRGlab/flexaid-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexaid_py-1.0.3-py3-none-win_amd64.whl -
Subject digest:
c6f5a33b02dd126b41a4a94a119f32f381f308825febe2caa297ce6a9d84bd31 - Sigstore transparency entry: 437005330
- Sigstore integration time:
-
Permalink:
NRGlab/flexaid-py@16c81e2390e83d3ea995501cea2389761dba106e -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@16c81e2390e83d3ea995501cea2389761dba106e -
Trigger Event:
push
-
Statement type:
File details
Details for the file flexaid_py-1.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: flexaid_py-1.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 187.1 kB
- Tags: Python 3, 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 |
0b1e53deac900134bb8e4f5be9e54188bbc0a6b151f7b4158fd25222047ade1a
|
|
| MD5 |
ab2a0f8b7354bbb4785d387e57a38701
|
|
| BLAKE2b-256 |
44bd6f9b8f089b7d011698afe3375ac2c8117b328876599ad801c8889b12adf3
|
Provenance
The following attestation bundles were made for flexaid_py-1.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build.yaml on NRGlab/flexaid-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexaid_py-1.0.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
0b1e53deac900134bb8e4f5be9e54188bbc0a6b151f7b4158fd25222047ade1a - Sigstore transparency entry: 437005399
- Sigstore integration time:
-
Permalink:
NRGlab/flexaid-py@16c81e2390e83d3ea995501cea2389761dba106e -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@16c81e2390e83d3ea995501cea2389761dba106e -
Trigger Event:
push
-
Statement type:
File details
Details for the file flexaid_py-1.0.3-py3-none-macosx_10_9_universal2.whl.
File metadata
- Download URL: flexaid_py-1.0.3-py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 279.3 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 |
eb1e5d8879652fd206877fb2650cdf29fc3b0ee2cbee87e62edf844fa94736c9
|
|
| MD5 |
6fa5376970078e8a8224da0541d2a092
|
|
| BLAKE2b-256 |
766149e5797d52ca003d6e14ad558c45902381e9802e981950891812a8364086
|
Provenance
The following attestation bundles were made for flexaid_py-1.0.3-py3-none-macosx_10_9_universal2.whl:
Publisher:
build.yaml on NRGlab/flexaid-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexaid_py-1.0.3-py3-none-macosx_10_9_universal2.whl -
Subject digest:
eb1e5d8879652fd206877fb2650cdf29fc3b0ee2cbee87e62edf844fa94736c9 - Sigstore transparency entry: 437005361
- Sigstore integration time:
-
Permalink:
NRGlab/flexaid-py@16c81e2390e83d3ea995501cea2389761dba106e -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/NRGlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@16c81e2390e83d3ea995501cea2389761dba106e -
Trigger Event:
push
-
Statement type: