agentsclimarketplace

Matrix directive collation validation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/matrix-directive-collation-validation

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 matrix-directive-collation-validation

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 you have IC-FTMS measurement records in JSON format with multiple samples per metabolite assignment and you need to verify that a matrix directive with collate='assignment' correctly groups records by assignment identifier and merges sample intensity values into a single dictionary per.

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

matrix-directive-collation-validation

Summary

Apply a matrix conversion directive with collate='assignment' to group IC-FTMS measurement records by metabolite assignment and merge their sample intensity data into unified dictionaries. This skill validates that the directive correctly consolidates multiple records sharing the same metabolite assignment into single output objects.

When to use

Use this skill when you have IC-FTMS measurement records in JSON format with multiple samples per metabolite assignment and you need to verify that a matrix directive with collate='assignment' correctly groups records by assignment identifier and merges sample intensity values into a single dictionary per unique assignment.

When NOT to use

  • Input records are not yet in the MESSES intermediate JSON format — use the extract command first to convert tabular data to JSON
  • You need to collate records by a different field (e.g., sample identifier or compound name) — the collate='assignment' directive is specific to assignment-based grouping
  • Records contain hierarchical or nested sample structures where intensity merging logic differs from simple dictionary aggregation — validate the directive behavior against your specific data schema first

Inputs

  • IC-FTMS measurement records in JSON format with multiple samples per metabolite assignment
  • matrix conversion directive specification with collate='assignment' parameter
  • experiment metadata in MESSES Experiment Description Specification format

Outputs

  • list of dictionaries grouped by metabolite assignment
  • each dictionary containing metabolite name and merged sample intensity data
  • validation report confirming correct collation of records by assignment

How to apply

Load the IC-FTMS measurement dataset from MESSES documentation in JSON format. Define a matrix conversion directive specifying collate='assignment' to group measurement records by their metabolite assignment field. Execute the MESSES convert command with this directive to transform the JSON structure into a list of dictionaries. For each unique assignment value in the input, verify that exactly one output dictionary exists containing the metabolite name and a merged collection of intensity values from all input samples sharing that assignment. Compare the resulting output structure against the expected JSON documented in the Collate section of the MESSES specification, checking that the number of output dictionaries matches the number of unique assignments and that no sample intensity data is lost or duplicated.

Related tools

  • MESSES (command-line tool and Python library that executes the convert command to apply matrix directives and transform JSON data according to collation specifications) — https://github.com/MoseleyBioinformaticsLab/messes
  • jsonschema (validates the JSON structure of measurement records and the output of the collation directive against the Experiment Description Specification schema) — https://pypi.org/project/jsonschema/
  • Python (runtime environment for MESSES package and JSON manipulation)

Examples

messes convert matrix your_data.json your_output.json --directive '{"collate": "assignment"}'

Evaluation signals

  • Number of output dictionaries equals the number of unique metabolite assignments in the input records
  • Each output dictionary contains exactly one metabolite name corresponding to its assignment group
  • All sample intensity values from input records with the same assignment are present in the merged output dictionary with no data loss
  • No duplicate intensity entries or sample data across output dictionaries
  • Output JSON structure validates against the Collate section schema in the MESSES documentation

Limitations

  • The collate='assignment' directive assumes a one-to-one mapping between assignment identifiers and metabolite names; conflicting metabolite names for the same assignment will not be detected or reported
  • Intensity value merging uses simple dictionary aggregation; complex or conditional merge logic (e.g., averaging, filtering by quality threshold) is not supported by this basic directive
  • The directive does not validate or reconcile differences in sample metadata or provenance across records being merged under the same assignment

Evidence

  • [other] When a matrix directive with collate='assignment' is applied to measurement records containing multiple samples for the same metabolite assignment, does the directive correctly group records by assignment and merge their sample intensity data into a single dictionary?: "When a matrix directive with collate='assignment' is applied to measurement records containing multiple samples for the same metabolite assignment, does the directive correctly group records by"
  • [other] The collate directive groups four measurement records into two dictionaries by assignment, with each dictionary containing the metabolite name and intensity values from all samples sharing that assignment: (S)-2-Acetolactate with two samples and (S)-3-Sulfonatolactate with two samples.: "The collate directive groups four measurement records into two dictionaries by assignment, with each dictionary containing the metabolite name and intensity values from all samples sharing that"
  • [other] Load the IC-FTMS measurement example dataset from the MESSES documentation in JSON format. Parse and apply a matrix conversion directive specifying collate='assignment' to transform the JSON structure. Execute the convert command with the matrix directive to produce a list of dictionaries.: "Load the IC-FTMS measurement example dataset from the MESSES documentation in JSON format. Parse and apply a matrix conversion directive specifying collate='assignment'"
  • [intro] The convert command is used to convert extracted and validated data from it's intermediate JSON form to the final desired format: "The convert command is used to convert extracted and validated data from it's intermediate JSON form to the final desired format"
  • [intro] To support the JSON-to-JSON conversion a relatively simple set of directives were developed: "To support the JSON-to-JSON conversion a relatively simple set of directives were developed"
  • [other] utilizing JSON Schema <https://json-schema.org/understanding-json-schema/>_ (jsonschema <https://pypi.org/project/jsonschema/>): "utilizing JSON Schema (jsonschema <https://pypi.org/project/jsonschema/>)"

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.