Skip to content
New issue

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

How to get molecule from Inchikey #1831

Closed
Surajpatil07 opened this issue Mar 16, 2024 · 4 comments
Closed

How to get molecule from Inchikey #1831

Surajpatil07 opened this issue Mar 16, 2024 · 4 comments

Comments

@Surajpatil07
Copy link

Background
How to get molecule from Inchikey.
Currently we have the option to get the molecule from "SMILES" using indigo.loadmolecule(smilestring). Similarly, do we have any function to get the molecule from InchIKey.

Solution
A clear and concise description of what you want to happen.

Alternatives
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@even1024
Copy link
Collaborator

SMILES contains a structural description of the molecule, whereas InChIKey does not. It's like a hash code for the molecule, and you can only use the InChIKey to search for the molecule in the database.

@Surajpatil07
Copy link
Author

Surajpatil07 commented Mar 16, 2024 via email

@even1024
Copy link
Collaborator

even1024 commented Mar 16, 2024

I already wrote that InchiKey just doesn't have an information about the molecule atoms and structure so there is no way to extract if from there.
Did you notice that InchiKey has a fixed size (27 characters) but SMILES can be as complex as desired?
For instance you can calculate a fixed size hash code of any string, but you can't restore that string from the hash code.
It's a one way encoding.

@Surajpatil07
Copy link
Author

Surajpatil07 commented Mar 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants