Use when when you have preprocessed molecular graph data (node and edge
Scanned 9/12/2026
Install to Claude Code
npx -y skills add HolobiomicsLab/asb-skill-collections --skill gnn-architecture-design-for-molecular-graphs --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Gnn Architecture Design For Molecular Graphs?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/holobiomicslab-gnn-architecture-design-for-molecular-graphs)More formats (shields.io, HTML) on the badges page.
---
name: gnn-architecture-design-for-molecular-graphs
description: Use when when you have preprocessed molecular graph data (node and edge
tensors representing atoms and bonds) and need to train a regression model to predict
a continuous molecular property (e.g., LC retention time).
license: CC-BY-4.0
metadata:
edam_operation: http://edamontology.org/operation_3927
edam_topics:
- http://edamontology.org/topic_0209
- http://edamontology.org/topic_3372
- http://edamontology.org/topic_0154
tools:
- Python
- PyTorch
- RDKit
- GNN-RT (repository)
techniques:
- LC-MS
license_tier: open
provenance_tier: literature
derived_from:
- doi: 10.1021/acs.analchem.0c04071
title: GNN-RT
evidence_spans:
- Anaconda for python 3.6
claims: []
provenance:
collection: https://w3id.org/holobiomicslab/asb-skill/collection/metabolomics/v2
assembled_by: scripts/collect_metabolomics_collection.py
sources:
- build: coll_gnn_rt_cq
doi: 10.1021/acs.analchem.0c04071
title: GNN-RT
dedup_kept_from: coll_gnn_rt_cq
schema_version: 0.2.0
attribution:
generator: AgenticScienceBuilder
original_doi: 10.1021/acs.analchem.0c04071
all_source_dois:
- 10.1021/acs.analchem.0c04071
zenodo_doi: 10.5281/zenodo.20794027
curators: []
promoter: Louis-Félix Nothias
sponsor: CNRS & Université Côte d'Azur
---
# gnn-architecture-design-for-molecular-graphs
## Summary
Design and initialize a Graph Neural Network (GNN) architecture that accepts preprocessed molecular graphs as input and learns end-to-end data-driven molecular representations for regression tasks such as liquid chromatography retention time prediction. This skill bridges graph-structured chemistry data to differentiable learning models.
## When to use
When you have preprocessed molecular graph data (node and edge tensors representing atoms and bonds) and need to train a regression model to predict a continuous molecular property (e.g., LC retention time). Use this skill after data preprocessing but before configuring the training loop and loss function.
## When NOT to use
- Input data is not yet preprocessed into graph format (e.g., still SMILES strings or raw spectral data) — use Preprocess.py first
- Prediction target is categorical or multi-class rather than continuous regression — GNN-RT is designed for retention time regression, not classification
- Molecular graphs are unavailable or the task does not require learning molecular representations (e.g., simple featurized vectors exist)
## Inputs
- preprocessed molecular graph data (node features, edge indices, batch tensors)
- graph structure definitions (adjacency information, atom/bond encodings)
- PyTorch DataLoader with molecular graph batches
## Outputs
- initialized GNN model (PyTorch nn.Module)
- model architecture configuration (layer definitions, hidden dimensions)
- forward pass callable accepting molecular graph tensors
## How to apply
Initialize a GNN architecture in PyTorch that consumes preprocessed molecular graph inputs (atom and bond node features, adjacency information). Define the GNN layers to perform end-to-end learning of molecular representations by aggregating information across the graph structure. The architecture should output scalar regression predictions (e.g., predicted retention time values). Configure the model to accept batched graph data from a PyTorch DataLoader and ensure the output layer is appropriate for regression (typically a single linear output neuron). Validate that the model can perform forward passes on the preprocessed molecular graphs before entering the training loop.
## Related tools
- **PyTorch** (GNN model definition, initialization, tensor operations, and forward pass computation)
- **RDKit** (Preprocessing step (used in Preprocess.py) to generate molecular graph representations from chemical structures)
- **GNN-RT (repository)** (Reference implementation of end-to-end GNN architecture for LC retention time prediction) — https://github.com/Qiong-Yang/GNN-RT
## Evaluation signals
- Model successfully performs forward pass on batched preprocessed molecular graphs without shape or type errors
- Output tensor has correct shape (batch_size × 1) for regression predictions
- GNN layers properly aggregate node features across graph structure (verify by inspecting intermediate layer outputs)
- Model parameters are trainable (requires_grad=True) and gradients flow through all GNN layers during backpropagation
- Model checkpoint can be saved and loaded without corruption, preserving architecture and learned representations
## Limitations
- Accuracy of retention time predictions depends on quality and representativeness of preprocessed molecular graph data
- GNN architecture design choices (layer depth, hidden dimensions, aggregation functions) are not detailed in the README and may require empirical tuning
- Method is evaluated only on LC retention time prediction task; generalization to other molecular properties is not discussed
- No changelog or versioning information provided, making it unclear which architectural variants have been tested
## Evidence
- [readme] The GNN-RT can obtain the data-driven representations of molecules through the end-to-end learning with GNN, and predict the retention time with the GNN-learned representations.: "The GNN-RT can obtain the data-driven representations of molecules through the end-to-end learning with GNN, and predict the retention time with the GNN-learned representations."
- [other] Initialize a GNN architecture for end-to-end learning with molecular graph representations.: "Initialize a GNN architecture for end-to-end learning with molecular graph representations."
- [other] Load preprocessed molecular graph data (output from Preprocess.py) using Python and PyTorch.: "Load preprocessed molecular graph data (output from Preprocess.py) using Python and PyTorch."
- [readme] It takes molecular graph as the input, and the predicted retention time as the output.: "It takes molecular graph as the input, and the predicted retention time as the output."
- [other] Configure training loop with appropriate loss function and optimizer for regression on retention time targets.: "Configure training loop with appropriate loss function and optimizer for regression on retention time targets."
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!