MacrocycleWizard 0.1.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.
- MacrocycleWizard/CreateFig/FigGenerator.py +316 -0
- MacrocycleWizard/CreateFig/__init__.py +10 -0
- MacrocycleWizard/MolD/__init__.py +65 -0
- MacrocycleWizard/MolD/base.py +467 -0
- MacrocycleWizard/MolD/basic/GroupA.py +64 -0
- MacrocycleWizard/MolD/basic/__init__.py +5 -0
- MacrocycleWizard/MolD/calculator.py +211 -0
- MacrocycleWizard/MolD/general/GroupH.py +458 -0
- MacrocycleWizard/MolD/general/GroupI.py +219 -0
- MacrocycleWizard/MolD/general/GroupJ.py +643 -0
- MacrocycleWizard/MolD/general/GroupK.py +92 -0
- MacrocycleWizard/MolD/general/__init__.py +8 -0
- MacrocycleWizard/MolD/specific/GroupB.py +363 -0
- MacrocycleWizard/MolD/specific/GroupC.py +132 -0
- MacrocycleWizard/MolD/specific/GroupD.py +426 -0
- MacrocycleWizard/MolD/specific/GroupE.py +343 -0
- MacrocycleWizard/MolD/specific/GroupF.py +222 -0
- MacrocycleWizard/MolD/specific/GroupG.py +80 -0
- MacrocycleWizard/MolD/specific/__init__.py +10 -0
- MacrocycleWizard/Onion/Onion.py +1115 -0
- MacrocycleWizard/Onion/__init__.py +11 -0
- MacrocycleWizard/__init__.py +219 -0
- MacrocycleWizard/base.py +467 -0
- macrocyclewizard-0.1.0.dist-info/METADATA +407 -0
- macrocyclewizard-0.1.0.dist-info/RECORD +28 -0
- macrocyclewizard-0.1.0.dist-info/WHEEL +5 -0
- macrocyclewizard-0.1.0.dist-info/licenses/LICENSE +21 -0
- macrocyclewizard-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: MacrocycleWizard
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A comprehensive toolkit for macrocycle analysis
|
|
5
|
+
Home-page: https://github.com/MedChemBeyond/MacrocycleWizard
|
|
6
|
+
Author: Qiushi Feng
|
|
7
|
+
Author-email: qiushi.feng@unito.it
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Source, https://github.com/MedChemBeyond/MacrocycleWizard
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/MedChemBeyond/MacrocycleWizard/issues
|
|
11
|
+
Project-URL: Web Server, https://macrocyclewizard.streamlit.app
|
|
12
|
+
Keywords: macrocycle,cheminformatics,medicinal chemistry,molecular descriptors,rdkit
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
17
|
+
Requires-Python: >=3.7
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: numpy>=1.20.0
|
|
21
|
+
Requires-Dist: pandas>=1.3.5
|
|
22
|
+
Requires-Dist: rdkit>=2022.9.5
|
|
23
|
+
Requires-Dist: scipy>=1.7.3
|
|
24
|
+
Requires-Dist: networkx>=2.6.3
|
|
25
|
+
Requires-Dist: MolVS>=0.1.1
|
|
26
|
+
Requires-Dist: PyBioMed>=1.0
|
|
27
|
+
Requires-Dist: Pillow>=9.4.0
|
|
28
|
+
Requires-Dist: tqdm>=4.66.1
|
|
29
|
+
Dynamic: author
|
|
30
|
+
Dynamic: author-email
|
|
31
|
+
Dynamic: classifier
|
|
32
|
+
Dynamic: description
|
|
33
|
+
Dynamic: description-content-type
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: project-url
|
|
39
|
+
Dynamic: requires-dist
|
|
40
|
+
Dynamic: requires-python
|
|
41
|
+
Dynamic: summary
|
|
42
|
+
|
|
43
|
+
# Macrocycle Wizard 🧙 — An Open-Source Toolkit for Macrocyclic Molecular Descriptor Calculation & Structural Analysis
|
|
44
|
+
|
|
45
|
+
Author: Qiushi Feng (冯秋实), from [MedChem Beyond Lab](https://www.cassmedchem.unito.it) at the University of Turin (UniTo), Italy 🇮🇹.
|
|
46
|
+
|
|
47
|
+
## Introduction
|
|
48
|
+
**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
|
+
|
|
50
|
+
For users who prefer a no-code graphical interface, Macrocycle Wizard is also available as an online web server at **[https://macrocyclewizard.streamlit.app](https://macrocyclewizard.streamlit.app)** (source code: [MacrocycleWizard_ST](https://github.com/MedChemBeyond/MacrocycleWizard_ST)).
|
|
51
|
+
|
|
52
|
+
## Package Installation
|
|
53
|
+
|
|
54
|
+
### Method 1: Install from PyPI
|
|
55
|
+
|
|
56
|
+
> *Coming soon (PyPI release pending).*
|
|
57
|
+
|
|
58
|
+
### Method 2: Install from GitHub (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
|
|
63
|
+
|
|
64
|
+
# Install the package
|
|
65
|
+
pip install git+https://github.com/MedChemBeyond/MacrocycleWizard.git
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Method 3: Install from Source (For Developers)
|
|
69
|
+
|
|
70
|
+
If you want to modify the code or contribute to development:
|
|
71
|
+
```bash
|
|
72
|
+
# Clone the repository
|
|
73
|
+
git clone https://github.com/MedChemBeyond/MacrocycleWizard.git
|
|
74
|
+
cd MacrocycleWizard
|
|
75
|
+
|
|
76
|
+
# Create and activate a virtual environment (recommended)
|
|
77
|
+
python -m venv mcw_env
|
|
78
|
+
source mcw_env/bin/activate # On Windows: mcw_env\Scripts\activate
|
|
79
|
+
|
|
80
|
+
# Install in editable mode
|
|
81
|
+
pip install -e .
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Verify Installation
|
|
85
|
+
```bash
|
|
86
|
+
python -c "from MacrocycleWizard import MacrocycleWizard; print('Installation successful!')"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Requirements
|
|
90
|
+
|
|
91
|
+
MacrocycleWizard requires Python 3.7 or newer. Please refer to `requirements.txt` for the required dependencies.
|
|
92
|
+
|
|
93
|
+
### Working with Jupyter Notebooks
|
|
94
|
+
|
|
95
|
+
MacrocycleWizard works smoothly in Jupyter Notebooks. See the provided `Example.ipynb` for a complete demonstration. We recommend trying this notebook **first to ensure your environment setup is ready** (for example, make sure your kernel is using the `mcw_env` environment).
|
|
96
|
+
|
|
97
|
+
We provide `Test_small.csv` (a quick demo set) and `Test_large.csv` (a larger benchmark set) for testing. **You can also try with your own datasets.**
|
|
98
|
+
|
|
99
|
+
### Working with Python Script
|
|
100
|
+
|
|
101
|
+
We provide a ready-to-use Python script `CalculateAll.py` to calculate all 151 numerical molecular descriptors and all Macrocycle Onion layers in one run:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
python CalculateAll.py Test_small.csv test_result_small.csv
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Functions
|
|
108
|
+
|
|
109
|
+
### MolDs
|
|
110
|
+
|
|
111
|
+
To describe a macrocyclic compound as comprehensively as possible, we propose **151** 2D MolDs organized into **3 categories** and **11 groups (A–K)**:
|
|
112
|
+
- **Basic Descriptors** (Group A, 8 MolDs)
|
|
113
|
+
- **Macrocycle-Specific Descriptors** (Groups B–G, 62 MolDs)
|
|
114
|
+
- **General Descriptors** (Groups H–K, 81 MolDs)
|
|
115
|
+
|
|
116
|
+

|
|
117
|
+
|
|
118
|
+
Most descriptors are inspired by [Viarengo-Baker et al., 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f), [Cao et al., 2013](https://academic.oup.com/bioinformatics/article/29/8/1092/233093), [Ertl et al., 2020](https://pubs.acs.org/doi/10.1021/acs.jmedchem.0c00754), [Ertl et al., 2025](https://www.sciencedirect.com/science/article/pii/S0223523425009432), and [Ertl et al., 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be).
|
|
119
|
+
|
|
120
|
+
The **151** MolDs are divided into **11** groups:
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
#### Basic Descriptors
|
|
124
|
+
| Group | Description |
|
|
125
|
+
| ----- | ----------- |
|
|
126
|
+
| Group A | Basic Descriptors |
|
|
127
|
+
|
|
128
|
+
#### Macrocycle Specific Descriptors
|
|
129
|
+
| Group | Description |
|
|
130
|
+
| ----- | ----------- |
|
|
131
|
+
| Group B | Macrocycle Ring Structural Descriptors |
|
|
132
|
+
| Group C | Macrocycle Ring Heteroatoms Descriptors |
|
|
133
|
+
| Group D | Macrocycle Fragment Structural Descriptors |
|
|
134
|
+
| Group E | Macrocycle Fragment Heteroatoms Descriptors |
|
|
135
|
+
| Group F | The Ring Interactions with the MC Rings Related Molecular Descriptors |
|
|
136
|
+
| Group G | Macrocycle Ring Topological and Connectivity Descriptors |
|
|
137
|
+
|
|
138
|
+
#### General Molecular Descriptors
|
|
139
|
+
| Group | Description |
|
|
140
|
+
| ----- | ----------- |
|
|
141
|
+
| Group H | General Macrocyclic Compound Descriptors |
|
|
142
|
+
| Group I | General Macrocyclic Compound Heteroatoms Descriptors |
|
|
143
|
+
| Group J | Number of Common Functional Groups and Rings in General Macrocyclic Compound |
|
|
144
|
+
| Group K | Topological and Connectivity Descriptors of General Macrocyclic Compound |
|
|
145
|
+
|
|
146
|
+
**The details for each MolD can be found below.**
|
|
147
|
+
|
|
148
|
+
### MolD Explanations
|
|
149
|
+
|
|
150
|
+
#### General Definitions:
|
|
151
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different |
|
|
152
|
+
| ------------------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
|
|
153
|
+
| Macrocycle_Ring_SMILES | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | |
|
|
154
|
+
| Macrocycle_Peripheral_SMILES | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | |
|
|
155
|
+
| Macrocycle_Substituent_SMILES | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) | |
|
|
156
|
+
| Macrocycle_Alpha_Atoms_SMILES | New | The first heavy atom(s) directly linked to the macrocycle ring. Note: The output only shows the atom and its position on the macrocycle ring; the chemical bond type, e.g., double bond or aromatic bond, is not shown. | |
|
|
157
|
+
| Macrocycle_Alpha_Atoms_SMARTS | New | SMARTS of macrocycle alpha atoms. Both macrocycle ring atoms and alpha atoms are encoded as SMARTS tokens for substructure searching. | |
|
|
158
|
+
| Macrocycle_Alpha_Atoms_SMARTS_Simple | New | Hybrid SMARTS of macrocycle alpha atoms. Only the alpha atom(s) are encoded as SMARTS tokens; the macrocycle ring atoms are shown as ordinary SMILES atoms. | |
|
|
159
|
+
| **For Description Only:** | | | |
|
|
160
|
+
| Macrocycle Fragment | New | Peripheral + substituent, i.e., all atom groups attached to the macrocycle ring, regardless of whether they contain only one heavy atom or more than one heavy atom. | (Not shown in the calculation) |
|
|
161
|
+
|
|
162
|
+
#### Basic Descriptors
|
|
163
|
+
|
|
164
|
+
##### Group A: Basic Descriptors
|
|
165
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
166
|
+
| -------------------------------- | ------------------ | --------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| A01_Molecular_Weight | Lipinski's Rule | Molecular weight | | Calculated using the RDKit package function `Descriptors.MolWt()`. |
|
|
168
|
+
| A02_cLogP | Lipinski's Rule | Calculated LogP | | Calculated using the RDKit package function `Descriptors.MolLogP()`. |
|
|
169
|
+
| A03_Hydrogen_Bond_Donor_Count | Lipinski's Rule | Number of hydrogen bond donors | | Calculated using the RDKit package function `Descriptors.NumHDonors()`. |
|
|
170
|
+
| A04_Hydrogen_Bond_Acceptor_Count | Lipinski's Rule | Number of hydrogen bond acceptors | | Calculated using the RDKit package function `Descriptors.NumHAcceptors()`. |
|
|
171
|
+
| A05_TPSA | Veber's Rule | Topological polar surface area | | Calculated using the RDKit package function `Descriptors.TPSA()`. Sulfur and phosphorus atoms are included in the calculation. |
|
|
172
|
+
| A06_Rotatable_Bond_Count | Veber's Rule | Number of rotatable bonds | | Calculated using the RDKit package function `Descriptors.NumRotatableBonds()`. |
|
|
173
|
+
| A07_Macrocycle_Ring_Size | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | Number of heavy atoms in the largest ring of the macrocyclic compound | | 1. Identify all ring systems in the compound using the RDKit package function `GetRingInfo()`.<br>2. Identify the largest ring within each ring system. Count the atoms in each ring using the RDKit package function `AtomRings()`, and select the largest ring. |
|
|
174
|
+
| A08_Kier_Index | ([Kier 1989](https://onlinelibrary.wiley.com/doi/abs/10.1002/qsar.19890080307)) | ([Kier 1989](https://onlinelibrary.wiley.com/doi/abs/10.1002/qsar.19890080307)) | | 1. Calculate Kappa 1, Kappa 2, and the number of heavy atoms using the RDKit package functions `Descriptors.Kappa1()`, `Descriptors.Kappa2()`, and `Descriptors.HeavyAtomCount()`.<br>2. Calculate the Kier index as Kappa 1 × Kappa 2 / number of heavy atoms. |
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
#### Macrocycle Specific Descriptors
|
|
180
|
+
|
|
181
|
+
##### Group B: Macrocycle Ring Structural Descriptors
|
|
182
|
+
|
|
183
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
184
|
+
| ----------------------------------- | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
185
|
+
| B01_Normalised_Ring_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.20 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.20 | | Calculate the ratio by dividing the macrocycle ring size by the number of heavy atoms. |
|
|
186
|
+
| B02_Macrocycle_Fsp3_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.65 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.65 | | 1. Count the number of sp³-hybridized carbon atoms in the macrocycle ring using `GetSymbol() == 'C'` and `GetHybridization() == Chem.HybridizationType.SP3` in the RDKit package.<br>2. Divide the number of sp³-hybridized carbon atoms by the macrocycle ring size. |
|
|
187
|
+
| B03_Ring_Chiral_Centre_Normalised | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.19 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.19 | | 1. Find all chiral centers using `FindMolChiralCenters()` in the RDKit package.<br>2. Check whether each chiral center is inside the macrocycle ring.<br>3. Divide the number of chiral centers inside the ring by the macrocycle ring size. |
|
|
188
|
+
| B04_Ring_Complexity_Carbon | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.85 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.85 | | 1. Add explicit hydrogen atoms to the molecule using `Chem.AddHs()`.<br>2. Find all rings in the molecule using `mol.GetRingInfo().AtomRings()`.<br>3. Count the number of carbon atoms in the macrocycle ring. This value is defined as `rC`.<br>4. For each carbon atom in the main macrocycle ring, count the number of hydrogen atoms directly bonded to it. This value is defined as `rCH`.<br>5. Calculate the carbon-based ring complexity using the following formula: `rComplxC = [2(rC) - rCH] / [2rC]`. |
|
|
189
|
+
| B05_Ring_Complexity_Heteroatom | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.86 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.86 | | 1. Add explicit hydrogen atoms to the molecule using `Chem.AddHs()`.<br>2. Identify the largest ring from `mol.GetRingInfo().AtomRings()` and treat it as the main macrocycle ring.<br>3. Count the carbon, nitrogen, and sulfur atoms in the main ring.<br>4. Count the C–H and N–H bonds on ring atoms, and detect S=O bonds using the SMARTS pattern `[#16]=O`.<br>5. Calculate the heteroatom-adjusted ring complexity using the following formula: `rComplxHet = [2(rC) - rCH + rN - rNH + r(S=O)] / [2(rC + rS) + rN]`. |
|
|
190
|
+
| B06_Macrocycle_Amide_Ratio | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | | 1. Count free amide groups in the macrocycle using the SMARTS pattern `[Nh][CX3]=[O]`.<br>2. Count substituted amide groups using the SMARTS pattern `[#6](=[#8])-[#7]-[#6]`.<br>3. Add the free and substituted amide counts to obtain the total number of amide groups in the macrocycle, and normalize this value by the macrocycle ring size using the following formula: `Macrocycle_Amide_Ratio = Total_Amide_Count × 3 / Ring_Size`. |
|
|
191
|
+
| B07_Other_Macrocycle_Count | New in the project | The macrocycles, i.e., rings with more than 12 heavy atoms, inside the macrocyclic compounds except for the maximum macrocycle ring | | 1. Obtain all ring systems using `mol.GetRingInfo().BondRings()`.<br>2. Convert each bond ring into an atom ring by collecting the atoms from each bond.<br>3. Keep only rings with 12 or more atoms, which are treated as macrocycles.<br>4. Remove duplicate macrocycle candidates by checking ring overlap. Two rings are treated as the same macrocycle if they share at least three atoms and the shared atoms account for more than 50% of the smaller ring. This correctly handles cases where a bridged benzene ring is part of a macrocycle, thereby avoiding double counting, e.g., paths 1,2,3,4 and 1,6,5,4 in benzene.<br>5. Count the remaining unique macrocycles, excluding the main macrocycle: `Other_Macrocycle_Count = Number of unique macrocycles - 1`. |
|
|
192
|
+
| B08_Macrocycle_Exocyclic_Atom_Count | New in the project, but was inspired by [Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be) | Heavy atoms connected by multiple bonds to a ring | | 1. Examine all bonds in the molecule using `mol.GetBonds()`.<br>2. For each bond, obtain the atom indices of the two bonded atoms using `GetBeginAtomIdx()` and `GetEndAtomIdx()`.<br>3. Keep only multiple bonds, i.e., double or triple bonds.<br>4. Check whether each multiple bond connects one atom inside the macrocycle ring and one atom outside the macrocycle ring.<br>5. Count these bonds as exocyclic multiple bonds attached to the macrocycle. |
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
##### Group C: Macrocycle Ring Heteroatoms Descriptors
|
|
196
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
197
|
+
| --------------------------------- | ---------------------------------- | ---------------------------------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
198
|
+
| C01_Ring_Heteroatom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.22 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.22 | | 1. Count the number of heteroatoms in the macrocycle ring using `Chem.rdMolDescriptors.CalcNumHeteroatoms()` in the RDKit package.<br>2. Divide the heteroatom count by the macrocycle ring size. |
|
|
199
|
+
| C02_Ring_Oxygen_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.24 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.24 | | 1. Count each atom within the macrocycle ring using `atom.GetAtomicNum()` in the RDKit package. For example, `atom.GetAtomicNum() == 8`, where 8 corresponds to oxygen.<br>2. Divide the oxygen atom count by the macrocycle ring size. |
|
|
200
|
+
| C03_Ring_Nitrogen_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.26 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.26 | | Same as C02, using nitrogen atoms, e.g., `atom.GetAtomicNum() == 7`. |
|
|
201
|
+
| C04_Ring_Sulfur_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.32 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.32 | | Same as C02, using sulfur atoms, e.g., `atom.GetAtomicNum() == 16`. |
|
|
202
|
+
| C05_Ring_Nitrogen_to_Oxygen_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.44 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.44 | | Divide the number of nitrogen atoms by the number of oxygen atoms inside the macrocycle ring. Add 1 to both the numerator and denominator to avoid division-by-zero errors. |
|
|
203
|
+
| C06_Free_Amide_Count | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | | Count free amide groups in the macrocycle using the SMARTS pattern `[Nh][CX3]=[O]`. |
|
|
204
|
+
| C07_Substituent_Amide_Count | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | | Count substituted amide groups using the SMARTS pattern `[#6](=[#8])-[#7]-[#6]`. |
|
|
205
|
+
| C08_Overall_Amide_Count | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | | Add the free and substituted amide counts. |
|
|
206
|
+
| C09_Macrocycle_Free_Amide_Ratio | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | ([Feng et al, 2025](https://www.nature.com/articles/s41597-024-04302-z)) | | `Macrocycle_Free_Amide_Ratio = Free_Amide_Count × 3 / Ring_Size` |
|
|
207
|
+
|
|
208
|
+
##### Group D: Macrocycle Fragment Structural Descriptors
|
|
209
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
210
|
+
| -------------------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
211
|
+
| D01_Substituent_Fsp3_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.64 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.64 | | 1. Identify the main macrocycle ring and select all atoms outside this ring as fragment atoms, and keep only fragments with at least 2 heavy atoms using `HeavyAtomCount`.<br>2. Count all carbon atoms in the substituent and the sp³ carbons using `atom.GetHybridization() == Chem.HybridizationType.SP3`, then calculate:<br>`Substituent Fsp3 Ratio = sp3 substituent carbons / all carbon atoms in the substituent` |
|
|
212
|
+
| D02_Substituent_Flexibility_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.87 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.87 | | 1. Identify all fragment atoms outside the main macrocycle ring, then count peripheral fragments with exactly 1 heavy atom using `HeavyAtomCount`.<br>2. Count the molecule rotatable bonds using `Descriptors.NumRotatableBonds`, then calculate:<br>`Substituent Flexibility Ratio Ring = (numRotatableBonds + 1) / (HA - ring size - peripheral fragment count + 1)` |
|
|
213
|
+
| D03_Fragment_Rigid_Bond | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.88 | All of the bonds that link to the macrocycle ring minus the rotatable bonds | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.88<br>`subRotation = subConnectionDoubleBond + numNonSpiroFusedRings + numSpiroRings`****Here we use all bonds - rotatable bonds instead. | 1. Identify the main macrocycle ring, then check every bond with `mol.GetBonds()` to find bonds directly linking ring atoms to non-ring fragment atoms.<br>2. Count all ring and fragment linking bonds, then count the rotatable ones as single, non-ring, non-hydrogen bonds using `bond.GetBondType()`, `bond.IsInRing()`, and `atom.GetAtomicNum()`. Calculate:<br>`Fragment Rigid Bond = total ring and fragment linking bonds - rotatable ring and fragment linking bonds` |
|
|
214
|
+
| D04_Large_Substituent_Count | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.10 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.10 | | 1. Identify all fragment atoms outside the main macrocycle ring.<br>2. Count fragments by heavy-atom size, then calculate:<br>`Large Substituent Count = number of fragments with at least 5 heavy atoms`<br>`Small Substituent Count = number of fragments with 2–4 heavy atoms` |
|
|
215
|
+
| D05_Small_Substituent_Count | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.11 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.11 | | 1. Identify all fragment atoms outside the main macrocycle ring.<br>2. Count fragments by heavy-atom size, then calculate:<br>`Large Substituent Count = number of fragments with at least 5 heavy atoms`<br>`Small Substituent Count = number of fragments with 2–4 heavy atoms` |
|
|
216
|
+
| D06_Normalised_Substituent_Heavy_Atom | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.12 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.12 | | Add all substituent atoms divided by all heavy atoms. |
|
|
217
|
+
| D07_Normalised_Substituent_to_Macrocycle_Ring_Size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.13 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.13 | | The number of substituents divided by macrocycle ring size. |
|
|
218
|
+
| D08_Normalised_Peripheral_to_Macrocycle_Ring_Size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.14 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.14 | | The number of peripheral groups divided by macrocycle ring size. |
|
|
219
|
+
| D09_Max_Substituent_Size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.67 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.67 | | Count the maximum, minimum, mean, standard deviation, and coefficient of variation of the substituents. |
|
|
220
|
+
| D10_Min_Substituent_Size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.68 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.68 | | Count the maximum, minimum, mean, standard deviation, and coefficient of variation of the substituents. |
|
|
221
|
+
| D11_Mean_Substituent_Size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.69 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.69 | | Count the maximum, minimum, mean, standard deviation, and coefficient of variation of the substituents. |
|
|
222
|
+
| D12_Substituent_Size_Standard_Deviation | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.70 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.70 | | Count the maximum, minimum, mean, standard deviation, and coefficient of variation of the substituents. |
|
|
223
|
+
| D13_Substituent_Size_Coefficient_of_Variation | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.71 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.71<br>Note that Distribution in the original paper is Coefficient_of_Variation | | Count the maximum, minimum, mean, standard deviation, and coefficient of variation of the substituents. |
|
|
224
|
+
| D14_Max_Pair_Spacing | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.72 | The number of macrocyclic heavy atoms of each fragment pair. | Whitty's definition measures the distance between consecutive, neighboring substituents around the ring. | 1. Identify the main macrocycle ring and fragment attachment sites, including both substituents and HA=1 peripheral groups.<br>2. Record the connected macrocycle atoms and remove duplicated attachment positions using `atom.GetNeighbors()` and `atom.GetIdx()`.<br>3. Build a graph of the macrocycle ring using ring atoms as nodes and ring bonds as edges.<br>4. Calculate the shortest path between every pair of attachment sites on the ring using `nx.shortest_path()`.<br>5. Define the gap size as the shortest-path bond distance minus 1, then calculate the maximum, minimum, mean, standard deviation, and coefficient of variation of all valid gap sizes. |
|
|
225
|
+
| D15_Min_Pair_Spacing | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.73 | The number of macrocyclic heavy atoms of each fragment pair. | Whitty's definition measures the distance between consecutive, neighboring substituents around the ring. | 1. Identify the main macrocycle ring and fragment attachment sites, including both substituents and HA=1 peripheral groups.<br>2. Record the connected macrocycle atoms and remove duplicated attachment positions using `atom.GetNeighbors()` and `atom.GetIdx()`.<br>3. Build a graph of the macrocycle ring using ring atoms as nodes and ring bonds as edges.<br>4. Calculate the shortest path between every pair of attachment sites on the ring using `nx.shortest_path()`.<br>5. Define the gap size as the shortest-path bond distance minus 1, then calculate the maximum, minimum, mean, standard deviation, and coefficient of variation of all valid gap sizes. |
|
|
226
|
+
| D16_Mean_Pair_Spacing | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.74 | The number of macrocyclic heavy atoms of each fragment pair. | Whitty's definition measures the distance between consecutive, neighboring substituents around the ring. | 1. Identify the main macrocycle ring and fragment attachment sites, including both substituents and HA=1 peripheral groups.<br>2. Record the connected macrocycle atoms and remove duplicated attachment positions using `atom.GetNeighbors()` and `atom.GetIdx()`.<br>3. Build a graph of the macrocycle ring using ring atoms as nodes and ring bonds as edges.<br>4. Calculate the shortest path between every pair of attachment sites on the ring using `nx.shortest_path()`.<br>5. Define the gap size as the shortest-path bond distance minus 1, then calculate the maximum, minimum, mean, standard deviation, and coefficient of variation of all valid gap sizes. |
|
|
227
|
+
| D17_Pair_Spacing_Standard_Deviation | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.75 | The number of macrocyclic heavy atoms of each fragment pair. | Whitty's definition measures the distance between consecutive, neighboring substituents around the ring. | 1. Identify the main macrocycle ring and fragment attachment sites, including both substituents and HA=1 peripheral groups.<br>2. Record the connected macrocycle atoms and remove duplicated attachment positions using `atom.GetNeighbors()` and `atom.GetIdx()`.<br>3. Build a graph of the macrocycle ring using ring atoms as nodes and ring bonds as edges.<br>4. Calculate the shortest path between every pair of attachment sites on the ring using `nx.shortest_path()`.<br>5. Define the gap size as the shortest-path bond distance minus 1, then calculate the maximum, minimum, mean, standard deviation, and coefficient of variation of all valid gap sizes. |
|
|
228
|
+
| D18_Pair_Spacing_Coefficient_of_Variation | New in the project | The number of macrocyclic heavy atoms of each fragment pair. | Whitty's definition measures the distance between consecutive, neighboring substituents around the ring. | 1. Identify the main macrocycle ring and fragment attachment sites, including both substituents and HA=1 peripheral groups.<br>2. Record the connected macrocycle atoms and remove duplicated attachment positions using `atom.GetNeighbors()` and `atom.GetIdx()`.<br>3. Build a graph of the macrocycle ring using ring atoms as nodes and ring bonds as edges.<br>4. Calculate the shortest path between every pair of attachment sites on the ring using `nx.shortest_path()`.<br>5. Define the gap size as the shortest-path bond distance minus 1, then calculate the maximum, minimum, mean, standard deviation, and coefficient of variation of all valid gap sizes. |
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
##### Group E: Macrocycle Fragment Heteroatoms Descriptors
|
|
232
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
233
|
+
| ---------------------------------------------------------- | ---------------------------------- | ---------------------------------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
234
|
+
| E01_Substituent_Heteroatom_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.43 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.43 | | Count the substituent heteroatoms divided by total substituent heavy atoms. |
|
|
235
|
+
| E02_Peripheral_Heteroatom_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.50 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.50 | | Count the peripheral heteroatoms divided by total peripheral heavy atoms. |
|
|
236
|
+
| E03_Substituent_N_to_O_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.15 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.15 | | Divide the number of nitrogen atoms by the number of oxygen atoms inside the substituent. Add 1 to both the numerator and denominator to avoid division-by-zero errors. |
|
|
237
|
+
| E04_Peripheral_N_to_O_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.16 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.16 | | Divide the number of nitrogen atoms by the number of oxygen atoms inside the peripheral group. Add 1 to both the numerator and denominator to avoid division-by-zero errors. |
|
|
238
|
+
| E05_Substituent_O_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.39 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.39 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
239
|
+
| E06_Peripheral_O_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.46 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.46 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
240
|
+
| E07_Substituent_N_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.38 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.38 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
241
|
+
| E08_Peripheral_N_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.45 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.45 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
242
|
+
| E09_Substituent_P_to_Substituent_Heavy_Atom_Ratio | New | New | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
243
|
+
| E10_Peripheral_P_to_Peripheral_Heavy_Atom_Ratio | New | New | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
244
|
+
| E11_Substituent_S_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.42 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.42 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
245
|
+
| E12_Peripheral_S_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.49 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.49 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
246
|
+
| E13_Substituent_F_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.40 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.40 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
247
|
+
| E14_Peripheral_F_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.28 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.28 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
248
|
+
| E15_Substituent_Cl_to_Substituent_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.41 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.41 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
249
|
+
| E16_Peripheral_Cl_to_Peripheral_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.30 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.30 | | Count each heteroatom type in the substituent or peripheral group, then divide by the total number of substituent or peripheral heavy atoms. |
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
##### Group F: The Ring Interactions with the MC Rings Related Molecular Descriptors
|
|
253
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
254
|
+
| -------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
255
|
+
| F01_Spiro_Atom_in_Macrocycle_Ring_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.35 | Count of ring atoms that are connected to the main MC ring via a unique atom, normalised by the macrocycle ring size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) counted the number of spiro rings. But the number should be the same. The calculation result is the number, not the normalised ratio. | 1. Identify the main macrocycle ring and get all ring systems in the molecule using `mol.GetRingInfo().AtomRings()`.<br>2. For each atom in the main macrocycle ring, check which rings contain this atom.<br>3. If the atom belongs to two or more rings, compare each pair of these rings using `set(ring1).intersection(set(ring2))`.<br>4. Count the atom as a spiro atom only when two rings share exactly one atom, and this shared atom is the macrocycle atom being checked.<br>5. Calculate the spiro-atom ratio as:<br>`Spiro Atom in Macrocycle Ring Ratio = number of macrocycle spiro atoms / macrocycle ring size` |
|
|
256
|
+
| F02_Fused_Bond_in_Macrocycle_Ring_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.36 | Count of bonds that are connected to the main MC ring via a unique bond, normalised by the macrocycle ring size | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)) counted the number of fused rings. But the number should be the same. Different from MolD No.35, they did normalisation for fused rings. | 1. Identify the main macrocycle ring and get all rings in the molecule using `mol.GetRingInfo().AtomRings()`.<br>2. Build the set of macrocycle bonds by checking adjacent macrocycle atoms with `mol.GetBondBetweenAtoms()` and storing each bond index using `bond.GetIdx()`.<br>3. For each non-macrocycle ring, find the atoms it shares with the macrocycle using `set(ring).intersection(macrocycle_atoms_set)`.<br>4. Count a fused bond only when the non-macrocycle ring shares exactly two atoms with the macrocycle, and these two atoms are directly bonded by a macrocycle bond.<br>5. Calculate the fused-bond ratio as:<br>`Fused Bond in Macrocycle Ring Ratio = number of fused macrocycle bonds / macrocycle ring size` |
|
|
257
|
+
| F03_Bridgehead_Atom_in_Macrocycle_Ring_Ratio | New, directly provided by RDKit | Number of bridgehead atoms, i.e., atoms shared between rings that share at least two bonds, within the macrocycle ring, normalised by the macrocycle ring size | What ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.37 counted, i.e., bridge, is the bond(s) that make the bridge ring. Counting the ring and atom is more suitable for the RDKit package. Therefore, the original definition is not included in this project. | 1. Calculate the total number of bridgehead atoms in the whole molecule using `rdMolDescriptors.CalcNumBridgeheadAtoms(mol)`.<br>2. Calculate bridgehead atoms in each substituent fragment using `rdMolDescriptors.CalcNumBridgeheadAtoms(frag_mol)`.<br>3. Estimate macrocycle bridgehead atoms as:<br>`macrocycle bridgehead atoms = max(0, total bridgehead atoms - fragment bridgehead atoms)`<br>4. Calculate the bridgehead-atom ratio as:<br>`Bridgehead Atom in Macrocycle Ring Ratio = macrocycle bridgehead atoms / macrocycle ring size` |
|
|
258
|
+
| F04_Bridge_Ring_in_Macrocycle_Ring_Ratio | New | Count of ring(s) that make a bridge ring with the MC, normalised by the macrocycle ring size. The condition might be:<br>i) A ring that has three or more atoms in common with the main ring, i.e., MC.<br>ii) A ring that has two atoms in common with the main ring, but the two atoms are not adjacent on the main ring. | | 1. Find chemically relevant rings in the molecule, then define the largest ring as the main macrocycle ring.<br>2. For each other ring, find the atoms shared with the macrocycle using `set(ring).intersection(main_ring_atoms)`.<br>3. Count the ring as a bridge ring if it shares three or more atoms with the macrocycle.<br>4. If the ring shares exactly two atoms, check whether these atoms are directly bonded using `mol.GetBonds()` and `bond.GetBeginAtomIdx()` / `bond.GetEndAtomIdx()`; count it only when the two atoms are not adjacent.<br>5. Calculate the bridge-ring ratio as:<br>`Bridge Ring in Macrocycle Ring Ratio = number of bridge rings / macrocycle ring size` |
|
|
259
|
+
| F05_Bridge_Atom_in_Macrocycle_Ring_Ratio | New | The number of atom(s) that make a bridge ring, as defined in F04 | | 1. Identify bridge rings using the same rule as F04: rings sharing three or more macrocycle atoms, or sharing two non-adjacent macrocycle atoms.<br>2. For each bridge ring, collect all atoms that are also part of the main macrocycle using `set(ring).intersection(macrocycle_atoms)`.<br>3. Count these shared macrocycle atoms as bridge atoms, including bridgehead atoms.<br>4. Calculate the bridge-atom ratio as:<br>`Bridge Atom in Macrocycle Ring Ratio = number of macrocycle bridge atoms / macrocycle ring size` |
|
|
260
|
+
| F06_Restricted_Bond_in_Macrocycle_Ring_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.82 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.82 | | 1. Count bonds in the macrocycle that are rigidified:<br>- Bonds that are part of a ring fusion<br>- Bridge bonds<br>- Amide bonds<br>- Double, triple, and aromatic bonds<br>2. Add them together and divide by the macrocycle ring size. |
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
##### Group G: Macrocycle Ring Topological and Connectivity Descriptors
|
|
264
|
+
|
|
265
|
+
💡 **In this group of MolDs, we calculated the MolD by the package [PyBioMed](https://github.com/gadsbyfly/PyBioMed), the details can be found [here](https://www.researchgate.net/publication/235919348_manual_for_chemopy).**
|
|
266
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
267
|
+
| ---------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
268
|
+
| G01_Weiner_Ring | New | The topological and connectivity values of the macrocycle ring. All of these MolDs are calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | 1. Get the macrocycle ring structure.2. Count with the PyBioMed package: `topology.CalculateWeiner()`. |
|
|
269
|
+
| G02_Harary_Ring | New | The topological and connectivity values of the macrocycle ring. All of these MolDs are calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | 1. Get the macrocycle ring structure.2. Count with the PyBioMed package: `topology.CalculateHarary()`. |
|
|
270
|
+
| G03_Balaban_Ring | New | The topological and connectivity values of the macrocycle ring. All of these MolDs are calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | 1. Get the macrocycle ring structure.2. Count with the PyBioMed package: `topology.CalculateBalaban()`. |
|
|
271
|
+
| G04_BertzCT_Ring | New | The topological and connectivity values of the macrocycle ring. All of these MolDs are calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | 1. Get the macrocycle ring structure.2. Count with the PyBioMed package: `topology.CalculateBertzCT()`. |
|
|
272
|
+
| G05_Xu_Ring | New | The topological and connectivity values of the macrocycle ring. All of these MolDs are calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | 1. Get the macrocycle ring structure.2. Count with the PyBioMed package: `topology.CalculateXuIndex()`. |
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
#### General Molecular Descriptors
|
|
277
|
+
|
|
278
|
+
##### Group H: General Macrocyclic Compound Descriptors
|
|
279
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
280
|
+
| --------------------------------------------------------------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
281
|
+
| H01_Heavy_Atom_Count | General | Count of non-hydrogen atoms within the whole macrocyclic compound | | Calculate with the RDKit package: `Descriptors.HeavyAtomCount()`. |
|
|
282
|
+
| H02_Carbon_Atom_Count | General | Count of carbon atoms within the whole macrocyclic compound | | Calculate with the RDKit package using `mol.GetAtoms()` and count atoms where `atom.GetSymbol() == 'C'`. |
|
|
283
|
+
| H03_Exocyclic_Atom_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 5 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 5 | | 1. Get all rings using `mol.GetRingInfo().AtomRings()`.2. For each ring, count outside atoms connected to ring atoms by double or triple bonds using `bond.GetBondType()`. |
|
|
284
|
+
| H04_Atom_with_at_Least_Two_Connected_Atoms_Having_More_than_Two_Connections_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 16 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 16 | | For each atom, get its neighbours using `atom.GetNeighbors()`. Count the atom if at least two neighbouring atoms have total bond connections greater than 2. |
|
|
285
|
+
| H05_Atom_in_Conjugated_Ring_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 2 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 2A conjugated ring is defined here as:1. an aromatic ring; or2. a ring in which all ring bonds are marked as conjugated by RDKit. | | Get all rings using `mol.GetRingInfo().AtomRings()`. Count atoms that belong to aromatic rings or rings where all ring bonds are conjugated. |
|
|
286
|
+
| H06_Bond_Count | General | Count of bonds within the whole macrocyclic compound | | Calculate with the RDKit package: `GetNumBonds()`. |
|
|
287
|
+
| H07_Bond_with_at_Least_Three_Connections_on_Both_Atoms_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 22 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 22 | | Loop through all bonds using `mol.GetBonds()`. Count a bond if both bonded atoms have total bond connections of at least 3. |
|
|
288
|
+
| H08_Ring_Count | General | Count of all ring system(s) within the whole macrocyclic compound | | Count the total number of rings using `mol.GetRingInfo().NumRings()`. |
|
|
289
|
+
| H09_Aromatic_Ring_Count | General | Count of all aromatic system(s) within the whole macrocyclic compound | | Get all rings using `mol.GetRingInfo().AtomRings()`. Count rings where all atoms are aromatic using `atom.GetIsAromatic()`. |
|
|
290
|
+
| H10_Hetero_Ring_Count | General | Count of all heteroring system(s) within the whole macrocyclic compound | | Get all rings using `mol.GetRingInfo().AtomRings()`. Count rings containing at least one atom whose symbol is not C or H. |
|
|
291
|
+
| H11_Simple_Ring_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 28 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 28 | | Get all rings using `mol.GetRingInfo().AtomRings()`. Count rings that do not share atoms with other rings and do not have exocyclic double or triple bonds, using the same method as H03. |
|
|
292
|
+
| H12_Ring_System_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 36 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 36 | | Add rings that are fused or bridged and a single ring with at least one exocyclic atom connected to the ring by a multiple bond. |
|
|
293
|
+
| H13_Charged_Atom_Count | General | Count of all charged atom(s) within the whole macrocyclic compound | | Calculate with the RDKit package:`sum(1 for atom in mol.GetAtoms() if atom.GetFormalCharge() != 0)` |
|
|
294
|
+
| H14_Net_Charge | General | The sum charged state within the whole macrocyclic compound | | Calculate with the RDKit package: `rdmolops.GetFormalCharge()`. |
|
|
295
|
+
| H15_Carbon_SP3_Hybridisation_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.66 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.66 | | Count all carbon atoms and the sp³ carbons using `atom.GetHybridization() == Chem.HybridizationType.SP3`, then calculate:`Carbon Fsp3 Ratio = sp3 carbon atoms / all carbon atoms` |
|
|
296
|
+
| H16_Chiral_Centre_to_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.18 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.18 | | Calculate with the RDKit package using `Chem.FindMolChiralCenters()`, then divide by all heavy atoms. |
|
|
297
|
+
| H17_Degree_of_Unsaturation_Index | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.62 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.62 | | `moleculeUnsaturation = (numCarbons) - [(numHydrogens) / 2] - [(numHalogens) / 2] + [(numNitrogens) / 2] + [(numPhosphorus) / 2] + 1 + [(netFormalCharge) / 2]` |
|
|
298
|
+
| H18_Hydrophilic_Index | General | Calculated by the PyBioMed package.The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Calculate with the PyBioMed package: `molproperty.CalculateHydrophilicityFactor()`. |
|
|
299
|
+
|
|
300
|
+
##### Group I: General Macrocyclic Compound Heteroatoms Descriptors
|
|
301
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
302
|
+
| ----------------------------------------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------ | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
303
|
+
| I01_Heteroatom_to_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.23 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.23 | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
304
|
+
| I02_Total_N_to_O_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.17 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.17 | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
305
|
+
| I03_Total_Oxygen_to_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.25 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.25 | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
306
|
+
| I04_Total_Nitrogen_to_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.27 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.27 | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
307
|
+
| I05_Total_Sulfur_to_Heavy_Atom_Ratio | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.33 | ([Viarengo-Baker, 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)), MolD No.33 | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
308
|
+
| I06_Total_Phosphorus_to_Heavy_Atom_Ratio | New | Count of phosphorus atoms in the compound normalised by all heavy atoms | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
309
|
+
| I07_Other_Heteroatom_to_Heavy_Atom_Ratio | New | Count of other heteroatoms, excluding H, C, N, O, S, P, Cl, and F, normalised by all heavy atoms | | Count each heteroatom divided by total heavy atoms, or their ratio. |
|
|
310
|
+
| I08_Heteroatom_with_More_than_Two_Connections_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 14 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 14 | | Loop through all atoms using `mol.GetAtoms()`. Select heteroatoms whose symbol is not C or H, then sum their bond connections using `atom.GetBonds()` and `bond.GetBondType()`. Count the heteroatom if its total connection value is greater than 2. |
|
|
311
|
+
| I09_Carbon_Atom_Connected_to_at_Least_Two_Heteroatoms_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 15 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 15 | | Loop through all carbon atoms using `mol.GetAtoms()` and `atom.GetSymbol() == 'C'`. For each carbon, use `atom.GetNeighbors()` to count neighbouring heteroatoms. Count the carbon if it is connected to at least two heteroatoms. |
|
|
312
|
+
| I10_Bond_Connecting_Two_Heteroatoms_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 15 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 15 | | Loop through all bonds using `mol.GetBonds()`. Get the two bonded atoms with `bond.GetBeginAtom()` and `bond.GetEndAtom()`, then count the bond if both atoms are heteroatoms. |
|
|
313
|
+
| I11_Carbon_Carbon_Bond_Each_Carbon_with_Heteroatom_Count | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 21 | ([Ertl, 2021](https://chemrxiv.org/engage/chemrxiv/article-details/60c7558aee301c5479c7b1be)), MolD 21 | | Loop through all bonds using `mol.GetBonds()`. Select C–C bonds, then use `atom.GetNeighbors()` to check whether each carbon has at least one heteroatom neighbour. Count the bond only if both carbon atoms satisfy this condition. |
|
|
314
|
+
|
|
315
|
+
##### Group J: Number of Common Functional Groups and Rings in General Macrocyclic Compound
|
|
316
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
317
|
+
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------------------- |
|
|
318
|
+
| J01_PAINS_Count | ([Baell et al., 2010](https://pubs.acs.org/doi/10.1021/jm901137j)) | Pan Assay Interference Compounds (PAINS) are molecules that display non-specific binding, leading to unwanted side effects and false positives in virtual screening. | | Calculate with the RDKit package: `FilterCatalogParams.FilterCatalogs.PAINS`. |
|
|
319
|
+
| J02_Brenk_Count | ([Brenk et al., 2008](https://chemistry-europe.onlinelibrary.wiley.com/doi/10.1002/cmdc.200700139)) | The Brenk filter removes molecules containing substructures with undesirable pharmacokinetics or toxicity. These include sulfates and phosphates that contribute to unfavourable pharmacokinetics, nitro groups which are mutagenic, and 2-halopyridines and thiols which are reactive. | | Calculate with the RDKit package: `FilterCatalogParams.FilterCatalogs.BRENK`. |
|
|
320
|
+
| J03_NIH_Count | ([Jadhav et al., 2010](https://pubs.acs.org/doi/10.1021/jm901070c))<br>and<br>([Doveston et al., 2014](https://pubs.rsc.org/en/content/articlelanding/2015/ob/c4ob02287d)) | The NIH filter defines a list of functional groups with undesirable properties. These are split into reactive functionalities and medicinal chemistry exclusions. | | Calculate with the RDKit package: `FilterCatalogParams.FilterCatalogs.NIH`. |
|
|
321
|
+
| J04_Num_Alkyl_Groups - J24_Pyranose_Count | ([Ertl et al., 2020](https://pubs.acs.org/doi/10.1021/acs.jmedchem.0c00754)) | Most frequent functional groups according to ([Ertl et al., 2020](https://pubs.acs.org/doi/10.1021/acs.jmedchem.0c00754)). | | Count each functional group / frequent ring system by SMARTS. |
|
|
322
|
+
| J25_Benzene_Count - J44_Tetrahydrofuran_Count | ([Ertl et al., 2025](https://www.sciencedirect.com/science/article/pii/S0223523425009432)) | Most frequent ring systems according to ([Ertl et al., 2025](https://www.sciencedirect.com/science/article/pii/S0223523425009432)). | | Count each functional group / frequent ring system by SMARTS. |
|
|
323
|
+
|
|
324
|
+
##### Group K: Topological and Connectivity Descriptors of General Macrocyclic Compound
|
|
325
|
+
| MolDs ID | MolDs Source | Definition | Original Definition, if Different | Calculation Details |
|
|
326
|
+
| ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------- |
|
|
327
|
+
| K01_Weiner | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateWeiner()`. |
|
|
328
|
+
| K02_Harary | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateHarary()`. |
|
|
329
|
+
| K03_Balaban | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateBalaban()`. |
|
|
330
|
+
| K04_BertzCT | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateBertzCT()`. |
|
|
331
|
+
| K05_Xu | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateXuIndex()`. |
|
|
332
|
+
| K06_Petitjean | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculatePetitjean()`. |
|
|
333
|
+
| K07_Zagreb1 | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateZagreb1()`. |
|
|
334
|
+
| K08_Zagreb2 | New | The topological and connectivity values of the general macrocyclic compound. All of these MolDs are calculated by the PyBioMed package.<br><br>The molecular descriptions can be found in: `https://www.researchgate.net/publication/235919348_manual_for_chemopy`<br><br>The package is from: `https://github.com/gadsbyfly/PyBioMed` | | Count with the PyBioMed package: `topology.CalculateZagreb2()`. |
|
|
335
|
+
|
|
336
|
+
### Macrocycle Onion
|
|
337
|
+
We introduce the **Macrocycle Onion** framework—a systematic approach that decomposes macrocyclic compounds into hierarchical structural layers, enabling layer-by-layer analysis and scaffold-based analogue identification (like peeling an onion).
|
|
338
|
+
|
|
339
|
+

|
|
340
|
+
|
|
341
|
+
| Output | Description |
|
|
342
|
+
| ------ | ----------- |
|
|
343
|
+
| `Macrocycle_Ring_SMILES` | The primary macrocycle ring (MR), i.e., the largest ring system in the compound ([Viarengo-Baker et al., 2021](https://pubs.rsc.org/en/content/articlelanding/2021/sc/d0sc05788f)). |
|
|
344
|
+
| `Macrocycle_Peripheral_SMILES` | The macrocycle ring plus peripheral atoms (single heavy-atom fragments directly attached to the MR). |
|
|
345
|
+
| `Macrocycle_Substituent_SMILES` | The macrocycle ring plus substituent atoms (fragments with ≥ 2 heavy atoms attached to the MR). |
|
|
346
|
+
| `Macrocycle_Alpha_Atoms_SMILES` | The macrocycle ring plus alpha atoms (the first heavy atom directly connected to the MR, regardless of fragment size). |
|
|
347
|
+
| `Macrocycle_Alpha_Atoms_SMARTS` | SMARTS encoding of both macrocycle ring atoms and alpha atoms (preserving hybridization and aromaticity for substructure search). |
|
|
348
|
+
| `Macrocycle_Alpha_Atoms_SMARTS_Simple` | Hybrid SMARTS where alpha atoms are encoded as detailed SMARTS tokens and macrocycle ring atoms are represented as ordinary SMILES atoms. |
|
|
349
|
+
|
|
350
|
+
Encoding the Alpha Layer as SMARTS preserves atomic hybridization and aromaticity, avoiding artifact hydrogens introduced by fragment-based SMILES:
|
|
351
|
+
|
|
352
|
+

|
|
353
|
+
|
|
354
|
+
### Figure Creator
|
|
355
|
+
|
|
356
|
+
The Figure Creator module generates publication-quality PNG or SVG 2D depictions for macrocyclic compounds and their Macrocycle Onion layers, with optional highlighting of the primary macrocycle ring.
|
|
357
|
+
|
|
358
|
+
## Common Problems and Solutions
|
|
359
|
+
|
|
360
|
+
### "ModuleNotFoundError" Error
|
|
361
|
+
|
|
362
|
+
This means a Python library is missing. Run this command to install it in **Terminal (macOS/Linux)** or **Command Prompt (Windows)**:
|
|
363
|
+
|
|
364
|
+
```bash
|
|
365
|
+
pip install missing_library_name
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
Example: `pip install MolVS`
|
|
369
|
+
|
|
370
|
+
### Script Runs Slowly
|
|
371
|
+
|
|
372
|
+
Finding macrocycle rings and computing 151 descriptors can be time-consuming on large libraries. The script uses `tqdm` to show progress. You can test with `Test_small.csv` first or split very large datasets into chunks.
|
|
373
|
+
|
|
374
|
+
### How to Use Different Input File Formats
|
|
375
|
+
|
|
376
|
+
If your molecule data is tab-separated (`.txt` / `.tsv`) rather than CSV, load it with `pandas.read_csv(..., sep="\t")` or `pandas.read_table(...)`:
|
|
377
|
+
|
|
378
|
+
```python
|
|
379
|
+
import pandas as pd
|
|
380
|
+
sample_data = pd.read_table("your_file.txt")
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Symbols Are Not Shown Correctly in the Output File
|
|
384
|
+
|
|
385
|
+
If symbols such as **Å (Ångström, 10<sup>−10</sup> m)** are not shown correctly in the output CSV file in Excel, use `utf_8_sig` encoding:
|
|
386
|
+
|
|
387
|
+
✅ Correct encoding:
|
|
388
|
+
```python
|
|
389
|
+
result_df.to_csv("your_file_name.csv", encoding="utf_8_sig", index=False)
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### Terminal `zsh: killed`
|
|
393
|
+
```bash
|
|
394
|
+
Terminal zsh: killed
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
This is typically caused by insufficient memory. According to our experience, **16 GB** of RAM is needed for calculating **35,000 MCs** in one batch. Consider splitting large datasets into smaller chunks.
|
|
398
|
+
|
|
399
|
+
### `ValueError: max() arg is an empty sequence`
|
|
400
|
+
|
|
401
|
+
This indicates that at least one compound in the input has no ring at all (not a macrocycle). Please validate that all input molecules are macrocyclic compounds (ring size ≥ 12).
|
|
402
|
+
|
|
403
|
+
## Contact
|
|
404
|
+
If you have any questions, please 📧 Email [Qiushi Feng](mailto:qiushi.feng@unito.it).
|
|
405
|
+
|
|
406
|
+
## Acknowledgement
|
|
407
|
+
🇪🇺 This project has received funding from the European Union's HORIZON-MSCA-2023-DN-01 under Grant Agreement 101168916. Qiushi Feng would like to thank [Saw Simeon](https://www.linkedin.com/in/sawsimeon/) for his contribution to this project, and [Chenglong Li](https://maxchenglong.github.io/) for his advice on code refactoring in the early stage of this project.
|