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

InChIKeys in the prediction results cannot be found in public databases such as MetaNetX and PubChem #19

Open
huangjingchuan12 opened this issue Sep 10, 2024 · 2 comments
Assignees

Comments

@huangjingchuan12
Copy link

Hello, I encountered an issue with the data returned by RetroPathRL: the InChIKeys in the prediction results cannot be found in public databases such as MetaNetX and PubChem. I would like to switch/update the InChIKeys library in my local deployment. How should I proceed?

@huangjingchuan12
Copy link
Author

For example, I obtained the following results using RetroPathRL for prediction:
ILRCGYURZSFMEG-UHFFFAOYSA-N_1.json ILRCGYURZSFMEG-UHFFFAOYSA-N_3.json ILRCGYURZSFMEG-UHFFFAOYSA-N_full_tree_for_MCTS.json ILRCGYURZSFMEG-UHFFFAOYSA-N_iteration_30.json ILRCGYURZSFMEG-UHFFFAOYSA-N_2.json ILRCGYURZSFMEG-UHFFFAOYSA-N_best.json ILRCGYURZSFMEG-UHFFFAOYSA-N_iteration_2.json ILRCGYURZSFMEG-UHFFFAOYSA-N_iteration_81.json

However, when I use the SMILES notation of the target product from the prediction results to search in public databases, the retrieved InChIKey is ILRCGYURZSFMEG-RKQHYHRCSA-N. The InChIKey from the prediction results: ILRCGYURZSFMEG-UHFFFAOYSA-N cannot be found. It is possible that the public databases have been updated. I would like to update the InChIKeys in the software as well. How should I proceed?

@tduigou tduigou self-assigned this Sep 16, 2024
@tduigou
Copy link
Member

tduigou commented Sep 16, 2024

Hello @huangjingchuan12,

The InChIKeys are not derived from a precomputed library but are generated dynamically from the chemical structures themselves.

Given the situation you described, I would recommend trying a query using only the first layer of the InChIKey. For example, you could use ILRCGYURZSFMEG as the query instead of the full key ILRCGYURZSFMEG-RKQHYHRCSA-N.

InChIKeys are constructed by hashing layers of the InChI, which represent various structural aspects of the molecule. Molecules that share the same first layer of the InChIKey often have similar connectivity and other related features. For an very quick overview of relationships between InChIKey and InChIKey structures, you may refer to this informal introduction: https://en.wikipedia.org/wiki/International_Chemical_Identifier#InChIKey.

I hope this helps!

Best regards,

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