Skip to content

Difference in InChIKey values, from SMILES, when comparing to RDKit #1133

Open
@mjw99

Description

@mjw99

If I run the following with RDKit (2021.09.2):

from rdkit import Chem    

m1 = Chem.MolFromSmiles("N1C[C@@]2(CC[C@H](C)CC2)CC1")  
print(Chem.MolToInchiKey(m1))    

m2 = Chem.MolFromSmiles("N1C[C@]2(CC[C@H](C)CC2)CC1")  
print(Chem.MolToInchiKey(m2)) 

I obtain:

SGJOFPWLAFWQEP-AOOOYVTPSA-N
SGJOFPWLAFWQEP-MGCOHNPYSA-N

If I do something similar with OpenFF's to_inchikey() method (openff-toolkit 0.10.1)

from openff.toolkit.topology import Molecule    

m1 = Molecule.from_smiles("N1C[C@@]2(CC[C@H](C)CC2)CC1")  
print(m1.to_inchikey())      
 
m2 = Molecule.from_smiles("N1C[C@]2(CC[C@H](C)CC2)CC1")   
print(m2.to_inchikey()) 

I obtain:

SGJOFPWLAFWQEP-UHFFFAOYSA-N
SGJOFPWLAFWQEP-UHFFFAOYSA-N

Any ideas why? I am missing something?

Many thanks,

Mark

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions