Gnn architecture design for molecular graphs
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).From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill gnn-architecture-design-for-molecular-graphsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.2 KB, 946 tokens by cl100k_base, as published. Nobody here has run it
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."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.