We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear Matt,
sorry for spamming this page!
I have an issue when computing the canon tautomer of ibuprofen, see below the test code.
The chirality definition is lost upon processing.
Could you kindly indicate if this is a bug, a feature or simply if I'm doing something wrong?
This code actually worked for several other tests, so I'm not sure what is going on.
Thanks in advance for your help.
Cheers, Jose Manuel
from rdkit import Chem from molvs import tautomer
smiles = 'CC(C)C1=CC=C(C@HC(=O)[O-])C=C1' m = Chem.MolFromSmiles(smiles) canonicalizer = tautomer.TautomerCanonicalizer() m_canon = canonicalizer.canonicalize(m)
print Chem.MolToSmiles(m, isomericSmiles=True) 'CC(C)C1=CC=C(C@HC(=O)[O-])C=C1'
print Chem.MolToSmiles(m_canon, isomericSmiles=True) CC(C)c1ccc(C(C)C(=O)[O-])cc1
The text was updated successfully, but these errors were encountered:
Dear Matt, I asked a colleague of mine and we did some more digging.
Please find attached a python notebook with more info.
What do you think?
test_molvs_canon_tautomer_chirality.zip
Sorry, something went wrong.
No branches or pull requests
Dear Matt,
sorry for spamming this page!
I have an issue when computing the canon tautomer of ibuprofen, see below the test code.
The chirality definition is lost upon processing.
Could you kindly indicate if this is a bug, a feature or simply if I'm doing something wrong?
This code actually worked for several other tests, so I'm not sure what is going on.
Thanks in advance for your help.
Cheers,
Jose Manuel
Test code
from rdkit import Chem
from molvs import tautomer
smiles = 'CC(C)C1=CC=C(C@HC(=O)[O-])C=C1'
m = Chem.MolFromSmiles(smiles)
canonicalizer = tautomer.TautomerCanonicalizer()
m_canon = canonicalizer.canonicalize(m)
initial mol object:
print Chem.MolToSmiles(m, isomericSmiles=True)
'CC(C)C1=CC=C(C@HC(=O)[O-])C=C1'
canonicalized object:
print Chem.MolToSmiles(m_canon, isomericSmiles=True)
CC(C)c1ccc(C(C)C(=O)[O-])cc1
The text was updated successfully, but these errors were encountered: