# Paired Omics Data Structure Mapping

> Use when when you have a paired omics project document (JSON format) that combines MS/MS mass spectrometry data with genome identifiers, biosynthetic gene cluster information, sample preparation, extraction method, and instrumentation metadata, and you need to verify it conforms to the platform's.

- Skill: `holobiomicslab/paired-omics-data-structure-mapping` (Agent Skill)
- Install (CLI): `npx skillmds@latest add holobiomicslab/paired-omics-data-structure-mapping`
- Raw SKILL.md: https://api.skillmd.com/api/skills/holobiomicslab/paired-omics-data-structure-mapping/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: CC-BY-4.0
- Author: HolobiomicsLab (https://skillmd.com/u/holobiomicslab)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/holobiomicslab/paired-omics-data-structure-mapping

---


# paired-omics-data-structure-mapping

## Summary

Validate paired omics project documents against a JSON schema to ensure structural compliance and data integrity before storage or submission. This skill enforces format requirements for linking MS/MS mass spectra with genome, biosynthetic gene cluster, and metadata annotations.

## When to use

When you have a paired omics project document (JSON format) that combines MS/MS mass spectrometry data with genome identifiers, biosynthetic gene cluster information, sample preparation, extraction method, and instrumentation metadata, and you need to verify it conforms to the platform's structural and format requirements before uploading or storing it.

## When NOT to use

- Document is already known to be valid and has passed validation in a prior workflow step.
- Data is in a format other than JSON (e.g., CSV, XML, or unstructured text) — requires format conversion first.
- Schema file is unavailable or corrupted — validation cannot proceed without the authoritative schema.

## Inputs

- paired omics project JSON document
- JSON schema file (app/public/schema.json)

## Outputs

- validation report with pass/fail status
- list of schema violations (if any)
- error messages detailing specific constraint violations

## How to apply

Load the paired omics project JSON document and the JSON schema from app/public/schema.json. Apply JSON schema validation using npm test framework to check the document against all schema constraints. Capture validation results including pass/fail status, any schema violations, and error messages. Generate a structured validation report detailing compliance status and specific violations. The schema defines both structural requirements (e.g., required fields linking spectra to genome and gene cluster annotations) and format constraints (e.g., data types, identifier formats). Validation ensures data integrity before the web application stores the project as a file on disk or submits it to Zenodo.

## Related tools

- **npm** (Test framework for running JSON schema validation checks against project documents)
- **Github** (Version control and collaboration platform for managing schema definitions and validation workflows) — https://github.com/iomega/paired-data-form

## Examples

```
npm run test
```

## Evaluation signals

- Validation report explicitly states 'pass' or 'fail' for the entire document against schema constraints.
- All mandatory schema fields (those linking MS/MS spectra, genome, and gene cluster data) are present and correctly formatted.
- Error messages for violations cite specific schema constraints (e.g., required field missing, incorrect data type, invalid identifier format).
- Documents passing validation can be successfully stored as project files on disk or submitted to the web application without structural errors.
- No schema violations are reported for documents that comply with the structural and format requirements defined in app/public/schema.json.

## Limitations

- Validation checks only structural and format compliance; it does not verify semantic correctness (e.g., whether a genome identifier actually exists in GenBank or whether MS/MS spectra are scientifically meaningful).
- Schema version mismatches between the document and app/public/schema.json may cause false positives or false negatives if the schema has been updated without document migration.
- The npm test framework depends on npm dependencies being installed and up-to-date; missing or outdated dependencies may cause validation to fail or produce incomplete results.

## Evidence

- [other] The JSON schema file located at app/public/schema.json that defines the structural and format requirements for paired omics data projects.: "The application uses a JSON schema file located at app/public/schema.json that defines the structural and format requirements for paired omics data projects."
- [other] The workflow for applying JSON schema validation using npm test framework to check documents against all schema constraints.: "Apply JSON schema validation using npm test framework to check the document against all schema constraints."
- [other] Capturing validation results including pass/fail status, schema violations, and error messages.: "Capture validation results including pass/fail status, any schema violations, and error messages."
- [readme] The schema describes the format of a paired omics project document.: "The [JSON schema (app/public/schema.json)](app/public/schema.json) describes the format of an project."
- [readme] Links MS/MS mass spectra with genome, sample preparation, extraction method and instrumentation method.: "Links MS/MS mass spectra with genome, sample preparation, extraction method and instrumentation method"

