agentsclimarketplace

Spectral features module integration

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/spectral-features-module-integration

Use when when you have a trained or untrained chemprop base model (graph convolution + readout layers) and need to extend it to predict infrared spectral properties rather than scalar molecular properties.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill spectral-features-module-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 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.6 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

spectral-features-module-integration

Summary

Integrate a spectral features module as an extension layer into the chemprop base message passing neural network architecture to enable infrared spectral predictions on molecular graphs. This skill bridges molecular graph representations with spectral property outputs by composing the base MPNN with learned spectral feature transformations.

When to use

When you have a trained or untrained chemprop base model (graph convolution + readout layers) and need to extend it to predict infrared spectral properties rather than scalar molecular properties. The trigger is the availability of a molecular graph representation (SMILES or explicit graph) paired with target infrared spectral data, and the goal is to reuse the learned molecular representations from chemprop while adding spectral-specific feature extraction.

When NOT to use

  • Your input is already a pre-trained chemprop-IR model; integration has already been completed and you should load and apply it directly.
  • Your molecular data is not in a graph-compatible format (SMILES, graph adjacency matrix, or molecular structure object) and would require separate preprocessing before spectral module integration.
  • You are predicting scalar molecular properties (e.g., solubility, LogP) rather than spectral properties; the base chemprop readout is already appropriate without spectral feature extension.

Inputs

  • chemprop base model checkpoint or architecture definition
  • molecular graph representation (SMILES string or graph adjacency/feature matrix)
  • spectral features module definition (neural network layers, feature transformation code)

Outputs

  • chemprop-IR model (chemprop base + spectral features module fused)
  • forward pass output tensor (spectral predictions, shape matching target spectral format)
  • model summary log (layer names, parameter counts, activation shapes)

How to apply

Clone the chemprop repository and review the base message passing neural network architecture to understand the graph convolution and readout pipeline. Implement a spectral features module (a learnable transformation or feature extraction layer) that accepts the output embeddings from the chemprop base model. Attach this module to the base model definition as a sequential or branched extension. Instantiate the chemprop-IR model with both the base MPNN and spectral features module, ensuring layer connectivity preserves parameter gradients. Execute a forward pass on a sample molecular input (SMILES converted to molecular graph) to verify compilation and confirm that the output shape and type match the target spectral representation (e.g., a spectral curve or binned intensity vector). Log the model summary and forward pass output to confirm layer counts, parameter flow, and output dimensionality.

Related tools

  • chemprop (Base message passing neural network architecture that processes molecular graphs and produces learned molecular representations; the foundation to which the spectral features module is attached.) — https://github.com/chemprop/chemprop
  • chemprop-IR (Extended architecture combining chemprop base MPNN with spectral features module for infrared spectral predictions.)

Evaluation signals

  • Model instantiation succeeds without shape mismatch or layer connectivity errors when chemprop base output is passed to spectral features module.
  • Forward pass produces output tensor with shape matching target spectral format (e.g., [batch_size, num_spectral_bins] or [batch_size, spectrum_length]).
  • Model summary log shows sequential layer flow from graph convolution → message passing → readout → spectral features module with no disconnected parameters.
  • Gradient flow is confirmed by performing a backward pass on a dummy loss and verifying that all spectral features module parameters have non-None gradients.
  • Output tensor dtype and value range (e.g., non-negative for intensity predictions, normalized for learned features) are consistent with the target spectral representation and loss function used during training.

Limitations

  • The integration assumes the base chemprop model's learned molecular representations are suitable for spectral prediction; poor base model quality will limit spectral module performance.
  • No changelog or versioning information is available for the chemprop-IR architecture variant, making it difficult to track breaking changes or reproducibility across versions.
  • The spectral features module design (architecture, dimensionality, regularization) is not fully specified in the article; practitioners must design or retrieve this module separately.
  • Integration does not include hyperparameter tuning or training procedures; forward pass verification only confirms structural correctness, not predictive accuracy.

Evidence

  • [intro] chemprop base MPNN architecture review: "Clone the chemprop repository from github.com/chemprop/chemprop and review the base message passing neural network architecture."
  • [intro] spectral features module as extension layer: "Implement the spectral features module as an extension layer to the base chemprop model, integrating it into the model definition."
  • [intro] chemprop-IR as extension of chemprop: "The chemprop-IR architecture is an extension of chemprop described in the paper"
  • [intro] forward pass verification on molecular input: "Execute a forward pass on a sample molecular input (SMILES or graph representation) to verify model compilation and parameter flow."
  • [intro] infrared spectral predictions via MPNN: "This repository contains message passing neural networks for spectral predictions as described in the paper"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.