sharpdock 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sharpdock-1.0.0/LICENCE +22 -0
- sharpdock-1.0.0/PKG-INFO +99 -0
- sharpdock-1.0.0/README.md +86 -0
- sharpdock-1.0.0/pyproject.toml +19 -0
- sharpdock-1.0.0/setup.cfg +4 -0
- sharpdock-1.0.0/sharpdock/__init__.py +2 -0
- sharpdock-1.0.0/sharpdock/main.py +182 -0
- sharpdock-1.0.0/sharpdock.egg-info/PKG-INFO +99 -0
- sharpdock-1.0.0/sharpdock.egg-info/SOURCES.txt +11 -0
- sharpdock-1.0.0/sharpdock.egg-info/dependency_links.txt +1 -0
- sharpdock-1.0.0/sharpdock.egg-info/entry_points.txt +2 -0
- sharpdock-1.0.0/sharpdock.egg-info/requires.txt +3 -0
- sharpdock-1.0.0/sharpdock.egg-info/top_level.txt +1 -0
sharpdock-1.0.0/LICENCE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 alpha-horizon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
sharpdock-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sharpdock
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automated focused molecular docking pipeline for Autodock Vina
|
|
5
|
+
Author: alpha-horizon
|
|
6
|
+
Requires-Python: >=3.7
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENCE
|
|
9
|
+
Requires-Dist: numpy
|
|
10
|
+
Requires-Dist: biopython
|
|
11
|
+
Requires-Dist: tqdm
|
|
12
|
+
Dynamic: license-file
|
|
13
|
+
|
|
14
|
+
# SHARPDOCK v1.0.0
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
====================================================
|
|
18
|
+
An Integrated Pipeline for Focused Molecular Docking
|
|
19
|
+
====================================================
|
|
20
|
+
```
|
|
21
|
+
**SHARPDOCK** is a tool, designed for Automated Focused Molecular Docking. It handles the calculating grid box coordinates based on specific amino acid residues to parallelizing ligand preparation and executing AutoDock Vina.
|
|
22
|
+
|
|
23
|
+
For more tools visit: https://github.com/alpha-horizon
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Grid Calculation: Automatically centers and sizes the docking box based on a user-provided list of active site residues.
|
|
29
|
+
|
|
30
|
+
- Parallel Processing: Prepare multiple ligands simultaneously, Can handle ligands in 2D/3D format.
|
|
31
|
+
|
|
32
|
+
- Summary: Outputs a sorted CSV of binding affinities and organized docking poses.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
## Input Requirements
|
|
36
|
+
1. Receptor (-r)
|
|
37
|
+
|
|
38
|
+
Format: .pdb
|
|
39
|
+
|
|
40
|
+
NOTE: Ensure the protein structure is clean (remove non-essential waters or ions).
|
|
41
|
+
|
|
42
|
+
2. Ligands (-l)
|
|
43
|
+
|
|
44
|
+
Format: .sdf (2D/3D)
|
|
45
|
+
|
|
46
|
+
NOTE: Place all ligand files in a single directory.
|
|
47
|
+
|
|
48
|
+
3. Active Site Specification (-s)
|
|
49
|
+
|
|
50
|
+
Use the following format:
|
|
51
|
+
|
|
52
|
+
"ChainID:ResidueID ResidueID; ChainID:ResidueID"
|
|
53
|
+
|
|
54
|
+
Example: "A:101 102 105; B:45" (This focuses the docking on residues 101, 102, and 105 of Chain A, and residue 45 of Chain B).
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
## pip Installation
|
|
58
|
+
|
|
59
|
+
To install SHARPDOCK, you can use the command mentioned below.
|
|
60
|
+
|
|
61
|
+
pip install sharpdock
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
## Command Line Usage
|
|
65
|
+
|
|
66
|
+
This tool supports full argument-based execution for automation and pipelines:
|
|
67
|
+
|
|
68
|
+
sharpdock --receptor receptor.pdb --sites "A:101 102; B:70" --ligands ./my_ligands --output results
|
|
69
|
+
|
|
70
|
+
Options:
|
|
71
|
+
|
|
72
|
+
-r --receptor Path to receptor PDB file
|
|
73
|
+
-s --sites Active site residues (e.g., 'A:10 11; B:50')
|
|
74
|
+
-l --ligands Folder containing ligand .sdf files |ligands (default)|
|
|
75
|
+
-o --output Output directory name |sharpdock_results (default)|
|
|
76
|
+
-p --padding Grid box padding in Angstroms (Å) |5.0 (default)|
|
|
77
|
+
-e --exhaustiveness Vina search exhaustiveness |32 (default)|
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
## Directory Structure
|
|
81
|
+
|
|
82
|
+
SHARPDOCK organizes your results automatically:
|
|
83
|
+
|
|
84
|
+
- final_results.csv: A ranked list of ligands and their best binding affinities (kcal/mol).
|
|
85
|
+
|
|
86
|
+
- docking_outputs/: Contains the .pdbqt files of the docked poses.
|
|
87
|
+
|
|
88
|
+
- ligands_pdbqt/: The prepared and optimized ligand files.
|
|
89
|
+
|
|
90
|
+
- box_config.txt: The exact grid coordinates used for the Vina run.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
## Contribution
|
|
94
|
+
|
|
95
|
+
For more tools or to report issues, visit the official GitHub repository:
|
|
96
|
+
|
|
97
|
+
GitHub: https://github.com/alpha-horizon
|
|
98
|
+
|
|
99
|
+
---
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# SHARPDOCK v1.0.0
|
|
2
|
+
|
|
3
|
+
```text
|
|
4
|
+
====================================================
|
|
5
|
+
An Integrated Pipeline for Focused Molecular Docking
|
|
6
|
+
====================================================
|
|
7
|
+
```
|
|
8
|
+
**SHARPDOCK** is a tool, designed for Automated Focused Molecular Docking. It handles the calculating grid box coordinates based on specific amino acid residues to parallelizing ligand preparation and executing AutoDock Vina.
|
|
9
|
+
|
|
10
|
+
For more tools visit: https://github.com/alpha-horizon
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- Grid Calculation: Automatically centers and sizes the docking box based on a user-provided list of active site residues.
|
|
16
|
+
|
|
17
|
+
- Parallel Processing: Prepare multiple ligands simultaneously, Can handle ligands in 2D/3D format.
|
|
18
|
+
|
|
19
|
+
- Summary: Outputs a sorted CSV of binding affinities and organized docking poses.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
## Input Requirements
|
|
23
|
+
1. Receptor (-r)
|
|
24
|
+
|
|
25
|
+
Format: .pdb
|
|
26
|
+
|
|
27
|
+
NOTE: Ensure the protein structure is clean (remove non-essential waters or ions).
|
|
28
|
+
|
|
29
|
+
2. Ligands (-l)
|
|
30
|
+
|
|
31
|
+
Format: .sdf (2D/3D)
|
|
32
|
+
|
|
33
|
+
NOTE: Place all ligand files in a single directory.
|
|
34
|
+
|
|
35
|
+
3. Active Site Specification (-s)
|
|
36
|
+
|
|
37
|
+
Use the following format:
|
|
38
|
+
|
|
39
|
+
"ChainID:ResidueID ResidueID; ChainID:ResidueID"
|
|
40
|
+
|
|
41
|
+
Example: "A:101 102 105; B:45" (This focuses the docking on residues 101, 102, and 105 of Chain A, and residue 45 of Chain B).
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
## pip Installation
|
|
45
|
+
|
|
46
|
+
To install SHARPDOCK, you can use the command mentioned below.
|
|
47
|
+
|
|
48
|
+
pip install sharpdock
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
## Command Line Usage
|
|
52
|
+
|
|
53
|
+
This tool supports full argument-based execution for automation and pipelines:
|
|
54
|
+
|
|
55
|
+
sharpdock --receptor receptor.pdb --sites "A:101 102; B:70" --ligands ./my_ligands --output results
|
|
56
|
+
|
|
57
|
+
Options:
|
|
58
|
+
|
|
59
|
+
-r --receptor Path to receptor PDB file
|
|
60
|
+
-s --sites Active site residues (e.g., 'A:10 11; B:50')
|
|
61
|
+
-l --ligands Folder containing ligand .sdf files |ligands (default)|
|
|
62
|
+
-o --output Output directory name |sharpdock_results (default)|
|
|
63
|
+
-p --padding Grid box padding in Angstroms (Å) |5.0 (default)|
|
|
64
|
+
-e --exhaustiveness Vina search exhaustiveness |32 (default)|
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
## Directory Structure
|
|
68
|
+
|
|
69
|
+
SHARPDOCK organizes your results automatically:
|
|
70
|
+
|
|
71
|
+
- final_results.csv: A ranked list of ligands and their best binding affinities (kcal/mol).
|
|
72
|
+
|
|
73
|
+
- docking_outputs/: Contains the .pdbqt files of the docked poses.
|
|
74
|
+
|
|
75
|
+
- ligands_pdbqt/: The prepared and optimized ligand files.
|
|
76
|
+
|
|
77
|
+
- box_config.txt: The exact grid coordinates used for the Vina run.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
## Contribution
|
|
81
|
+
|
|
82
|
+
For more tools or to report issues, visit the official GitHub repository:
|
|
83
|
+
|
|
84
|
+
GitHub: https://github.com/alpha-horizon
|
|
85
|
+
|
|
86
|
+
---
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sharpdock"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
authors = [{name="alpha-horizon"}]
|
|
9
|
+
description = "Automated focused molecular docking pipeline for Autodock Vina"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.7"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"numpy",
|
|
14
|
+
"biopython",
|
|
15
|
+
"tqdm"
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.scripts]
|
|
19
|
+
sharpdock = "sharpdock.main:main"
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import shutil
|
|
4
|
+
import csv
|
|
5
|
+
import argparse
|
|
6
|
+
import numpy as np
|
|
7
|
+
from Bio.PDB import PDBParser
|
|
8
|
+
from multiprocessing import Pool, cpu_count
|
|
9
|
+
from tqdm import tqdm
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
# ===============================
|
|
13
|
+
# HEADER
|
|
14
|
+
# ===============================
|
|
15
|
+
|
|
16
|
+
def print_header():
|
|
17
|
+
header = r"""
|
|
18
|
+
===========================================================
|
|
19
|
+
| |
|
|
20
|
+
| _____ _ _ _ |
|
|
21
|
+
| / ____| | | | | | |
|
|
22
|
+
| | (___ | |__ __ _ _ __ _ __ __| | ___ ___| | __ |
|
|
23
|
+
| \___ \| '_ \ / _` | '__| '_ \ / _` |/ _ \ / __| |/ / |
|
|
24
|
+
| ____) | | | | (_| | | | |_) | (_| | (_) | (__| < |
|
|
25
|
+
| |_____/|_| |_|\__,_|_| | .__/ \__,_|\___/ \___|_|\_\ |
|
|
26
|
+
| | | |
|
|
27
|
+
| |_| |
|
|
28
|
+
| [VERSION: 1.0.0] |
|
|
29
|
+
| |
|
|
30
|
+
| - An automated tool for focused molecular docking - |
|
|
31
|
+
| |
|
|
32
|
+
| GitHub: https://github.com/alpha-horizon/ |
|
|
33
|
+
| |
|
|
34
|
+
===========================================================
|
|
35
|
+
"""
|
|
36
|
+
print(header)
|
|
37
|
+
|
|
38
|
+
def compute_box(receptor_pdb, chain_res_map, padding):
|
|
39
|
+
"""Calculates the center and size of the grid box based on active site residues."""
|
|
40
|
+
parser = PDBParser(QUIET=True)
|
|
41
|
+
structure = parser.get_structure("rec", receptor_pdb)
|
|
42
|
+
coords = []
|
|
43
|
+
|
|
44
|
+
for model in structure:
|
|
45
|
+
for chain in model:
|
|
46
|
+
if chain.id not in chain_res_map:
|
|
47
|
+
continue
|
|
48
|
+
for res in chain:
|
|
49
|
+
if res.id[1] not in chain_res_map[chain.id]:
|
|
50
|
+
continue
|
|
51
|
+
for atom in res:
|
|
52
|
+
coords.append(atom.get_coord())
|
|
53
|
+
|
|
54
|
+
if not coords:
|
|
55
|
+
print(f"Error: No residues found for {chain_res_map}. Check your PDB file.")
|
|
56
|
+
sys.exit(1)
|
|
57
|
+
|
|
58
|
+
coords = np.array(coords)
|
|
59
|
+
center = coords.mean(axis=0)
|
|
60
|
+
size = coords.max(axis=0) - coords.min(axis=0) + padding
|
|
61
|
+
return center, size
|
|
62
|
+
|
|
63
|
+
def process_ligand(args_tuple):
|
|
64
|
+
"""Worker function for parallel ligand preparation."""
|
|
65
|
+
f, ligand_dir, pdbqt_dir = args_tuple
|
|
66
|
+
base = os.path.splitext(f)[0]
|
|
67
|
+
sdf_input = os.path.join(ligand_dir, f)
|
|
68
|
+
sdf_h = os.path.join(ligand_dir, f"{base}_H.sdf")
|
|
69
|
+
pdbqt_out = os.path.join(pdbqt_dir, f"{base}.pdbqt")
|
|
70
|
+
|
|
71
|
+
try:
|
|
72
|
+
# Scrub/Optimize Ligand
|
|
73
|
+
subprocess.run(["scrub.py", sdf_input, "-o", sdf_h], capture_output=True, check=True)
|
|
74
|
+
# Convert to PDBQT
|
|
75
|
+
subprocess.run(["mk_prepare_ligand.py", "-i", sdf_h, "-o", pdbqt_out], capture_output=True, check=True)
|
|
76
|
+
|
|
77
|
+
if os.path.exists(sdf_h):
|
|
78
|
+
os.remove(sdf_h)
|
|
79
|
+
return f"{base}: Success"
|
|
80
|
+
except Exception as e:
|
|
81
|
+
return f"{base}: Failed - {str(e)}"
|
|
82
|
+
|
|
83
|
+
def main():
|
|
84
|
+
# 1. Call the header first
|
|
85
|
+
print_header()
|
|
86
|
+
|
|
87
|
+
# Create a formatter that allows more room for long argument names
|
|
88
|
+
formatter = lambda prog: argparse.HelpFormatter(prog, max_help_position=40)
|
|
89
|
+
|
|
90
|
+
parser = argparse.ArgumentParser(
|
|
91
|
+
description="[SharpDock: Automated Focused Molecular Docking]",
|
|
92
|
+
formatter_class=formatter
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
# Add Version Flag
|
|
96
|
+
parser.add_argument("-v", "--version", action="version", version="sharpdock 1.0.0")
|
|
97
|
+
|
|
98
|
+
# Arguments with improved help descriptions for better alignment
|
|
99
|
+
parser.add_argument("-r", "--receptor", required=True, help="Path to receptor PDB file")
|
|
100
|
+
parser.add_argument("-s", "--sites", required=True, help="Active sites (e.g., 'A:101 102; B:70')")
|
|
101
|
+
parser.add_argument("-l", "--ligands", default="ligands", help="Folder containing ligands in .sdf format")
|
|
102
|
+
parser.add_argument("-o", "--output", default="sharpdock_results", help="Directory for output files")
|
|
103
|
+
parser.add_argument("-p", "--padding", type=float, default=5.0, help="Grid box padding in Å")
|
|
104
|
+
parser.add_argument("-e", "--exhaustiveness", type=int, default=32, help="Vina search exhaustiveness")
|
|
105
|
+
|
|
106
|
+
args = parser.parse_args()
|
|
107
|
+
|
|
108
|
+
# Create Directories
|
|
109
|
+
os.makedirs(args.output, exist_ok=True)
|
|
110
|
+
pdbqt_lig_dir = os.path.join(args.output, "ligands_pdbqt")
|
|
111
|
+
raw_out_dir = os.path.join(args.output, "docking_outputs")
|
|
112
|
+
os.makedirs(pdbqt_lig_dir, exist_ok=True)
|
|
113
|
+
os.makedirs(raw_out_dir, exist_ok=True)
|
|
114
|
+
|
|
115
|
+
# Parse Chain/Residue Mapping
|
|
116
|
+
try:
|
|
117
|
+
chain_res_map = {}
|
|
118
|
+
for block in args.sites.split(";"):
|
|
119
|
+
ch, res = block.split(":")
|
|
120
|
+
chain_res_map[ch.strip()] = [int(r) for r in res.split()]
|
|
121
|
+
except Exception:
|
|
122
|
+
print("Error: Sites format invalid. Use 'A:101 102; B:70'")
|
|
123
|
+
sys.exit(1)
|
|
124
|
+
|
|
125
|
+
# 1. Compute Box
|
|
126
|
+
center, size = compute_box(args.receptor, chain_res_map, args.padding)
|
|
127
|
+
config_path = os.path.join(args.output, "box_config.txt")
|
|
128
|
+
with open(config_path, "w") as f:
|
|
129
|
+
f.write(f"center_x = {center[0]:.3f}\ncenter_y = {center[1]:.3f}\ncenter_z = {center[2]:.3f}\n")
|
|
130
|
+
f.write(f"size_x = {size[0]:.3f}\nsize_y = {size[1]:.3f}\nsize_z = {size[2]:.3f}\n")
|
|
131
|
+
|
|
132
|
+
# 2. Prepare Receptor
|
|
133
|
+
rec_pdbqt = os.path.join(args.output, "receptor.pdbqt")
|
|
134
|
+
print(f"[*] Preparing {args.receptor}...")
|
|
135
|
+
subprocess.run([
|
|
136
|
+
"mk_prepare_receptor.py", "-i", args.receptor, "-o", rec_pdbqt,
|
|
137
|
+
"--box_center", f"{center[0]}", f"{center[1]}", f"{center[2]}",
|
|
138
|
+
"--box_size", f"{size[0]}", f"{size[1]}", f"{size[2]}"
|
|
139
|
+
], check=True)
|
|
140
|
+
|
|
141
|
+
# 3. Parallel Ligand Preparation
|
|
142
|
+
lig_files = [f for f in os.listdir(args.ligands) if f.endswith(".sdf")]
|
|
143
|
+
print(f"[*] Preparing {len(lig_files)} ligands...")
|
|
144
|
+
prep_args = [(f, args.ligands, pdbqt_lig_dir) for f in lig_files]
|
|
145
|
+
with Pool(cpu_count()) as pool:
|
|
146
|
+
list(tqdm(pool.imap(process_ligand, prep_args), total=len(lig_files)))
|
|
147
|
+
|
|
148
|
+
# 4. Docking with Vina
|
|
149
|
+
print("[*] Starting Docking...")
|
|
150
|
+
results = []
|
|
151
|
+
pdbqt_ligs = [f for f in os.listdir(pdbqt_lig_dir) if f.endswith(".pdbqt")]
|
|
152
|
+
|
|
153
|
+
for lig_file in tqdm(pdbqt_ligs, desc="Docking progress"):
|
|
154
|
+
base = os.path.splitext(lig_file)[0]
|
|
155
|
+
lig_path = os.path.join(pdbqt_lig_dir, lig_file)
|
|
156
|
+
out_path = os.path.join(raw_out_dir, f"{base}_out.pdbqt")
|
|
157
|
+
|
|
158
|
+
subprocess.run([
|
|
159
|
+
"vina", "--receptor", rec_pdbqt, "--ligand", lig_path,
|
|
160
|
+
"--config", config_path, "--exhaustiveness", str(args.exhaustiveness),
|
|
161
|
+
"--out", out_path
|
|
162
|
+
], capture_output=True)
|
|
163
|
+
|
|
164
|
+
if os.path.exists(out_path):
|
|
165
|
+
with open(out_path) as f:
|
|
166
|
+
for line in f:
|
|
167
|
+
if "REMARK VINA RESULT:" in line:
|
|
168
|
+
affinity = float(line.split()[3])
|
|
169
|
+
results.append([base, affinity])
|
|
170
|
+
break
|
|
171
|
+
|
|
172
|
+
# 5. Export Results
|
|
173
|
+
results.sort(key=lambda x: x[1])
|
|
174
|
+
with open(os.path.join(args.output, "final_results.csv"), "w", newline="") as f:
|
|
175
|
+
writer = csv.writer(f)
|
|
176
|
+
writer.writerow(["Ligand", "Affinity_kcal_mol"])
|
|
177
|
+
writer.writerows(results)
|
|
178
|
+
|
|
179
|
+
print(f"\n[SUCCESS] Workflow completed. Results saved in: {args.output}")
|
|
180
|
+
|
|
181
|
+
if __name__ == "__main__":
|
|
182
|
+
main()
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sharpdock
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automated focused molecular docking pipeline for Autodock Vina
|
|
5
|
+
Author: alpha-horizon
|
|
6
|
+
Requires-Python: >=3.7
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENCE
|
|
9
|
+
Requires-Dist: numpy
|
|
10
|
+
Requires-Dist: biopython
|
|
11
|
+
Requires-Dist: tqdm
|
|
12
|
+
Dynamic: license-file
|
|
13
|
+
|
|
14
|
+
# SHARPDOCK v1.0.0
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
====================================================
|
|
18
|
+
An Integrated Pipeline for Focused Molecular Docking
|
|
19
|
+
====================================================
|
|
20
|
+
```
|
|
21
|
+
**SHARPDOCK** is a tool, designed for Automated Focused Molecular Docking. It handles the calculating grid box coordinates based on specific amino acid residues to parallelizing ligand preparation and executing AutoDock Vina.
|
|
22
|
+
|
|
23
|
+
For more tools visit: https://github.com/alpha-horizon
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Grid Calculation: Automatically centers and sizes the docking box based on a user-provided list of active site residues.
|
|
29
|
+
|
|
30
|
+
- Parallel Processing: Prepare multiple ligands simultaneously, Can handle ligands in 2D/3D format.
|
|
31
|
+
|
|
32
|
+
- Summary: Outputs a sorted CSV of binding affinities and organized docking poses.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
## Input Requirements
|
|
36
|
+
1. Receptor (-r)
|
|
37
|
+
|
|
38
|
+
Format: .pdb
|
|
39
|
+
|
|
40
|
+
NOTE: Ensure the protein structure is clean (remove non-essential waters or ions).
|
|
41
|
+
|
|
42
|
+
2. Ligands (-l)
|
|
43
|
+
|
|
44
|
+
Format: .sdf (2D/3D)
|
|
45
|
+
|
|
46
|
+
NOTE: Place all ligand files in a single directory.
|
|
47
|
+
|
|
48
|
+
3. Active Site Specification (-s)
|
|
49
|
+
|
|
50
|
+
Use the following format:
|
|
51
|
+
|
|
52
|
+
"ChainID:ResidueID ResidueID; ChainID:ResidueID"
|
|
53
|
+
|
|
54
|
+
Example: "A:101 102 105; B:45" (This focuses the docking on residues 101, 102, and 105 of Chain A, and residue 45 of Chain B).
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
## pip Installation
|
|
58
|
+
|
|
59
|
+
To install SHARPDOCK, you can use the command mentioned below.
|
|
60
|
+
|
|
61
|
+
pip install sharpdock
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
## Command Line Usage
|
|
65
|
+
|
|
66
|
+
This tool supports full argument-based execution for automation and pipelines:
|
|
67
|
+
|
|
68
|
+
sharpdock --receptor receptor.pdb --sites "A:101 102; B:70" --ligands ./my_ligands --output results
|
|
69
|
+
|
|
70
|
+
Options:
|
|
71
|
+
|
|
72
|
+
-r --receptor Path to receptor PDB file
|
|
73
|
+
-s --sites Active site residues (e.g., 'A:10 11; B:50')
|
|
74
|
+
-l --ligands Folder containing ligand .sdf files |ligands (default)|
|
|
75
|
+
-o --output Output directory name |sharpdock_results (default)|
|
|
76
|
+
-p --padding Grid box padding in Angstroms (Å) |5.0 (default)|
|
|
77
|
+
-e --exhaustiveness Vina search exhaustiveness |32 (default)|
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
## Directory Structure
|
|
81
|
+
|
|
82
|
+
SHARPDOCK organizes your results automatically:
|
|
83
|
+
|
|
84
|
+
- final_results.csv: A ranked list of ligands and their best binding affinities (kcal/mol).
|
|
85
|
+
|
|
86
|
+
- docking_outputs/: Contains the .pdbqt files of the docked poses.
|
|
87
|
+
|
|
88
|
+
- ligands_pdbqt/: The prepared and optimized ligand files.
|
|
89
|
+
|
|
90
|
+
- box_config.txt: The exact grid coordinates used for the Vina run.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
## Contribution
|
|
94
|
+
|
|
95
|
+
For more tools or to report issues, visit the official GitHub repository:
|
|
96
|
+
|
|
97
|
+
GitHub: https://github.com/alpha-horizon
|
|
98
|
+
|
|
99
|
+
---
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENCE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
sharpdock/__init__.py
|
|
5
|
+
sharpdock/main.py
|
|
6
|
+
sharpdock.egg-info/PKG-INFO
|
|
7
|
+
sharpdock.egg-info/SOURCES.txt
|
|
8
|
+
sharpdock.egg-info/dependency_links.txt
|
|
9
|
+
sharpdock.egg-info/entry_points.txt
|
|
10
|
+
sharpdock.egg-info/requires.txt
|
|
11
|
+
sharpdock.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sharpdock
|