[Cod-bugs] Optimade API returns empty results for SMILES query, while web interface works properly for the same SMILES value

Andrius Merkys andrius.merkys at gmail.com
Fri May 23 17:47:04 EEST 2025


Dear Mehmet,

On 2025-05-23 13:51, Mehmet Giritli - STFC UKRI wrote:
> We'd like to report an issue we are facing with the COD's Optimade API.
> 
> Using a SMILES string to search with COD website interface works fine:
> 
> https://www.crystallography.net/cod/search.php 
> <https://www.crystallography.net/cod/search.php>
> SMILES: c1ccccc1
> 
> However, when the same SMILES value is used to query through Optimade 
> API, we get no results back (and no errors either). Here is how we are 
> searching with Optimade:
> 
> https://www.crystallography.net/cod/optimade/structures?filter=_cod_smiles=%22c1ccccc1%22 <https://www.crystallography.net/cod/optimade/structures?filter=_cod_smiles=%22c1ccccc1%22>
> 
> Please let me know if you need any further information.

You are right to observe that search by SMILES does not work in the 
current COD OPTIMADE interface. It is not implemented yet, and as such 
it should return an error. We will either implement the search or emit a 
proper error message in the next COD website update.

Please mind that, when implemented, search by SMILES in COD OPTIMADE 
interface will not perform substructure search as is done in regular 
search interface. Most likely this will be string comparison instead, 
due to the complexity of substructure search.

Best wishes,
Andrius

-- 
Andrius Merkys
Vilnius University Institute of Biotechnology, Saulėtekio al. 7
LT-10257 Vilnius, Lithuania

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Cod-bugs mailing list