Infrared spectral prediction task design
Use when when you have a dataset of molecules with experimentally measured or simulated infrared spectra and want to train a graph neural network to predict spectral features (e.g., absorption peaks, intensities) from molecular structure.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill infrared-spectral-prediction-task-designAssembled 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
7.2 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
infrared-spectral-prediction-task-design
Summary
Design and implement an infrared spectral prediction task by extending a message passing neural network (chemprop) with spectral feature processing and output layers. This skill enables molecular property models to predict infrared absorption spectra from molecular graphs.
When to use
When you have a dataset of molecules with experimentally measured or simulated infrared spectra and want to train a graph neural network to predict spectral features (e.g., absorption peaks, intensities) from molecular structure. Use this skill if your goal is to extend an existing chemprop implementation with spectral-specific featurization and loss functions rather than predicting scalar molecular properties.
When NOT to use
- Your goal is to predict a scalar molecular property (e.g., logP, melting point, solubility) — use base chemprop directly instead.
- You lack a documented chemprop-IR source repository or architectural specification — you cannot reliably reverse-engineer spectral modifications without reference.
- Your infrared data are already preprocessed into hand-crafted feature vectors — task design assumes raw or minimally processed spectra that require end-to-end learning.
Inputs
- Molecular graph representations (SMILES or molecular structure data)
- Experimental or simulated infrared spectra (wavenumber–intensity pairs or spectral features)
- Base chemprop repository source code
- chemprop-IR repository source code documenting architectural modifications
Outputs
- Extended chemprop model architecture with spectral feature modules and output layers
- Featurization pipeline for infrared spectral prediction
- Loss functions and metrics for spectral prediction tasks
- Reconstructed model documentation with layer counts, tensor shapes, and parameter counts
How to apply
Begin by cloning the base chemprop repository to understand the core message passing architecture and model classes. Then access the chemprop-IR extension to identify spectral-feature additions and modifications relative to base chemprop. Extract all new layers, input processing steps, and loss functions specific to infrared spectral prediction from the chemprop-IR source code. Modify chemprop's model definition to incorporate spectral feature handling, featurization modules, and output layers that produce infrared spectral predictions rather than scalar values. Finally, validate that your reconstructed architecture matches the documented chemprop-IR structure by comparing layer counts, input/output tensor shapes, and parameter counts against reference checkpoints or model summary documentation to ensure correctness.
Related tools
- chemprop (Base message passing neural network framework extended with spectral feature handling and infrared prediction output layers) — https://github.com/chemprop/chemprop
- chemprop-IR (Extension of chemprop documenting spectral-specific architectural modifications, featurization modules, and loss functions for infrared spectral prediction) — github:gfm-collab__chemprop-IR
Examples
# Clone base chemprop, examine core architecture
git clone https://github.com/chemprop/chemprop && cd chemprop
# Access chemprop-IR to extract spectral modifications
# Modify model.py to add spectral feature layers and infrared output head
# Validate tensor shapes: molecular_graphs -> message_passing -> spectral_features -> [wavenumber, intensity, ...] predictions
Evaluation signals
- Layer-by-layer comparison: reconstructed model layer counts, types, and parameter counts match documented chemprop-IR reference checkpoints exactly
- Tensor shape validation: input/output tensor shapes for molecular graphs and spectral features conform to expected dimensions throughout the pipeline
- Model summary consistency: model summary documentation (e.g., from model.summary() or equivalent) matches the published chemprop-IR specification
- Featurization module verification: spectral feature input processing and molecular graph encoding produce activations within expected value ranges
- Checkpoint loading test: trained chemprop-IR model checkpoints load without shape or parameter mismatches into reconstructed architecture
Limitations
- No changelog was found in the chemprop-IR repository, making it difficult to trace incremental modifications from base chemprop or identify deprecated components
- Architecture reconstruction depends entirely on source code availability and clarity; undocumented or obfuscated spectral modifications cannot be reliably identified
- The skill assumes infrared spectra are available in a consistent format (e.g., wavenumber–intensity pairs or fixed-length spectral vectors); heterogeneous spectral formats require additional preprocessing
- Validation requires reference model checkpoints or detailed model summary documentation; task design cannot be verified without ground truth architectural specifications
Evidence
- [intro] Extension of chemprop with spectral features: "chemprop-IR extends chemprop with new spectral features documented in the repository for infrared spectral predictions using message passing neural networks."
- [other] Core workflow for architecture reconstruction: "Extract and document all new layers, input processing steps, and loss functions specific to infrared spectral prediction from the chemprop-IR source code."
- [other] Validation by architectural comparison: "Validate that the reconstructed architecture matches the documented chemprop-IR structure by comparing layer counts, input/output tensor shapes, and parameter counts against reference checkpoints or"
- [intro] Message passing neural network foundation: "message passing neural networks for spectral predictions as described in the paper [Message Passing Neural Networks for Infrared Spectral Predictions]"
- [intro] Source repositories for implementation: "available in the chemprop GiHub repository"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.