RepositoryJupyter Notebook
HFooladi

HFooladi/GNNs-For-Chemists

Implementations of different GNNs from scratch for chemists

188stars
32forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: gnn

#1 Repository of the week

1
TINIX TRENDING·Topic: cheminformatics

#1 Repository of the week

1
TINIX TRENDING·Topic: graph-neural-network

#1 Repository of the week

GNNs For Chemists Banner

GNNs For Chemists

Implementations of different graph neural networks (GNNs) from scratch for Chemists

Project Description

This repository serves as an educational resource for chemists and researchers interested in applying Graph Neural Networks to chemical problems. Each notebook progressively builds upon fundamental concepts, from basic graph representation of molecules to advanced molecular property prediction models.

Prerequisites

To get the most out of this tutorial series, you should have:

  • Python: Basic to intermediate Python programming skills
  • Chemistry: Fundamental understanding of molecular structures and properties
  • Machine Learning: Basic familiarity with neural network concepts
  • Mathematics: Basic understanding of linear algebra and calculus fundamentals
  • Packages: Familiarity with PyTorch, NumPy, and RDKit (installation instructions provided in notebooks)

No prior experience with graph neural networks is required - we build the concepts from the ground up!

Resources

Core Tutorial Sequence

The following notebooks (01, 02, 03, ...) form the main learning path and are essential for understanding GNN fundamentals:

NotebookDescriptionOpen in ColabYear
01_GNN_representation.ipynbRepresenting molecules as graphsOpen In Colab2025
02_GNN_message_passing.ipynbUnderstanding the message-passing conceptOpen In Colab2025
03_GNN_molecular_activity_predictor.ipynbBuild and train the first GNNOpen In Colab2025
04_GNN_GCN.ipynbGraph convolutional networkOpen In Colab2025
05_GNN_GAT.ipynbGraph attention networkOpen In Colab2025
06_GNN_GIN.ipynbGraph isomorphism networkOpen In Colab2025
07_GNN_SchNet.ipynbSchNet: continuous-filter convolutions on 3D atomic positionscoming soon—
08_GNN_DimNet.ipynbDimeNet: directional message passing with bond anglescoming soon—
09_GNN_EGNN.ipynbE(3)-equivariant graph neural networkcoming soon—
10_GNN_GT.ipynbGraph Transformer / Graphormercoming soon—

Supplementary Deep-Dive Notebooks

These notebooks (01.1, 01.2, ...) provide additional details and advanced topics that complement the main series:

NotebookDescriptionOpen in ColabYear
01.1_GNN_3D_representation.ipynbInteractive 3D molecular visualizations and stereochemistryOpen In Colab2025
01.2_GNN_alternative_representations.ipynbAlternative graph encodings: dual graphs, atom-bond networkscoming soon—
01.3_GNN_fragment_representation.ipynbFragment-based molecular representations (BRICS, functional groups, ring systems)coming soon—
01.4_GNN_frameworks.ipynbFramework comparison: PyTorch Geometric vs. DGL vs. Jraphcoming soon—
01.5_GNN_graph_characteristics.ipynbWhat molecular graphs look like statistically — size, sparsity, degree, diameter — and why GNNs use 3–5 layersOpen In Colab2026
02.1_GNN_oversmoothing.ipynbVisualizing oversmoothing: why very deep GNNs failOpen In Colab2026

Contributing

Contributions are welcome! Please see CONTRIBUTIONS.md for guidelines on how to contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use this repository in your research, please cite it as:

@misc{gnns_for_chemists,
  author = {Fooladi, Hosein},
  title = {GNNs For Chemists: Implementations of Graph Neural Networks from Scratch for Chemical Applications},
  year = {2025},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/HFooladi/GNNs-For-Chemists}},
  note = {Educational resource for chemists, pharmacists, and researchers interested in applying Graph Neural Networks to chemical problems}
}

Similar Projects

Discover other similar projects and AI models.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryC++
gnina/gnina

A deep learning framework for molecular docking

1.0k
Oct 30, 2026
RepositoryC++
chemfiles/chemfiles

Library for reading and writing chemistry files

204
Nov 20, 2026
RepositoryPython
PeiJieSun/diffnet

Graph Neural Network based Social Recommendation Model. SIGIR2019.

186
Jun 2, 2024
RepositoryPython
egyptdj/stagin

STAGIN: Spatio-Temporal Attention Graph Isomorphism Network

114
Jul 16, 2023
RepositoryPython
ZJUFanLab/scDeepSort

Cell-type Annotation for Single-cell Transcriptomics using Deep Learning with a Weighted Graph Neural Network

113
Jul 6, 2023
RepositoryPython
benedekrozemberczki/PDN

The official PyTorch implementation of "Pathfinder Discovery Networks for Neural Message Passing" (WebConf '21)

58
Dec 28, 2025
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026