agentsclimarketplace

Mass track correspondence verification

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/mass-track-correspondence-verification

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill mass-track-correspondence-verification

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

  • 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 author says it does

Copied from the file, not written here

Use when after constructing a LOWESS regression function (rt_cal_dict) to align retention times between a reference sample and a current sample, validate that high-selectivity landmark peaks in the reference sample (mSelectivity > 0.

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

9.0 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it

mass-track-correspondence-verification

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Verify that landmark peaks identified in a reference sample correctly map to their counterparts in aligned samples by checking scan-number correspondence after LOWESS-based retention time calibration. This confirms that the RT alignment function preserves peak identity across the sample cohort.

When to use

After constructing a LOWESS regression function (rt_cal_dict) to align retention times between a reference sample and a current sample, validate that high-selectivity landmark peaks in the reference sample (mSelectivity > 0.99, prominence > 20% of peak height) correctly correspond to their aligned landmarks in the current sample by verifying scan-number mappings stay within the calibration bounds.

When NOT to use

  • Before LOWESS regression has been performed on landmark peak pairs—verification requires a fitted rt_cal_dict.
  • When landmark peaks have not been filtered for high selectivity (mSelectivity ≤ 0.99 or no prominence filter applied)—correspondence checks assume selectivity pre-filtering.
  • If the goal is to detect individual outlier peaks in a mass track; use audit_mass_track or stats_detect_elution_peaks instead for peak-level QC.

Inputs

  • rt_cal_dict (sparse scan-number mapping dictionary from LOWESS calibration)
  • landmark_peaks_reference (high-selectivity peaks from reference sample: mSelectivity > 0.99, prominence > 20% of peak height)
  • landmark_peaks_current (good-selectivity peaks from current sample, restricted to mass tracks aligned to reference landmarks)
  • scan_number_pairs (tuples of sample_RT_number and reference_RT_number from good landmark peaks)

Outputs

  • validation_report (boolean pass/fail and diagnostic metrics)
  • correspondence_mapping (verified scan-number alignments for each landmark peak)
  • out_of_bounds_landmarks (list of landmark peaks failing calibration bounds checks)

How to apply

Apply the generated rt_cal_dict sparse calibration dictionary to transform scan numbers of landmark peaks from the current sample into reference RT space. Verify that each transformed scan number (1) matches the recorded reference scan number for that landmark peak within acceptable tolerance, (2) remains within the ±10% extension margins applied during LOWESS regression fitting to ensure extrapolation validity, and (3) maintains monotonic ordering (no RT inversions). If any landmark peak fails these checks, investigate whether the peak selectivity criteria were too permissive, whether the LOWESS regression overfitted due to outlier peaks, or whether genuine sample-to-sample retention time drift exceeds the model's assumptions. Re-audit mass tracks (audit_mass_track) or relax min_peak_height thresholds if a systematic calibration failure is detected.

Related tools

Evaluation signals

  • All landmark peak scan numbers transform via rt_cal_dict without raising out-of-bounds exceptions (transformed values remain within sample RT boundaries)
  • Transformed scan numbers match recorded reference scan numbers for each landmark peak with zero or minimal expected rounding error
  • Monotonic ordering is preserved: if scan_number_i < scan_number_j in current sample, then calibrated_scan_i < calibrated_scan_j in reference space
  • At least 90% of landmark peaks pass correspondence verification; failures are systematically logged with reason codes (e.g., selectivity dropout, extrapolation exceeds ±10%)
  • rt_cal_dict does not contain gaps or discontinuities that would violate RT relationship continuity implied by LOWESS smoothing

Limitations

  • Landmark peak identification depends on stringent selectivity thresholds (mSelectivity > 0.99); if few or no peaks meet this criterion in a sample, correspondence verification has insufficient data and cannot validate the RT calibration.
  • LOWESS regression adds ±10% extension boundaries to stabilize convergence; validation is restricted to scans within these margins, so RT alignment for very early or very late eluting peaks may not be verifiable.
  • Correspondence checks assume that mass track alignment has already succeeded; if misaligned mass tracks are passed to landmark detection, landmark pairs will be spurious and correspondence verification will falsely pass.
  • The method does not detect bimodal or multimodal RT drift; if retention time shifts non-monotonically across the sample, LOWESS may produce a smooth function that obscures the underlying pathology.

Evidence

  • [other] Validation: verify that rt_cal_dict enables accurate RT alignment by confirming landmark peak scan numbers map correctly and that extrapolation remains bounded within ±10% extension margins.: "verify that rt_cal_dict enables accurate RT alignment by confirming landmark peak scan numbers map correctly and that extrapolation remains bounded within ±10% extension margins"
  • [other] Identify high-selectivity landmark peaks in the reference sample using criteria: mSelectivity > 0.99, min_peak_height satisfied (default 1e5), prominence > 20% of peak height, and single peak per mass track.: "Identify high-selectivity landmark peaks in the reference sample using criteria: mSelectivity > 0.99, min_peak_height satisfied (default 1e5), prominence > 20% of peak height"
  • [other] Select good landmark peaks from the current sample by applying the same selectivity criteria, but restricted to mass tracks already aligned to the reference landmarks.: "Select good landmark peaks from the current sample by applying the same selectivity criteria, but restricted to mass tracks already aligned to the reference landmarks"
  • [other] Perform LOWESS regression (scipy.signal fitting) on the pairs of (sample_RT_number, reference_RT_number) from the good landmark peaks, adding 10% extension boundaries at both ends to constrain convergence.: "Perform LOWESS regression (scipy.signal fitting) on the pairs of (sample_RT_number, reference_RT_number) from the good landmark peaks, adding 10% extension boundaries"
  • [other] Export the regression function as a sparse scan-number mapping dictionary (rt_cal_dict) that records only differing values and stays within sample RT boundaries.: "Export the regression function as a sparse scan-number mapping dictionary (rt_cal_dict) that records only differing values and stays within sample RT boundaries"

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 328,083. 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.