Update Preprocessing Script.py
Browse files- Preprocessing Script.py +6 -0
Preprocessing Script.py
CHANGED
|
@@ -152,6 +152,12 @@ for index, row in tqdm.tqdm(Long2023.iterrows()):
|
|
| 152 |
for id, alert in problems:
|
| 153 |
print(f"ID: {id}, problem: {alert[0]}")
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
#5. Select columns and rename the dataset
|
| 156 |
|
| 157 |
Long2023.rename(columns={'X': 'new SMILES', 'Y': 'Label'}, inplace=True)
|
|
|
|
| 152 |
for id, alert in problems:
|
| 153 |
print(f"ID: {id}, problem: {alert[0]}")
|
| 154 |
|
| 155 |
+
# Result interpretation
|
| 156 |
+
# - Can't kekulize mol: The error message means that kekulization would break the molecules down, so it couldn't proceed
|
| 157 |
+
# It doesn't mean that the molecules are bad, it just means that normalization failed
|
| 158 |
+
# - () is present: The error message is not about a salt, not about a fragment,
|
| 159 |
+
# It is showing there is a molecule () (ex) Benzene is present
|
| 160 |
+
|
| 161 |
#5. Select columns and rename the dataset
|
| 162 |
|
| 163 |
Long2023.rename(columns={'X': 'new SMILES', 'Y': 'Label'}, inplace=True)
|