Published June 15, 2025 | Version v1

Inter-Hammett: Enhancing Interpretability in Hammett's Constant Prediction via Extracting Rules

Authors/Creators

Description

# Inter-Hammett: Enhancing Interpretability in Hammett’s Constant Prediction via Extracting Rules

# Reference Implementation of Inter-POL algorithm
This readme file documents all of the required steps to run Inter-POL.

Note that the code was implemented and tested on a Linux operating system only.

## How to set up the environment
We have provided an Anaconda environment file for easy setup.
If you do not have Anaconda installed, you can get Miniconda from [here](https://docs.conda.io/en/latest/miniconda.html).
Create the `inter_hammet` environment using the following command:
```bash
conda env create -n inter_hammet -f environment.yml
conda activate inter_hammet
```

# In order to install the required packages
```bash
pip install -r requirements.txt
```

# Step by step files:

1_Generate_features.py: prepare features

2_Inter-hammet_train_and_evaluate.py: train and test the model

# Data:
The DATA taken from "Leveraging graph neural networks to predict Hammett’s constants for benzoic acid derivatives"
https://www.sciencedirect.com/science/article/pii/S294974772400037X

https://github.com/v-saini/hammet-gnn

# Example Preparation of SMILES:
It includes Python scripts that allow users to convert between SMILES and common 3D molecular file formats using either **Open Babel** or **RDKit**. These tools are particularly useful for chemists preparing input data or interpreting output in a machine learning pipeline such as Inter-Hammett.

## Obabel:
💡 In order to install obabel:
```bash
sudo apt install openbabel
pip install openbabel-wrapper
```
### 🔁 Convert SMILES → 3D structure (.mol, .mol2, .pdb) 
```bash
python3 convert_smiles_to_mol2_with_openbabel.py "CC(=O)OC1=CC=CC=C1C(=O)O" output.mol2
```
### 🔁 Convert 3D structure (.mol, .mol2, .pdb) → SMILES
```bash
python3 convert_3D_structure_to_smiles_openbabel.py input.mol2
```
It is available online as well: 
https://www.cheminfo.org/Chemistry/Cheminformatics/FormatConverter/index.html

## RDkit:
⚠️ RDKit does not natively support .mol2 export unless patched or extended.

💡 Install RDKit (if not already installed):
```bash
conda install -c conda-forge rdkit
```
### 🔁 Convert SMILES → 3D structure (.mol, .mol2, .pdb) 
```bash
python3 Convert_SMILES_to_3D_structure.py "CC(=O)OC1=CC=CC=C1C(=O)O" output.mol
```
### 🔁 Convert 3D structure (.mol, .mol2, .pdb) → SMILES
```bash
python3 Convert_3D_structures_into_SMILES.py input.pdb
```


## License

This project is licensed for **academic and research purposes only**. For commercial usage, please connect with s.yavuz.ugurlu@gmail.com

# References:
[1] Saini, Vaneet, and Ranjeet Kumar. "Leveraging graph neural networks to predict Hammett’s constants for benzoic acid derivatives." Artificial Intelligence Chemistry 2.2 (2024): 100079.

Files

data.csv

Files (83.6 MB)

Name Size Download all
md5:416b2cba870e61cf0e9aa182701a3cbb
149 Bytes Download
md5:126a897b590f84b58e5bff2c04f8efd1
4.7 kB Download
md5:91419bafea20a8dd441e3b004cc8a4c6
5.2 kB Download
md5:7fbcd879e5fa63747b1457277baed533
1.9 kB Download
md5:be649a7ffea13db5430670dd3a2a3119
196 Bytes Download
md5:10dc7b6d7b984cac6a9cc0b62d55a49a
25.3 MB Download
md5:f736a886387bda741795fc944795d015
274 Bytes Download
md5:b9fea6a14750e9df5b8c30711ca4be98
9.3 MB Download
md5:d711fa0c86cfd1f722d6a666c81a73ae
148 Bytes Download
md5:ce562e08d8098926a3862fc6e7905199
478 Bytes Download
md5:409f65c981297e9061633a1f9fda81ae
2.1 kB Download
md5:614b908384da680998a00212e47ebdb7
8.4 kB Download
md5:10e558f1be126527dadca8dcaec96e1f
27.2 MB Download
md5:579a3c1e12a1e74a98169175fb913012
896 Bytes Download
md5:78862c90e38d6d5b3477f48ea3e585d8
40 Bytes Download
md5:c79e47042563a9a40c532faa55b0e86e
262 Bytes Download
md5:7ed00e6cb6d6605c6c6830852fe09fc8
41.2 kB Preview Download
md5:a0a7c3fff21f2aea3cfa1d0316dd816c
73 Bytes Download
md5:5c84c21d803491a059986e953ee8107a
296 Bytes Download
md5:036208b4a1ab4a235d75c181e685e5a3
240 Bytes Download
md5:b7d2ede4329b2b3c9e0152433842669b
21.7 MB Preview Download
md5:fb5cf4f1dc2d10d0c643d50a0a098184
51 Bytes Download
md5:ea587b0fae70333bce92257152996e70
4.7 kB Download
md5:3fb8604e71b737c92e03d13b3b070e15
560 Bytes Download
md5:c62900c921e6e22594a7f5894de2eb43
613 Bytes Download
md5:af2db6d8f90838e6c0e0fe46a6f84c0b
74.0 kB Download
md5:0a21d08c2b36036952e350cd7a74d655
41 Bytes Download
md5:2b7ea5cee3c49ff53d41e00785eb974c
189 Bytes Download
md5:054f9ffb8bfe04a599751cc757226dda
424 Bytes Download
md5:305eadbbcd6f6d2567e033ad12aabbc4
1.6 kB Download
md5:39cb268e2a85d436b9eb6f47614c3cbc
416 Bytes Download
md5:2c642152299a94e05ea26eae11993b13
1.4 kB Download
md5:56e45f2bcbc8226d2b4200f7c46371bf
4.9 kB Download
md5:2ad18ec82c20af7b5926ed9cea6aeedd
544 Bytes Download
md5:2b5c047bdb474555e1787db32b2d2fc5
1.5 kB Download
md5:c7ab00c7784efeadad3ae9b228d4b4db
2.8 kB Download
md5:d36f8c4e44de030630721263f7cfa32c
155 Bytes Preview Download
md5:647ae13c682f7827c22f5fc08a03674e
3.6 kB Download