agentsclimarketplace

Data quality validation lipidomics

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/ms-generic/skills/data-quality-validation-lipidomics

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-quality-validation-lipidomics

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 loading and parsing raw MRM export files (TSV, CSV, or vendor-specific formats) into a pandas DataFrame and decomposing lipid nomenclature, before performing lipid matching, statistical analysis, or visualization.

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.8 KB, as published. Nobody here has run it

data-quality-validation-lipidomics

Summary

Validates the integrity and structural correctness of parsed MRM lipidomics data by checking for missing values, confirming numeric types in quantitative columns, and flagging malformed lipid identifiers before downstream matching and statistical analysis. This skill ensures data reliability and prevents propagation of corrupted records into analysis workflows.

When to use

After loading and parsing raw MRM export files (TSV, CSV, or vendor-specific formats) into a pandas DataFrame and decomposing lipid nomenclature, before performing lipid matching, statistical analysis, or visualization. Apply this skill whenever you have converted raw instrument output into a structured tabular format and need to confirm it meets minimum quality standards for downstream processing.

When NOT to use

  • Input is already a feature table from a vendor-supplied, pre-validated processing pipeline (e.g., analyst software output confirmed free of parsing errors).
  • Data has already undergone quality control and integrity checks in a prior workflow step.
  • Raw instrument output is in a binary or compressed format (e.g., .d, .raw) that has not yet been converted to text-based or structured tabular form.

Inputs

  • Parsed pandas DataFrame with standardized columns (retention time, m/z, intensity, lipid ID, sample identifier)
  • Lipid nomenclature specification or regex pattern defining valid lipid class and chain composition formats

Outputs

  • Cleaned, validated CSV table with one row per lipid feature per sample
  • Validation report or log file listing flagged rows, missing values, type mismatches, and malformed identifiers

How to apply

After parsing the raw MRM export file and standardizing column headers (retention time, m/z, intensity, lipid ID, sample identifier), systematically validate: (1) scan for missing values in critical numeric columns (m/z, intensity) and flag rows with NaN or null entries; (2) confirm that m/z and intensity columns are numeric types (float or int, not string); (3) apply regex or string-based pattern matching to lipid identifiers to detect malformed nomenclature (e.g., missing chain composition, incorrect class prefix, or invalid modification syntax); (4) log all validation failures with row indices and failure reasons to enable targeted remediation. Rows that fail any check should be flagged and optionally removed before output. The validated, cleaned dataset is output as a CSV with one row per lipid feature per sample, ready for matching and statistical analysis.

Related tools

  • pandas (DataFrame loading, column standardization, missing value detection, and type confirmation for numeric columns)
  • Python regex (re module) (Pattern matching and decomposition of lipid nomenclature to detect malformed identifiers)

Examples

import pandas as pd; df = pd.read_csv('raw_mrm_export.csv'); df = df.dropna(subset=['m/z', 'intensity']); df['m/z'] = pd.to_numeric(df['m/z'], errors='coerce'); df['intensity'] = pd.to_numeric(df['intensity'], errors='coerce'); invalid = df[df['m/z'].isna() | df['intensity'].isna()]; print(f'Flagged {len(invalid)} rows with invalid m/z or intensity'); df_clean = df.dropna(subset=['m/z', 'intensity']); df_clean.to_csv('validated_mrm_data.csv', index=False)

Evaluation signals

  • All rows in output CSV have non-null values in m/z and intensity columns, or missing values are explicitly documented in the validation log.
  • m/z and intensity columns are confirmed as numeric type (float or int); no string-type entries remain in these fields.
  • Every lipid identifier in the output conforms to the specified nomenclature regex pattern (e.g., lipid class prefix, chain composition, and modification state are parseable and complete).
  • Validation log lists all flagged rows with row index, column name, and specific failure reason (e.g., 'NaN in intensity', 'malformed lipid ID').
  • Output row count equals input row count minus flagged/removed rows; discrepancy is documented and justified.

Limitations

  • Validation logic is dependent on correct specification of lipid nomenclature regex patterns; incorrect or incomplete patterns may fail to detect genuinely malformed identifiers or produce false positives.
  • Missing values in non-critical metadata columns (e.g., sample notes) are not flagged by default; custom logic may be needed if such columns are required downstream.
  • The skill does not detect semantic errors (e.g., physically impossible m/z values for a given lipid class or retention times inconsistent with the instrumental method) — only syntactic and type-level errors.
  • Vendor-specific export format variations (column names, delimiter, encoding) may require case-by-case parser tuning before validation can proceed reliably.

Evidence

  • [other] Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers.: "Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers."
  • [readme] streamline various tasks such as data parsing, matching, statistical analysis, and visualization: "streamline various tasks such as data parsing, matching, statistical analysis, and visualization"
  • [other] Output cleaned, structured table as CSV with one row per lipid feature per sample.: "Output cleaned, structured table as CSV with one row per lipid feature per sample."

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.