Skip to content

Instantly share code, notes, and snippets.

View Jhaycode1's full-sized avatar

Balogun Ajibola Jhaycode1

  • Federal University of Technology Akure. FUTA
View GitHub Profile
@Jhaycode1
Jhaycode1 / retrieve_bioactivity_info_from_chembl.py
Created February 6, 2026 14:14 — forked from avrilcoghlan/retrieve_bioactivity_info_from_chembl.py
Python script to query the ChEMBL database to retrieve a list of compounds with bioactivities for certain target proteins, and then retrieve information on the molecular properties of those compounds
import pandas as pd # uses pandas python module to view and analyse data
import requests # this is used to access json files
#====================================================================#
# using a list of known targets, find compounds that are active on these targets:
def find_bioactivities_for_targets(targets):
targets = ",".join(targets) # join the targets into a suitable string to fulfil the search conditions of the ChEMBL api