agentsclimarketplace

Overlapped peak separation evaluation

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/gc-ms/skills/overlapped-peak-separation-evaluation

Use when you have trained a GCMSFormer Transformer model on augmented simulated overlapped peaks and need to measure its generalization performance on unseen test data.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill overlapped-peak-separation-evaluation

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

7.5 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

overlapped-peak-separation-evaluation

Summary

Evaluate the performance of a Transformer-based model (GCMSFormer) for resolving overlapped peaks in GC-MS data by computing BLEU score on a held-out test set of simulated overlapped peaks. This skill assesses whether the model can accurately predict pure mass spectra and concentration distributions for complex mixtures.

When to use

You have trained a GCMSFormer Transformer model on augmented simulated overlapped peaks and need to measure its generalization performance on unseen test data. Apply this skill when you have a partitioned dataset (8:1:1 train/validation/test split) and want to validate that the model achieves the reported BLEU score benchmark (0.9988) or compare against a target threshold for mass spectral prediction accuracy.

When NOT to use

  • Test set is not held-out or overlaps with training/validation data (violates independence assumption for BLEU score validity).
  • Input peaks are not simulated overlapped peaks or do not follow the 100,000 augmented dataset distribution and augmentation protocol used for model training.
  • Model has not completed training and checkpoint selection on the validation set; premature evaluation will not reflect true generalization.

Inputs

  • trained GCMSFormer Transformer model (PyTorch checkpoint)
  • test set partition: 10,000 augmented simulated overlapped peaks (8:1:1 split)
  • target vocabulary (tgt_vacob) mapping mass spectral tokens
  • ground-truth pure mass spectra for test samples

Outputs

  • BLEU score (scalar, range 0–1; reported benchmark 0.9988)
  • predicted mass spectral matrix S for all test samples
  • predicted concentration distribution matrix C for all test samples
  • per-sample evaluation metrics and error analysis

How to apply

Load the trained GCMSFormer model checkpoint and the held-out test set (10,000 augmented simulated overlapped peaks in a standard 8:1:1 split). Run inference on the test set to generate predicted mass spectral matrices (S) and concentration distributions (C) using the model's Transformer encoder–decoder architecture. Compute the BLEU (Bilingual Evaluation Understudy) score metric comparing predicted mass spectra sequences against ground-truth pure component spectra. Report the test-set BLEU score and verify reproducibility against the reported benchmark of 0.9988. BLEU score directly measures the fidelity of predicted mass spectral peak sequences, serving as a proxy for the quality of overlapped peak deconvolution.

Related tools

Examples

model, Loss = train_model(para, TRAIN, VALID, tgt_vacob); from GCMSFormer.GCMSformer import evaluate; bleu_score = evaluate(model, TEST, tgt_vacob, device='cuda')

Evaluation signals

  • Computed BLEU score on test set matches or exceeds the reported benchmark of 0.9988, indicating reproducible model performance.
  • BLEU score is computed only on the held-out test partition (10,000 samples) with no data leakage from train or validation sets.
  • Predicted mass spectral sequences (output of Transformer decoder) tokenize correctly and are comparable in length and structure to ground-truth spectra.
  • Predicted concentration distribution matrix C is non-negative and sums to a physically valid total (e.g., per-sample mass balance check).
  • Per-sample BLEU scores show low variance across the test set, indicating stable and generalizable model behavior across diverse overlapped peak configurations.

Limitations

  • BLEU score measures sequence-level token overlap and may not fully capture the chemical accuracy of predicted mass spectra or concentration recovery (chemical validation required separately).
  • Evaluation is restricted to simulated overlapped peaks with known ground truth; performance on real GC-MS data with measurement noise and unknown peak composition may differ substantially.
  • BLEU score assumes a fixed vocabulary (tgt_vacob) and tokenization scheme; changes to augmentation parameters or token definitions will affect reproducibility.
  • The 8:1:1 train/validation/test split is fixed; results are not generalizable to different data partitioning or external datasets with different peak distributions or augmentation strategies.

Evidence

  • [intro] GCMSFormer achieved a BLEU score of 0.9988 on the test set when trained, validated, and tested with 100,000 augmented simulated overlapped peaks in an 8:1:1 ratio.: "its bilingual evaluation understudy (BLEU) on the test set was 0.9988"
  • [intro] The evaluation process involves partitioning the augmented dataset, training the model with validation checkpointing, and then computing BLEU on the held-out test set.: "The GCMSFormer model was trained, validated, and tested with 100,000 augmented simulated overlapped peaks in a ratio of 8:1:1"
  • [readme] BLEU score serves as the primary metric for assessing the quality of predicted mass spectral sequences in the deconvolution task.: "its bilingual evaluation understudy (BLEU) on the test set was 0.9988. With the aid of the orthogonal projection resolution method (OPR), GCMSFormer can predict the pure mass spectra"
  • [intro] The model outputs both mass spectral predictions and concentration distributions, which together constitute the complete deconvolution result.: "GCMSFormer can predict the pure mass spectra of all components in overlapped peaks (mass spectral matrix S), and then use the least squares method to find the concentration distribution matrix C"
  • [readme] PyTorch and Python 3 are required dependencies for running model inference and evaluation.: "- python3 - pytorch"

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.