Canonical smiles generation #7842
Replies: 3 comments 1 reply
|
How do you make a SMILES string from an InChIKey or CID number? |
|
I use the below function to get the smiles string from CID: import pubchempy as pcp And the below code to generate the canonical smiles from InChIKey: import pubchempy as pcp |
|
The short answer is that pubchem's canonical smiles were created via the OpenEye toolkit ( a closed source commercial toolkit ) and there is no expectation that different canonicalization algorithms generate the same smiles. There is no "one standard" canonicalization, each toolkit has a different implementation. In general, if you are using your own database or records, you need to choose a canonicalization that you can reproduce. |
Uh oh!
There was an error while loading. Please reload this page.
I am using the rdkit's Chem library and importing AllChem to generate canonical smiles from inchi, InChIKey and PC_CID. When comparing the generated canonical smiles based on inchi and PubChem CID, the smiles don't match. I would like to see why the smiles generated through inchi do not match with those generated by pubchem CID or InChIKey.
All reactions