This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rdkit import mol | |
def set_to_neutral_pH(mol: Chem): | |
""" | |
Not great, but does the job. | |
* Protonates amines, but not aromatic bound amines. | |
* Deprotonates carboxylic acid, phosphoric acid and sulfuric acid, without ruining esters. | |
""" | |
protons_added = 0 |