agentsclimarketplace

Data integrity verification

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/ms-generic/skills/data-integrity-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 data-integrity-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 applying matchms metadata cleaning tools to normalize field values and standardize naming conventions on imported spectra (mzML, mzXML, msp, MGF, or JSON formats).

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.5 KB, 935 tokens by cl100k_base, as published. Nobody here has run it

data-integrity-verification

Summary

Validate cleaned mass spectrometry metadata against matchms schema requirements and test custom validation logic to ensure spectral dataset accuracy and integrity. This skill confirms that normalized metadata fields conform to expected types, ranges, and naming conventions before downstream analysis.

When to use

After applying matchms metadata cleaning tools to normalize field values and standardize naming conventions on imported spectra (mzML, mzXML, msp, MGF, or JSON formats). Use this skill when you need formal verification that metadata transformations have not introduced errors and that all required fields meet matchms schema specifications before proceeding to similarity comparisons or publication.

When NOT to use

  • Input spectral data has not yet been cleaned or imported into matchms format
  • No custom validation logic or schema requirements have been defined for your metadata fields
  • Validation is intended only as ad hoc spot-checking rather than systematic, repeatable verification

Inputs

  • cleaned spectrum dataset with normalized metadata (mzML, mzXML, msp, MGF, or JSON format)
  • matchms schema specification or validation rules
  • custom validation test suite (pytest)

Outputs

  • validated spectrum dataset with metadata conforming to matchms schema
  • validation report documenting transformations, failures, and schema violations
  • pytest pass/fail log confirming regression testing

How to apply

Load the cleaned spectrum dataset and systematically validate each metadata field against matchms schema requirements using built-in or custom validation logic. Run pytest on custom validation functions to verify that existing test suites pass and that no regressions have occurred. Document all validation failures and metadata transformations in a structured validation report, noting which spectra passed or failed and the specific schema violations encountered. This ensures reproducibility and traceability of the cleaning process.

Related tools

  • matchms (provides metadata cleaning tools, schema validation framework, and spectrum import/export utilities for normalized spectral data) — https://github.com/matchms/matchms
  • pytest (executes unit and integration tests on custom validation logic to verify existing tests pass and confirm data integrity)
  • Python (language for implementing custom validation functions and orchestrating schema verification workflows)

Examples

from matchms import Spectrum; import pytest; spectra = [load cleaned spectra]; [assert spectrum.metadata.get('mz') is not None for spectrum in spectra]; pytest.main(['-v', 'test_metadata_validation.py'])

Evaluation signals

  • All metadata fields conform to matchms schema type and range specifications with no violations reported
  • pytest test suite executes successfully with 100% pass rate on validation logic
  • Validation report systematically enumerates metadata transformations applied and any spectra that failed validation with specific schema violation reasons
  • Spot-check of validated metadata shows consistent normalization (e.g., standardized field names, no orphaned or malformed entries)
  • Validated spectrum dataset can be successfully re-exported to original or alternate matchms format without schema errors

Limitations

  • Validation accuracy depends on completeness and correctness of the schema specification; incomplete schemas may miss real data quality issues
  • Custom validation logic must be manually implemented per project; matchms provides the framework but not project-specific rules
  • Large spectral datasets may require batched or parallelized validation to avoid memory or performance bottlenecks
  • Validation can confirm structural conformance but cannot detect all logical or semantic inconsistencies in metadata (e.g., biologically impossible compound masses)

Evidence

  • [other] Validate cleaned metadata fields against matchms schema requirements to ensure data accuracy and integrity: "Validate cleaned metadata fields against matchms schema requirements to ensure data accuracy and integrity."
  • [other] Apply matchms metadata cleaning tools to normalize field values, standardize naming conventions, and remove or flag invalid entries: "Apply matchms metadata cleaning tools to normalize field values, standardize naming conventions, and remove or flag invalid entries."
  • [other] Run pytest on custom validation logic to verify existing tests pass: "Run pytest on custom validation logic to verify existing tests pass."
  • [other] Document any metadata transformations and validation failures in a validation report: "Document any metadata transformations and validation failures in a validation report."
  • [readme] Matchms offers an array of tools for metadata cleaning and validation, alongside basic peak filtering, to ensure data accuracy and integrity: "Matchms offers an array of tools for metadata cleaning and validation, alongside basic peak filtering, to ensure data accuracy and integrity."
  • [other] make sure the existing tests still work by running pytest: "make sure the existing tests still work by running pytest"

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 327,132. 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.