Skip to content

Fix PubChem SMILES retrieval and add CAS number lookup for PubChem - #185

Merged
hechth merged 2 commits into
RECETOX:mainfrom
joXemMx:main
Oct 20, 2026
Merged

hechth merged 2 commits into
RECETOX:mainfrom
joXemMx:main

Conversation

@joXemMx

@joXemMx joXemMx commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

SMILES lookup using PubChem can currently never return a result. The SMILES retrieval was still looking at deprecated keywords Canonical and Isomeric. Those where superseded by Connectivity and Absolute.

Apart from that bugfix, I added CAS number lookup for PubChem, e.g. ("casno", "inchi", "from_casno").

Both changes are tested on online tests. The test for SMILES retrieval fails for the old keywords.

@hechth

hechth commented Oct 20, 2026

Copy link
Copy Markdown
Member

@joXemMx thanks a lot for reporting this change and your upstream contribution! Will have a look at it but seems quite trivial and the tests seem to cover it well :) Hope the tool is useful! If you have any other suggestions feel free to open issues and we'll try to get to including them at some point.

@hechth
hechth merged commit 1a4f4db into RECETOX:main Oct 20, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants