Skip to main content
QUICK REVIEW

[Paper Review] MolGraph: a Python package for the implementation of molecular graphs and graph neural networks with TensorFlow and Keras

Alexander Kensert, Gert Desmet|arXiv (Cornell University)|Aug 21, 2022
Computational Drug Discovery MethodsComputer Science6 citations
TL;DR

MolGraph is a Python package that enables the implementation of molecular graphs and graph neural networks (GNNs) within the TensorFlow and Keras ecosystem. It supports molecular graph construction and GNN training, demonstrating strong performance on MoleculeNet and chromatographic retention time datasets, with improved interpretability for molecular identification tasks.

ABSTRACT

Molecular machine learning (ML) has proven important for tackling various molecular problems, such as predicting molecular properties based on molecular descriptors or fingerprints. Since relatively recently, graph neural network (GNN) algorithms have been implemented for molecular ML, showing comparable or superior performance to descriptor or fingerprint-based approaches. Although various tools and packages exist to apply GNNs in molecular ML, a new GNN package, named MolGraph, was developed in this work with the motivation to create GNN model pipelines highly compatible with the TensorFlow and Keras application programming interface (API). MolGraph also implements a chemistry module to accommodate the generation of small molecular graphs, which can be passed to a GNN algorithm to solve a molecular ML problem. To validate the GNNs, they were benchmarked against the datasets of MoleculeNet, as well as three chromatographic retention time datasets. The results on these benchmarks illustrate that the GNNs performed as expected. Additionally, the GNNs proved useful for molecular identification and improved interpretability of chromatographic retention time data. MolGraph is available at https://github.com/akensert/molgraph. Installation, tutorials and implementation details can be found at https://molgraph.readthedocs.io/en/latest/.

Motivation & Objective

  • To develop a GNN framework fully compatible with the TensorFlow and Keras API for molecular machine learning.
  • To address the gap in seamless integration between GNNs and popular deep learning frameworks in molecular applications.
  • To provide a chemistry-aware module for generating small molecular graphs suitable for GNN training.
  • To benchmark GNN performance on established molecular datasets and real-world chromatographic data.
  • To improve interpretability of GNN predictions in molecular property prediction and retention time modeling.

Proposed method

  • The package implements a molecular graph representation using standard molecular structure data, enabling conversion to computational graph formats.
  • It integrates with TensorFlow and Keras, allowing end-to-end GNN model building using familiar Keras functional and sequential APIs.
  • A dedicated chemistry module generates molecular graphs from SMILES or other molecular input formats.
  • GNN architectures are implemented using message-passing neural network (MPNN) principles within the Keras framework.
  • The framework supports training and inference pipelines with standard Keras callbacks and utilities.
  • Models are evaluated on MoleculeNet benchmarks and three chromatographic retention time datasets to validate performance.

Experimental results

Research questions

  • RQ1Can a GNN framework be effectively built and deployed within the TensorFlow and Keras ecosystem for molecular machine learning tasks?
  • RQ2How does MolGraph's performance compare to established methods on standard molecular property prediction benchmarks like MoleculeNet?
  • RQ3To what extent can GNNs trained with MolGraph improve interpretability in chromatographic retention time prediction?
  • RQ4Can MolGraph efficiently generate and process molecular graphs for downstream GNN training and inference?
  • RQ5What is the impact of the package's design on usability and integration with existing deep learning workflows?

Key findings

  • MolGraph successfully implements GNNs compatible with the Keras API, enabling seamless integration into existing deep learning workflows.
  • The GNN models achieved performance comparable to or better than descriptor- and fingerprint-based methods on MoleculeNet benchmarks.
  • The framework demonstrated utility in molecular identification tasks, showing improved predictive accuracy on retention time data.
  • The GNNs trained with MolGraph provided enhanced interpretability, enabling better understanding of retention time prediction mechanisms.
  • The package supports efficient graph construction and training, with validated performance on both public and real-world datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.