mutadock 2.2.0__py3-none-any.whl
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.
- mutadock/__init__.py +30 -0
- mutadock/data/BLOSUM62 +31 -0
- mutadock/data/PAM250 +34 -0
- mutadock/docking/__init__.py +57 -0
- mutadock/docking/exceptions.py +22 -0
- mutadock/docking/np_docking.py +608 -0
- mutadock/docking/vina_dock.py +222 -0
- mutadock/docking/vina_helper.py +952 -0
- mutadock/mutation/Amino.py +100 -0
- mutadock/mutation/__init__.py +57 -0
- mutadock/mutation/csv_generator.py +249 -0
- mutadock/mutation/csv_sort.py +171 -0
- mutadock/mutation/ddg_calc.py +311 -0
- mutadock/mutation/ddg_calc_double.py +399 -0
- mutadock/mutation/ddg_calc_triple.py +457 -0
- mutadock/mutation/exceptions.py +18 -0
- mutadock/mutation/generate_mutant_pdb.py +382 -0
- mutadock/mutation/generate_mutants.py +310 -0
- mutadock/mutation/helpers.py +875 -0
- mutadock/mutation/np_mutation.py +576 -0
- mutadock/mutation/predict_ddG.py +275 -0
- mutadock/quick.py +522 -0
- mutadock/report/__init__.py +35 -0
- mutadock/report/assets/ngl.min.js +88 -0
- mutadock/report/data.py +444 -0
- mutadock/report/figures.py +540 -0
- mutadock/report/html_report.py +294 -0
- mutadock/report/ppt_report.py +590 -0
- mutadock/report/report.py +311 -0
- mutadock/report/structure.py +122 -0
- mutadock/report/templates/report.html.j2 +399 -0
- mutadock-2.2.0.dist-info/METADATA +498 -0
- mutadock-2.2.0.dist-info/RECORD +36 -0
- mutadock-2.2.0.dist-info/WHEEL +4 -0
- mutadock-2.2.0.dist-info/entry_points.txt +12 -0
- mutadock-2.2.0.dist-info/licenses/LICENSE +674 -0
mutadock/__init__.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
################################################################################
|
|
2
|
+
# PROJECT INFORMATION #
|
|
3
|
+
# Name: MUTADOCK #
|
|
4
|
+
# Author: Naisarg Patel #
|
|
5
|
+
# #
|
|
6
|
+
# Copyright (C) 2026 Naisarg Patel (https://github.com/naisarg14) #
|
|
7
|
+
# #
|
|
8
|
+
# Project: https://github.com/naisarg14/mutadock #
|
|
9
|
+
# #
|
|
10
|
+
# This program is free software; you can redistribute it and/or modify it #
|
|
11
|
+
# under the terms of the GNU General Public License version 3 as published #
|
|
12
|
+
# by the Free Software Foundation. #
|
|
13
|
+
# #
|
|
14
|
+
# This program is distributed in the hope that it will be useful, but #
|
|
15
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY #
|
|
16
|
+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License #
|
|
17
|
+
# for more details. #
|
|
18
|
+
################################################################################
|
|
19
|
+
|
|
20
|
+
"""MUTADOCK — mutation studies and receptor-ligand docking.
|
|
21
|
+
|
|
22
|
+
Top-level package exposing two subpackages:
|
|
23
|
+
|
|
24
|
+
* :mod:`mutadock.mutation` — amino-acid substitution analysis (mutation CSVs,
|
|
25
|
+
ddG calculations, mutant PDB generation via PyRosetta).
|
|
26
|
+
* :mod:`mutadock.docking` — AutoDock Vina integration for receptor/ligand
|
|
27
|
+
preparation and batch docking workflows.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
__version__ = "2.2.0"
|
mutadock/data/BLOSUM62
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Matrix made by matblas from blosum62.iij
|
|
2
|
+
# * column uses minimum score
|
|
3
|
+
# BLOSUM Clustered Scoring Matrix in 1/2 Bit Units
|
|
4
|
+
# Blocks Database = /data/blocks_5.0/blocks.dat
|
|
5
|
+
# Cluster Percentage: >= 62
|
|
6
|
+
# Entropy = 0.6979, Expected = -0.5209
|
|
7
|
+
A R N D C Q E G H I L K M F P S T W Y V B Z X *
|
|
8
|
+
A 4 -1 -2 -2 0 -1 -1 0 -2 -1 -1 -1 -1 -2 -1 1 0 -3 -2 0 -2 -1 0 -4
|
|
9
|
+
R -1 5 0 -2 -3 1 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1 -4 -3 -2 -2 -1 -2 -4
|
|
23
|
+
S 1 -1 1 0 -1 0 0 0 -1 -2 -2 0 -1 -2 -1 4 1 -3 -2 -2 0 0 0 -4
|
|
24
|
+
T 0 -1 0 -1 -1 -1 -1 -2 -2 -1 -1 -1 -1 -2 -1 1 5 -2 -2 0 -1 -1 0 -4
|
|
25
|
+
W -3 -3 -4 -4 -2 -2 -3 -2 -2 -3 -2 -3 -1 1 -4 -3 -2 11 2 -3 -4 -3 -2 -4
|
|
26
|
+
Y -2 -2 -2 -3 -2 -1 -2 -3 2 -1 -1 -2 -1 3 -3 -2 -2 2 7 -1 -3 -2 -1 -4
|
|
27
|
+
V 0 -3 -3 -3 -1 -2 -2 -3 -3 3 1 -2 1 -1 -2 -2 0 -3 -1 4 -3 -2 -1 -4
|
|
28
|
+
B -2 -1 3 4 -3 0 1 -1 0 -3 -4 0 -3 -3 -2 0 -1 -4 -3 -3 4 1 -1 -4
|
|
29
|
+
Z -1 0 0 1 -3 3 4 -2 0 -3 -3 1 -1 -3 -1 0 -1 -3 -2 -2 1 4 -1 -4
|
|
30
|
+
X 0 -1 -1 -1 -2 -1 -1 -1 -1 -1 -1 -1 -1 -1 -2 0 0 -2 -1 -1 -1 -1 -1 -4
|
|
31
|
+
* -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 1
|
mutadock/data/PAM250
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This matrix was produced by "pam" Version 1.0.6 [28-Jul-93]
|
|
3
|
+
#
|
|
4
|
+
# PAM 250 substitution matrix, scale = ln(2)/3 = 0.231049
|
|
5
|
+
#
|
|
6
|
+
# Expected score = -0.844, Entropy = 0.354 bits
|
|
7
|
+
#
|
|
8
|
+
# Lowest score = -8, Highest score = 17
|
|
9
|
+
#
|
|
10
|
+
A R N D C Q E G H I L K M F P S T W Y V B Z X *
|
|
11
|
+
A 2 -2 0 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
+
P 1 0 0 -1 -3 0 -1 0 0 -2 -3 -1 -2 -5 6 1 0 -6 -5 -1 -1 0 -1 -8
|
|
26
|
+
S 1 0 1 0 0 -1 0 1 -1 -1 -3 0 -2 -3 1 2 1 -2 -3 -1 0 0 0 -8
|
|
27
|
+
T 1 -1 0 0 -2 -1 0 0 -1 0 -2 0 -1 -3 0 1 3 -5 -3 0 0 -1 0 -8
|
|
28
|
+
W -6 2 -4 -7 -8 -5 -7 -7 -3 -5 -2 -3 -4 0 -6 -2 -5 17 0 -6 -5 -6 -4 -8
|
|
29
|
+
Y -3 -4 -2 -4 0 -4 -4 -5 0 -1 -1 -4 -2 7 -5 -3 -3 0 10 -2 -3 -4 -2 -8
|
|
30
|
+
V 0 -2 -2 -2 -2 -2 -2 -1 -2 4 2 -2 2 -1 -1 -1 0 -6 -2 4 -2 -2 -1 -8
|
|
31
|
+
B 0 -1 2 3 -4 1 3 0 1 -2 -3 1 -2 -4 -1 0 0 -5 -3 -2 3 2 -1 -8
|
|
32
|
+
Z 0 0 1 3 -5 3 3 0 2 -2 -3 0 -2 -5 0 0 -1 -6 -4 -2 2 3 -1 -8
|
|
33
|
+
X 0 -1 0 -1 -3 -1 -1 -1 -1 -1 -1 -1 -1 -2 -1 0 0 -4 -2 -1 -1 -1 -1 -8
|
|
34
|
+
* -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 -8 1
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
################################################################################
|
|
2
|
+
# PROJECT INFORMATION #
|
|
3
|
+
# Name: MUTADOCK #
|
|
4
|
+
# Author: Naisarg Patel #
|
|
5
|
+
# #
|
|
6
|
+
# Copyright (C) 2026 Naisarg Patel (https://github.com/naisarg14) #
|
|
7
|
+
# #
|
|
8
|
+
# Project: https://github.com/naisarg14/mutadock #
|
|
9
|
+
# #
|
|
10
|
+
# This program is free software; you can redistribute it and/or modify it #
|
|
11
|
+
# under the terms of the GNU General Public License version 3 as published #
|
|
12
|
+
# by the Free Software Foundation. #
|
|
13
|
+
# #
|
|
14
|
+
# This program is distributed in the hope that it will be useful, but #
|
|
15
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY #
|
|
16
|
+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License #
|
|
17
|
+
# for more details. #
|
|
18
|
+
################################################################################
|
|
19
|
+
|
|
20
|
+
"""Docking package — AutoDock Vina integration for MUTADOCK.
|
|
21
|
+
|
|
22
|
+
Provides helpers for receptor/ligand preparation, docking execution,
|
|
23
|
+
result parsing, and batch docking workflows via the :mod:`np_docking` entry
|
|
24
|
+
point. Custom exceptions are exported from :mod:`exceptions`.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
import logging
|
|
28
|
+
|
|
29
|
+
# Configure logging
|
|
30
|
+
logging.basicConfig(
|
|
31
|
+
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
32
|
+
)
|
|
33
|
+
logger = logging.getLogger(__name__)
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
logger.info(
|
|
37
|
+
"""
|
|
38
|
+
################################################################################
|
|
39
|
+
# PROJECT INFORMATION #
|
|
40
|
+
# Name: MUTADOCK #
|
|
41
|
+
# Author: Naisarg Patel #
|
|
42
|
+
# #
|
|
43
|
+
# Copyright (C) 2026 Naisarg Patel (https://github.com/naisarg14) #
|
|
44
|
+
# #
|
|
45
|
+
# Project: https://github.com/naisarg14/mutadock #
|
|
46
|
+
# #
|
|
47
|
+
# This program is free software; you can redistribute it and/or modify it #
|
|
48
|
+
# under the terms of the GNU General Public License version 3 as published #
|
|
49
|
+
# by the Free Software Foundation. #
|
|
50
|
+
# #
|
|
51
|
+
# This program is distributed in the hope that it will be useful, but #
|
|
52
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY #
|
|
53
|
+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License #
|
|
54
|
+
# for more details. #
|
|
55
|
+
################################################################################
|
|
56
|
+
"""
|
|
57
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
class DockingError(Exception):
|
|
2
|
+
"""Base exception for the docking package."""
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class PDBFileError(DockingError):
|
|
6
|
+
"""Raised when a PDB file cannot be read or parsed."""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ConfigError(DockingError):
|
|
10
|
+
"""Raised when a Vina config file cannot be read or parsed."""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class LigandPreparationError(DockingError):
|
|
14
|
+
"""Raised when ligand PDBQT preparation fails."""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ReceptorPreparationError(DockingError):
|
|
18
|
+
"""Raised when receptor PDBQT preparation fails."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DockingRunError(DockingError):
|
|
22
|
+
"""Raised when an AutoDock Vina run fails."""
|