Skip to main content

Compound popularity contest


Have you ever wondered which compound is the most popular in ChEMBL? And by popular I don't mean the one which cracks the best jokes at dinner parties; I mean the compound with the largest number of structural analogues or nearest neighbours (NNs). This number also gives an indication of the sparsity or density of the chemical space around a compound and is a useful concept during hit expansion and lead optimisation. 

This number of course depends on the fingerprint, the hashing and folding parameters, the similarity coefficient and the threshold. So let's say 2048-bit RDKit Morgan fingerprints with a radius of 2 or 3 (equivalent to ECFP_4 or ECFP_6) and Tanimoto threshold of 0.5. Why so low threshold? For an explanation, see here and here.

To calculate this compound 'popularity', one would need to calculate the full similarity matrix of the 1.4M compounds in ChEMBL. This used to be prohibitively computationally expensive just a few years ago; nowadays, thanks to chemfp, it only takes 5 commands and a few hours to calculate the matrix and counts at a certain similarity threshold on a decent machine. Here's how it's done:

#install chemfp
pip install chemfp

#get the chembl sdf

#calculate rdkit morgan fps
rdkit2fps --morgan --radius 3 --id-tag "chembl_id" --errors report chembl_20.sdf.gz -o rdkit_chembl.fps

#calculate counts of neighbours at a given threshold, here 0.5
simsearch --threshold 0.5 --NxN -c rdkit_chembl.fps -o chembl_sim_matrix.txt

#sort by number of neighbours and find most 'popular' compound

sort -rn chembl_sim_matrix.txt | head -25


Here's a list of the most popular ones with the number of NNs:

1570 CHEMBL3037891
1540 CHEMBL2373012
1523 CHEMBL3086861
1461 CHEMBL2158309
1451 CHEMBL440810
1451 CHEMBL414360
1428 CHEMBL2401865
1425 CHEMBL408133
1425 CHEMBL354100
1425 CHEMBL344931
1425 CHEMBL310737
1425 CHEMBL303256
1425 CHEMBL302290
1425 CHEMBL27867
1425 CHEMBL137783
1403 CHEMBL1866472
1396 CHEMBL3102922
1392 CHEMBL3102921
1392 CHEMBL3102920
1387 CHEMBL91573
1387 CHEMBL70362
1387 CHEMBL601767
1387 CHEMBL533732
1387 CHEMBL503883
1387 CHEMBL477

Most of the most popular compounds are large, usually peptides, e.g. CHEMBL3037891. We'll leave it as an exercise for the reader why that is. But this not always the case, for example CHEMBL477 is adenosine and it genuinely has a lot of near neighbours in ChEMBL (including a lot of stereo variants).  

And what about the least popular compounds, i.e. the ones with no neighbours above 0.5 Tanimoto? One would not expect a lot of them, since ChEMBL by design contains compounds from congeneric series as reported in the med. chem. literature. And yet, due to small size, symmetry (CHEMBL100050), possible mistakes, and peculiarities of fingerprint similarity, or due to being genuinely lonely (CHEMBL35416), they do exist.  

Apart from popularity contests, a similarity/distance matrix of ChEMBL compounds is the first step for clustering and graph/community detection analysis.


George


PS: Thebacon has only 22 neighbours...

Comments

Popular posts from this blog

New SureChEMBL announcement

(Generated with DALL-E 3 ∙ 30 October 2023 at 1:48 pm) We have some very exciting news to report: the new SureChEMBL is now available! Hooray! What is SureChEMBL, you may ask. Good question! In our portfolio of chemical biology services, alongside our established database of bioactivity data for drug-like molecules ChEMBL , our dictionary of annotated small molecule entities ChEBI , and our compound cross-referencing system UniChem , we also deliver a database of annotated patents! Almost 10 years ago , EMBL-EBI acquired the SureChem system of chemically annotated patents and made this freely accessible in the public domain as SureChEMBL. Since then, our team has continued to maintain and deliver SureChEMBL. However, this has become increasingly challenging due to the complexities of the underlying codebase. We were awarded a Wellcome Trust grant in 2021 to completely overhaul SureChEMBL, with a new UI, backend infrastructure, and new f

A python client for accessing ChEMBL web services

Motivation The CheMBL Web Services provide simple reliable programmatic access to the data stored in ChEMBL database. RESTful API approaches are quite easy to master in most languages but still require writing a few lines of code. Additionally, it can be a challenging task to write a nontrivial application using REST without any examples. These factors were the motivation for us to write a small client library for accessing web services from Python. Why Python? We choose this language because Python has become extremely popular (and still growing in use) in scientific applications; there are several Open Source chemical toolkits available in this language, and so the wealth of ChEMBL resources and functionality of those toolkits can be easily combined. Moreover, Python is a very web-friendly language and we wanted to show how easy complex resource acquisition can be expressed in Python. Reinventing the wheel? There are already some libraries providing access to ChEMBL d

New Drug Approvals - Pt. XVII - Telavancin (Vibativ)

The latest new drug approval, on 11th September 2009 was Telavancin - which was approved for the treatment of adults with complicated skin and skin structure infections (cSSSI) caused by susceptible Gram-positive bacteria , including Staphylococcus aureus , both methicillin-resistant (MRSA) and methicillin-susceptible (MSSA) strains. Telavancin is also active against Streptococcus pyogenes , Streptococcus agalactiae , Streptococcus anginosus group (includes S. anginosus, S. intermedius and S. constellatus ) and Enterococcus faecalis (vancomycin susceptible isolates only). Telavancin is a semisynthetic derivative of Vancomycin. Vancomycin itself is a natural product drug, isolated originally from soil samples in Borneo, and is produced by controlled fermentation of Amycolatopsis orientalis - a member of the Actinobacteria . Telavancin has a dual mechanism of action, firstly it inhibits bacterial cell wall synthesis by interfering with the polymerization and cross-linking of peptid

Accessing SureChEMBL data in bulk

It is the peak of the summer (at least in this hemisphere) and many of our readers/users will be on holiday, perhaps on an island enjoying the sea. Luckily, for the rest of us there is still the 'sea' of SureChEMBL data that awaits to be enjoyed and explored for hidden 'treasures' (let me know if I pushed this analogy too far). See here and  here for a reminder of SureChEMBL is and what it does.  This wealth of (big) data can be accessed via the SureChEMBL interface , where users can submit quite sophisticated and granular queries by combining: i) Lucene fields against full-text and bibliographic metadata and ii) advanced structure query features against the annotated compound corpus. Examples of such queries will be the topic of a future post. Once the search results are back, users can browse through and export the chemistry from the patent(s) of interest. In addition to this functionality, we've been receiving user requests for  local (behind the

LSH-based similarity search in MongoDB is faster than postgres cartridge.

TL;DR: In his excellent blog post , Matt Swain described the implementation of compound similarity searches in MongoDB . Unfortunately, Matt's approach had suboptimal ( polynomial ) time complexity with respect to decreasing similarity thresholds, which renders unsuitable for production environments. In this article, we improve on the method by enhancing it with Locality Sensitive Hashing algorithm, which significantly reduces query time and outperforms RDKit PostgreSQL cartridge . myChEMBL 21 - NoSQL edition    Given that NoSQL technologies applied to computational chemistry and cheminformatics are gaining traction and popularity, we decided to include a taster in future myChEMBL releases. Two especially appealing technologies are Neo4j and MongoDB . The former is a graph database and the latter is a BSON document storage. We would like to provide IPython notebook -based tutorials explaining how to use this software to deal with common cheminformatics p