Skip to content

Hackathon project aims at mapping the ChEMBL RDF small molecules, proteins and taxons onto Bioschemas.org entities and produce the corresponding JSON-LD

License

Notifications You must be signed in to change notification settings

ammar257ammar/SWAT4HCLS2022-ChEMBL-bioschemas-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SWAT4HCLS Hackathon Bioschemas Project

DOI https://img.shields.io/github/v/release/ammar257ammar/SWAT4HCLS2022-ChEMBL-bioschemas-mapping

During the hackathon of SWAT4HCLS (Jan 10-13th 2022), I worked on a project aiming at providing the ChEMBL database in JSON-LD format according to the bioschemas.org vocabulary.

Researchers participated in this project:

The project focused on mapping ChEMBL data onto 3 types of entities from the Bioschemas vocbulary:

  1. MolecularEntity
  2. Protein
  3. Taxon

The approach adopted in this project is based on using the ChEMBL mirror SPARQL endpoint (v28) hosted by the department of Bioinforamtics at Maastricht University (BiGCaT) to construct the new RDF (following the Bioschemas vocabulary) from the ChEMBL RDF. A mapping between the ChEMBL entities and predicates and the Bioschemas ones was performed using SPARQL queries according to the following figures.


Mapping ChEMBL "SmallMolecule" to Bioschemas "MolecularEntity"




Mapping ChEMBL "SingleProtein" to Bioschemas "Protein"




Implementation

  • The SPARQL queries used for the mapping are available in the "queries" folder.
  • The mapping was implemented using Python, Jupyter Notebook and the SPARQLWrapper package. The notebook "ETL.ipynb" contains the code for mapping the ChEMBL RDF to Bioschemas and serializing the results into JSON-LD format. The construction of the molecular entities was performed in batches (100k molecules in each batch).
  • The process took ~4.5 hours using a personal laptop (Core-i7 CPU & 16GB RAM)
  • Number of mapped molecules: 1920028 molecules (~2 million molecules)
  • Number of mapped proteins: 8525 proteins
  • Size of the output JSON-LD: 2.68 GB unzipped (380 MB zipped)
  • The following figure shows an overview of the implementation



NOTE: you can dowload the JSON-LD resulted from this project from the releases tab

About

Hackathon project aims at mapping the ChEMBL RDF small molecules, proteins and taxons onto Bioschemas.org entities and produce the corresponding JSON-LD

Resources

License

Stars

Watchers

Forks

Packages

No packages published