MacrocycleWizard 0.1.0__tar.gz → 0.1.1__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.
- {macrocyclewizard-0.1.0/MacrocycleWizard → macrocyclewizard-0.1.1/MacrocycleWizard/MolD}/base.py +26 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/general/GroupK.py +10 -10
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupG.py +7 -7
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/__init__.py +6 -1
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1/MacrocycleWizard.egg-info}/PKG-INFO +16 -6
- {macrocyclewizard-0.1.0/MacrocycleWizard.egg-info → macrocyclewizard-0.1.1}/PKG-INFO +16 -6
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/README.md +14 -4
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/setup.py +2 -2
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/LICENSE +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/CreateFig/FigGenerator.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/CreateFig/__init__.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/__init__.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/basic/GroupA.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/basic/__init__.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/calculator.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/general/GroupH.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/general/GroupI.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/general/GroupJ.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/general/__init__.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupB.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupC.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupD.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupE.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/GroupF.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/__init__.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/Onion/Onion.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/Onion/__init__.py +0 -0
- {macrocyclewizard-0.1.0/MacrocycleWizard/MolD → macrocyclewizard-0.1.1/MacrocycleWizard}/base.py +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard.egg-info/SOURCES.txt +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard.egg-info/dependency_links.txt +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard.egg-info/requires.txt +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard.egg-info/top_level.txt +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/pyproject.toml +0 -0
- {macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/setup.cfg +0 -0
{macrocyclewizard-0.1.0/MacrocycleWizard → macrocyclewizard-0.1.1/MacrocycleWizard/MolD}/base.py
RENAMED
|
@@ -409,6 +409,32 @@ def _calculate_pair_spacing_for_bridged_rings(mol, connection_atoms, macrocycle_
|
|
|
409
409
|
return pair_spacings
|
|
410
410
|
|
|
411
411
|
|
|
412
|
+
def _to_python_number(value):
|
|
413
|
+
if isinstance(value, np.integer):
|
|
414
|
+
return int(value)
|
|
415
|
+
if isinstance(value, np.floating):
|
|
416
|
+
return float(value)
|
|
417
|
+
return value
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def _calculate_xu_index(mol):
|
|
421
|
+
"""
|
|
422
|
+
Calculate the Xu topological index using NumPy.
|
|
423
|
+
Equivalent to PyBioMed.PyMolecule.topology.CalculateXuIndex,
|
|
424
|
+
avoiding scipy.sum which was removed in SciPy 1.12.
|
|
425
|
+
"""
|
|
426
|
+
n_atoms = mol.GetNumAtoms()
|
|
427
|
+
deltas = [atom.GetDegree() for atom in mol.GetAtoms()]
|
|
428
|
+
distance = Chem.GetDistanceMatrix(mol)
|
|
429
|
+
sigma = np.sum(distance, axis=1)
|
|
430
|
+
temp1 = 0.0
|
|
431
|
+
temp2 = 0.0
|
|
432
|
+
for i in range(n_atoms):
|
|
433
|
+
temp1 += deltas[i] * (sigma[i] ** 2)
|
|
434
|
+
temp2 += deltas[i] * sigma[i]
|
|
435
|
+
return float(np.sqrt(n_atoms) * np.log(temp1 / temp2))
|
|
436
|
+
|
|
437
|
+
|
|
412
438
|
class MacrocycleCalculator:
|
|
413
439
|
# 类级别变量,用于存储预计算结果
|
|
414
440
|
_cache = {}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"""Group K:Topological and connectivity descriptors."""
|
|
3
3
|
|
|
4
4
|
from tqdm import tqdm
|
|
5
|
-
from PyBioMed.PyMolecule import topology
|
|
6
|
-
from ..base import MacrocycleCalculator
|
|
5
|
+
from PyBioMed.PyMolecule import topology
|
|
6
|
+
from ..base import MacrocycleCalculator, _calculate_xu_index, _to_python_number
|
|
7
7
|
|
|
8
8
|
class GroupK(MacrocycleCalculator):
|
|
9
9
|
"""
|
|
@@ -17,7 +17,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
17
17
|
"""
|
|
18
18
|
K01_Weiner = []
|
|
19
19
|
for mol in tqdm(self.mols):
|
|
20
|
-
weiner = topology.CalculateWeiner(mol) if mol is not None else None
|
|
20
|
+
weiner = _to_python_number(topology.CalculateWeiner(mol)) if mol is not None else None
|
|
21
21
|
K01_Weiner.append(weiner)
|
|
22
22
|
return K01_Weiner
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
27
27
|
"""
|
|
28
28
|
K02_Harary = []
|
|
29
29
|
for mol in tqdm(self.mols):
|
|
30
|
-
harary = topology.CalculateHarary(mol) if mol is not None else None
|
|
30
|
+
harary = _to_python_number(topology.CalculateHarary(mol)) if mol is not None else None
|
|
31
31
|
K02_Harary.append(harary)
|
|
32
32
|
return K02_Harary
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
37
37
|
"""
|
|
38
38
|
K03_Balaban = []
|
|
39
39
|
for mol in tqdm(self.mols):
|
|
40
|
-
balaban = topology.CalculateBalaban(mol) if mol is not None else None
|
|
40
|
+
balaban = _to_python_number(topology.CalculateBalaban(mol)) if mol is not None else None
|
|
41
41
|
K03_Balaban.append(balaban)
|
|
42
42
|
return K03_Balaban
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
47
47
|
"""
|
|
48
48
|
K04_BertzCT = []
|
|
49
49
|
for mol in tqdm(self.mols):
|
|
50
|
-
bertz_ct = topology.CalculateBertzCT(mol) if mol is not None else None
|
|
50
|
+
bertz_ct = _to_python_number(topology.CalculateBertzCT(mol)) if mol is not None else None
|
|
51
51
|
K04_BertzCT.append(bertz_ct)
|
|
52
52
|
return K04_BertzCT
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
57
57
|
"""
|
|
58
58
|
K05_Xu = []
|
|
59
59
|
for mol in tqdm(self.mols):
|
|
60
|
-
xu_index =
|
|
60
|
+
xu_index = _calculate_xu_index(mol) if mol is not None else None
|
|
61
61
|
K05_Xu.append(xu_index)
|
|
62
62
|
return K05_Xu
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
67
67
|
"""
|
|
68
68
|
K06_Petitjean = []
|
|
69
69
|
for mol in tqdm(self.mols):
|
|
70
|
-
petitjean = topology.CalculatePetitjean(mol) if mol is not None else None
|
|
70
|
+
petitjean = _to_python_number(topology.CalculatePetitjean(mol)) if mol is not None else None
|
|
71
71
|
K06_Petitjean.append(petitjean)
|
|
72
72
|
return K06_Petitjean
|
|
73
73
|
|
|
@@ -77,7 +77,7 @@ class GroupK(MacrocycleCalculator):
|
|
|
77
77
|
"""
|
|
78
78
|
K07_Zagreb1 = []
|
|
79
79
|
for mol in tqdm(self.mols):
|
|
80
|
-
zagreb1 = topology.CalculateZagreb1(mol) if mol is not None else None
|
|
80
|
+
zagreb1 = _to_python_number(topology.CalculateZagreb1(mol)) if mol is not None else None
|
|
81
81
|
K07_Zagreb1.append(zagreb1)
|
|
82
82
|
return K07_Zagreb1
|
|
83
83
|
|
|
@@ -87,6 +87,6 @@ class GroupK(MacrocycleCalculator):
|
|
|
87
87
|
"""
|
|
88
88
|
K08_Zagreb2 = []
|
|
89
89
|
for mol in tqdm(self.mols):
|
|
90
|
-
zagreb2 = topology.CalculateZagreb2(mol) if mol is not None else None
|
|
90
|
+
zagreb2 = _to_python_number(topology.CalculateZagreb2(mol)) if mol is not None else None
|
|
91
91
|
K08_Zagreb2.append(zagreb2)
|
|
92
92
|
return K08_Zagreb2
|
|
@@ -4,8 +4,8 @@ Group G: Topological and connectivity MolD for Macrocycle Rings
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
from tqdm import tqdm
|
|
7
|
-
from PyBioMed.PyMolecule import topology
|
|
8
|
-
from ..base import MacrocycleCalculator
|
|
7
|
+
from PyBioMed.PyMolecule import topology
|
|
8
|
+
from ..base import MacrocycleCalculator, _calculate_xu_index, _to_python_number
|
|
9
9
|
|
|
10
10
|
class GroupG(MacrocycleCalculator):
|
|
11
11
|
"""
|
|
@@ -21,7 +21,7 @@ class GroupG(MacrocycleCalculator):
|
|
|
21
21
|
G01_Weiner_Ring = []
|
|
22
22
|
for mol in tqdm(self.ring_mol_stripped):
|
|
23
23
|
if mol is not None:
|
|
24
|
-
weiner = topology.CalculateWeiner(mol)
|
|
24
|
+
weiner = _to_python_number(topology.CalculateWeiner(mol))
|
|
25
25
|
G01_Weiner_Ring.append(weiner)
|
|
26
26
|
else:
|
|
27
27
|
G01_Weiner_Ring.append(None)
|
|
@@ -34,7 +34,7 @@ class GroupG(MacrocycleCalculator):
|
|
|
34
34
|
G02_Harary_Ring = []
|
|
35
35
|
for mol in tqdm(self.ring_mol_stripped):
|
|
36
36
|
if mol is not None:
|
|
37
|
-
harary = topology.CalculateHarary(mol)
|
|
37
|
+
harary = _to_python_number(topology.CalculateHarary(mol))
|
|
38
38
|
G02_Harary_Ring.append(harary)
|
|
39
39
|
else:
|
|
40
40
|
G02_Harary_Ring.append(None)
|
|
@@ -47,7 +47,7 @@ class GroupG(MacrocycleCalculator):
|
|
|
47
47
|
G03_Balaban_Ring = []
|
|
48
48
|
for mol in tqdm(self.ring_mol_stripped):
|
|
49
49
|
if mol is not None:
|
|
50
|
-
balaban = topology.CalculateBalaban(mol)
|
|
50
|
+
balaban = _to_python_number(topology.CalculateBalaban(mol))
|
|
51
51
|
G03_Balaban_Ring.append(balaban)
|
|
52
52
|
else:
|
|
53
53
|
G03_Balaban_Ring.append(None)
|
|
@@ -60,7 +60,7 @@ class GroupG(MacrocycleCalculator):
|
|
|
60
60
|
G04_BertzCT_Ring = []
|
|
61
61
|
for mol in tqdm(self.ring_mol_stripped):
|
|
62
62
|
if mol is not None:
|
|
63
|
-
bertz_ct = topology.CalculateBertzCT(mol)
|
|
63
|
+
bertz_ct = _to_python_number(topology.CalculateBertzCT(mol))
|
|
64
64
|
G04_BertzCT_Ring.append(bertz_ct)
|
|
65
65
|
else:
|
|
66
66
|
G04_BertzCT_Ring.append(None)
|
|
@@ -73,7 +73,7 @@ class GroupG(MacrocycleCalculator):
|
|
|
73
73
|
G05_Xu_Ring = []
|
|
74
74
|
for mol in tqdm(self.ring_mol_stripped):
|
|
75
75
|
if mol is not None:
|
|
76
|
-
xu_index =
|
|
76
|
+
xu_index = _calculate_xu_index(mol)
|
|
77
77
|
G05_Xu_Ring.append(xu_index)
|
|
78
78
|
else:
|
|
79
79
|
G05_Xu_Ring.append(None)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""MacrocycleWizard/__init__.py"""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.1"
|
|
4
4
|
|
|
5
5
|
from .MolD.base import MacrocycleCalculator
|
|
6
6
|
|
|
@@ -183,6 +183,11 @@ class MacrocycleWizard:
|
|
|
183
183
|
def TopoConn(self):
|
|
184
184
|
"""TopoConn is an alias for groupk"""
|
|
185
185
|
return self.groupk
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def OverallTopoConn(self):
|
|
189
|
+
"""OverallTopoConn is an alias for groupk"""
|
|
190
|
+
return self.groupk
|
|
186
191
|
|
|
187
192
|
# ==================== Onion Module ====================
|
|
188
193
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MacrocycleWizard
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A comprehensive toolkit for macrocycle analysis
|
|
5
5
|
Home-page: https://github.com/MedChemBeyond/MacrocycleWizard
|
|
6
6
|
Author: Qiushi Feng
|
|
@@ -8,7 +8,7 @@ Author-email: qiushi.feng@unito.it
|
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Source, https://github.com/MedChemBeyond/MacrocycleWizard
|
|
10
10
|
Project-URL: Bug Tracker, https://github.com/MedChemBeyond/MacrocycleWizard/issues
|
|
11
|
-
Project-URL: Web Server, https://
|
|
11
|
+
Project-URL: Web Server, https://mcwizard.streamlit.app
|
|
12
12
|
Keywords: macrocycle,cheminformatics,medicinal chemistry,molecular descriptors,rdkit
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
@@ -40,6 +40,10 @@ Dynamic: requires-dist
|
|
|
40
40
|
Dynamic: requires-python
|
|
41
41
|
Dynamic: summary
|
|
42
42
|
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="readme_img/logo.png" alt="Macrocycle Wizard Logo" width="420">
|
|
45
|
+
</p>
|
|
46
|
+
|
|
43
47
|
# Macrocycle Wizard 🧙 — An Open-Source Toolkit for Macrocyclic Molecular Descriptor Calculation & Structural Analysis
|
|
44
48
|
|
|
45
49
|
Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedchem.unito.it) at the University of Turin (UniTo), Italy 🇮🇹.
|
|
@@ -47,15 +51,21 @@ Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedch
|
|
|
47
51
|
## Introduction
|
|
48
52
|
**Macrocycle Wizard** is a **free and open-source** Python toolkit dedicated to macrocyclic compounds (MCs) for medicinal chemistry and cheminformatics applications. Taking SMILES strings as input, it enables rapid calculation of **151 two-dimensional (2D) molecular descriptors (MolDs)** (including 62 macrocycle-specific descriptors), hierarchical structural decomposition via the **Macrocycle Onion** framework, and publication-quality 2D structure visualization via the **Figure Creator**.
|
|
49
53
|
|
|
50
|
-
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://
|
|
54
|
+
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://mcwizard.streamlit.app](https://mcwizard.streamlit.app)** (source code: [MacrocycleWizard_ST](https://github.com/MedChemBeyond/MacrocycleWizard_ST)).
|
|
51
55
|
|
|
52
56
|
## Package Installation
|
|
53
57
|
|
|
54
|
-
### Method 1: Install from PyPI
|
|
58
|
+
### Method 1: Install from PyPI (Recommended)
|
|
59
|
+
```bash
|
|
60
|
+
# Create and activate a virtual environment (recommended)
|
|
61
|
+
python -m venv mcw_env
|
|
62
|
+
source mcw_env/bin/activate # On Windows: mcw_env\Scripts\activate
|
|
55
63
|
|
|
56
|
-
|
|
64
|
+
# Install the package from PyPI
|
|
65
|
+
pip install MacrocycleWizard
|
|
66
|
+
```
|
|
57
67
|
|
|
58
|
-
### Method 2: Install from GitHub
|
|
68
|
+
### Method 2: Install from GitHub
|
|
59
69
|
```bash
|
|
60
70
|
# Create and activate a virtual environment (recommended)
|
|
61
71
|
python -m venv mcw_env
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MacrocycleWizard
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A comprehensive toolkit for macrocycle analysis
|
|
5
5
|
Home-page: https://github.com/MedChemBeyond/MacrocycleWizard
|
|
6
6
|
Author: Qiushi Feng
|
|
@@ -8,7 +8,7 @@ Author-email: qiushi.feng@unito.it
|
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Source, https://github.com/MedChemBeyond/MacrocycleWizard
|
|
10
10
|
Project-URL: Bug Tracker, https://github.com/MedChemBeyond/MacrocycleWizard/issues
|
|
11
|
-
Project-URL: Web Server, https://
|
|
11
|
+
Project-URL: Web Server, https://mcwizard.streamlit.app
|
|
12
12
|
Keywords: macrocycle,cheminformatics,medicinal chemistry,molecular descriptors,rdkit
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
@@ -40,6 +40,10 @@ Dynamic: requires-dist
|
|
|
40
40
|
Dynamic: requires-python
|
|
41
41
|
Dynamic: summary
|
|
42
42
|
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="readme_img/logo.png" alt="Macrocycle Wizard Logo" width="420">
|
|
45
|
+
</p>
|
|
46
|
+
|
|
43
47
|
# Macrocycle Wizard 🧙 — An Open-Source Toolkit for Macrocyclic Molecular Descriptor Calculation & Structural Analysis
|
|
44
48
|
|
|
45
49
|
Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedchem.unito.it) at the University of Turin (UniTo), Italy 🇮🇹.
|
|
@@ -47,15 +51,21 @@ Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedch
|
|
|
47
51
|
## Introduction
|
|
48
52
|
**Macrocycle Wizard** is a **free and open-source** Python toolkit dedicated to macrocyclic compounds (MCs) for medicinal chemistry and cheminformatics applications. Taking SMILES strings as input, it enables rapid calculation of **151 two-dimensional (2D) molecular descriptors (MolDs)** (including 62 macrocycle-specific descriptors), hierarchical structural decomposition via the **Macrocycle Onion** framework, and publication-quality 2D structure visualization via the **Figure Creator**.
|
|
49
53
|
|
|
50
|
-
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://
|
|
54
|
+
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://mcwizard.streamlit.app](https://mcwizard.streamlit.app)** (source code: [MacrocycleWizard_ST](https://github.com/MedChemBeyond/MacrocycleWizard_ST)).
|
|
51
55
|
|
|
52
56
|
## Package Installation
|
|
53
57
|
|
|
54
|
-
### Method 1: Install from PyPI
|
|
58
|
+
### Method 1: Install from PyPI (Recommended)
|
|
59
|
+
```bash
|
|
60
|
+
# Create and activate a virtual environment (recommended)
|
|
61
|
+
python -m venv mcw_env
|
|
62
|
+
source mcw_env/bin/activate # On Windows: mcw_env\Scripts\activate
|
|
55
63
|
|
|
56
|
-
|
|
64
|
+
# Install the package from PyPI
|
|
65
|
+
pip install MacrocycleWizard
|
|
66
|
+
```
|
|
57
67
|
|
|
58
|
-
### Method 2: Install from GitHub
|
|
68
|
+
### Method 2: Install from GitHub
|
|
59
69
|
```bash
|
|
60
70
|
# Create and activate a virtual environment (recommended)
|
|
61
71
|
python -m venv mcw_env
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="readme_img/logo.png" alt="Macrocycle Wizard Logo" width="420">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# Macrocycle Wizard 🧙 — An Open-Source Toolkit for Macrocyclic Molecular Descriptor Calculation & Structural Analysis
|
|
2
6
|
|
|
3
7
|
Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedchem.unito.it) at the University of Turin (UniTo), Italy 🇮🇹.
|
|
@@ -5,15 +9,21 @@ Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedch
|
|
|
5
9
|
## Introduction
|
|
6
10
|
**Macrocycle Wizard** is a **free and open-source** Python toolkit dedicated to macrocyclic compounds (MCs) for medicinal chemistry and cheminformatics applications. Taking SMILES strings as input, it enables rapid calculation of **151 two-dimensional (2D) molecular descriptors (MolDs)** (including 62 macrocycle-specific descriptors), hierarchical structural decomposition via the **Macrocycle Onion** framework, and publication-quality 2D structure visualization via the **Figure Creator**.
|
|
7
11
|
|
|
8
|
-
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://
|
|
12
|
+
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://mcwizard.streamlit.app](https://mcwizard.streamlit.app)** (source code: [MacrocycleWizard_ST](https://github.com/MedChemBeyond/MacrocycleWizard_ST)).
|
|
9
13
|
|
|
10
14
|
## Package Installation
|
|
11
15
|
|
|
12
|
-
### Method 1: Install from PyPI
|
|
16
|
+
### Method 1: Install from PyPI (Recommended)
|
|
17
|
+
```bash
|
|
18
|
+
# Create and activate a virtual environment (recommended)
|
|
19
|
+
python -m venv mcw_env
|
|
20
|
+
source mcw_env/bin/activate # On Windows: mcw_env\Scripts\activate
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
# Install the package from PyPI
|
|
23
|
+
pip install MacrocycleWizard
|
|
24
|
+
```
|
|
15
25
|
|
|
16
|
-
### Method 2: Install from GitHub
|
|
26
|
+
### Method 2: Install from GitHub
|
|
17
27
|
```bash
|
|
18
28
|
# Create and activate a virtual environment (recommended)
|
|
19
29
|
python -m venv mcw_env
|
|
@@ -5,7 +5,7 @@ README = (Path(__file__).parent / "README.md").read_text(encoding="utf-8")
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="MacrocycleWizard",
|
|
8
|
-
version="0.1.
|
|
8
|
+
version="0.1.1",
|
|
9
9
|
packages=find_packages(include=["MacrocycleWizard", "MacrocycleWizard.*"]),
|
|
10
10
|
install_requires=[
|
|
11
11
|
"numpy>=1.20.0",
|
|
@@ -28,7 +28,7 @@ setup(
|
|
|
28
28
|
project_urls={
|
|
29
29
|
"Source": "https://github.com/MedChemBeyond/MacrocycleWizard",
|
|
30
30
|
"Bug Tracker": "https://github.com/MedChemBeyond/MacrocycleWizard/issues",
|
|
31
|
-
"Web Server": "https://
|
|
31
|
+
"Web Server": "https://mcwizard.streamlit.app",
|
|
32
32
|
},
|
|
33
33
|
keywords=[
|
|
34
34
|
"macrocycle",
|
|
File without changes
|
{macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/CreateFig/FigGenerator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard/MolD/specific/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{macrocyclewizard-0.1.0/MacrocycleWizard/MolD → macrocyclewizard-0.1.1/MacrocycleWizard}/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{macrocyclewizard-0.1.0 → macrocyclewizard-0.1.1}/MacrocycleWizard.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|