lc-ms-feature-quality-scoring
Summary
Compute per-feature quality scores for LC-MS detected features by evaluating peak shape, chromatographic metrics, signal-to-noise ratio, and coherence of isotopes/adducts. This skill produces a quality-annotated feature table with diagnostic flags (pass/fail/warning) suitable for downstream filtering and confidence assessment.
When to use
Apply this skill immediately after peak detection and feature table generation from LC-MS data, when you need to rank or filter features by confidence before annotation or statistical analysis. Use it when raw detected features lack quality assessment, or when you require per-feature diagnostic information to justify inclusion/exclusion thresholds.
When NOT to use
- Input is already a manually validated or literature-curated feature table where quality assessment is complete.
- Analysis requires only simple intensity filtering or m/z-based selection; use this skill only if multi-dimensional quality assessment is needed.
- Peak detection has not yet been performed; apply peak detection before quality scoring.
Inputs
- Feature table (pandas DataFrame or CSV format) from peak detection
- Per-feature attributes: retention time, m/z, peak shape metrics, signal-to-noise ratio, chromatographic metrics
Outputs
- Quality-annotated feature table with per-feature quality scores
- Quality flags per feature (pass/fail/warning)
- Diagnostic metrics per feature (peak definition, resolution, intensity consistency, isotope/adduct coherence)
How to apply
Load the feature table (e.g., peak detection output) into Python using pandas, extracting feature attributes including retention time, m/z, peak shape, signal-to-noise ratio, and chromatographic metrics. Invoke MassCube's quality evaluation module to compute individual quality dimensions: peak definition (peak shape regularity and baseline separation), chromatographic resolution, intensity consistency across scans, and isotope/adduct coherence. Aggregate these dimensions into a single comprehensive quality score per feature, then assign quality flags (pass/fail/warning) based on empirically derived or user-defined thresholds. Output the quality-annotated feature table alongside per-feature diagnostics for transparency and traceability.
Related tools
- masscube (Integrated LC-MS data processing package providing the quality evaluation module that computes per-feature quality scores, peak shape analysis, and isotope/adduct coherence assessment.) — https://github.com/huaxuyu/masscube/
- Python (Programming environment for loading feature tables via pandas, invoking MassCube quality functions, and outputting annotated results.)
Examples
from masscube import FeatureQualityEvaluator; import pandas as pd; features = pd.read_csv('peak_detection_output.csv'); evaluator = FeatureQualityEvaluator(); quality_table = evaluator.compute_quality_scores(features); quality_table.to_csv('quality_annotated_features.csv', index=False)
Evaluation signals
- Output feature table has the same number of rows as input feature table; no features are dropped during scoring.
- All features have non-null quality scores and assigned flags (pass/fail/warning); no missing values in quality columns.
- Per-feature diagnostics (peak definition, resolution, intensity consistency, isotope/adduct coherence) are numeric and within expected ranges (e.g., 0–1 for normalized metrics).
- Quality flags correlate with known artifact patterns (e.g., low SNR features flagged as 'fail', poor peak shape metrics correlate with 'warning').
- Summary statistics of quality scores show expected distribution (e.g., majority of features pass, small tail of warning/fail features).
Limitations
- Quality thresholds are heuristic; users must validate that empirical pass/fail cutoffs are appropriate for their specific LC-MS instrument, ionization mode, and metabolite classes.
- Feature quality evaluation assumes features have already been detected and peak-picked; garbage input (e.g., noise spikes or misaligned peaks from poor LC conditions) may yield misleading quality scores.
- Isotope and adduct coherence assessment requires that the feature table include annotations linking related m/z features; if such relationships are unavailable, this dimension cannot be evaluated.
- No changelog found; version-specific changes to quality metrics are not publicly documented, which may affect reproducibility across software versions.
Evidence
- [intro] Comprehensive feature quality evaluation as part of its LC-MS data processing pipeline: "MassCube provides comprehensive feature quality evaluation as part of its LC-MS data processing pipeline, which operates on detected features to generate per-feature quality scores."
- [other] Extract feature attributes and compute individual quality dimensions: "Extract feature attributes including retention time, m/z, peak shape, signal-to-noise ratio, and chromatographic metrics. 3. Compute individual quality dimensions (peak definition, chromatographic"
- [other] Aggregate per-feature quality scores and assign quality flags: "Aggregate per-feature quality scores into a single comprehensive metric and assign quality flags (pass/fail/warning). 5. Output a quality-annotated feature table with per-feature quality scores and"
- [readme] MassCube is an integrated Python package for LC-MS data processing: "masscube is an integrated Python package for liquid chromatography-mass spectrometry (LC-MS) data processing."
- [readme] Comprehensive feature quality evaluation as a core capability: "Comprehensive feature quality evaluation."
1---2name: lc-ms-feature-quality-scoring3description: Use when immediately after peak detection and feature table generation from LC-MS data, when you need to rank or filter features by confidence before annotation or statistical analysis.4license: CC-BY-4.05---67# lc-ms-feature-quality-scoring89## Summary1011Compute per-feature quality scores for LC-MS detected features by evaluating peak shape, chromatographic metrics, signal-to-noise ratio, and coherence of isotopes/adducts. This skill produces a quality-annotated feature table with diagnostic flags (pass/fail/warning) suitable for downstream filtering and confidence assessment.1213## When to use1415Apply this skill immediately after peak detection and feature table generation from LC-MS data, when you need to rank or filter features by confidence before annotation or statistical analysis. Use it when raw detected features lack quality assessment, or when you require per-feature diagnostic information to justify inclusion/exclusion thresholds.1617## When NOT to use1819- Input is already a manually validated or literature-curated feature table where quality assessment is complete.20- Analysis requires only simple intensity filtering or m/z-based selection; use this skill only if multi-dimensional quality assessment is needed.21- Peak detection has not yet been performed; apply peak detection before quality scoring.2223## Inputs2425- Feature table (pandas DataFrame or CSV format) from peak detection26- Per-feature attributes: retention time, m/z, peak shape metrics, signal-to-noise ratio, chromatographic metrics2728## Outputs2930- Quality-annotated feature table with per-feature quality scores31- Quality flags per feature (pass/fail/warning)32- Diagnostic metrics per feature (peak definition, resolution, intensity consistency, isotope/adduct coherence)3334## How to apply3536Load the feature table (e.g., peak detection output) into Python using pandas, extracting feature attributes including retention time, m/z, peak shape, signal-to-noise ratio, and chromatographic metrics. Invoke MassCube's quality evaluation module to compute individual quality dimensions: peak definition (peak shape regularity and baseline separation), chromatographic resolution, intensity consistency across scans, and isotope/adduct coherence. Aggregate these dimensions into a single comprehensive quality score per feature, then assign quality flags (pass/fail/warning) based on empirically derived or user-defined thresholds. Output the quality-annotated feature table alongside per-feature diagnostics for transparency and traceability.3738## Related tools3940- **masscube** (Integrated LC-MS data processing package providing the quality evaluation module that computes per-feature quality scores, peak shape analysis, and isotope/adduct coherence assessment.) — https://github.com/huaxuyu/masscube/41- **Python** (Programming environment for loading feature tables via pandas, invoking MassCube quality functions, and outputting annotated results.)4243## Examples4445```46from masscube import FeatureQualityEvaluator; import pandas as pd; features = pd.read_csv('peak_detection_output.csv'); evaluator = FeatureQualityEvaluator(); quality_table = evaluator.compute_quality_scores(features); quality_table.to_csv('quality_annotated_features.csv', index=False)47```4849## Evaluation signals5051- Output feature table has the same number of rows as input feature table; no features are dropped during scoring.52- All features have non-null quality scores and assigned flags (pass/fail/warning); no missing values in quality columns.53- Per-feature diagnostics (peak definition, resolution, intensity consistency, isotope/adduct coherence) are numeric and within expected ranges (e.g., 0–1 for normalized metrics).54- Quality flags correlate with known artifact patterns (e.g., low SNR features flagged as 'fail', poor peak shape metrics correlate with 'warning').55- Summary statistics of quality scores show expected distribution (e.g., majority of features pass, small tail of warning/fail features).5657## Limitations5859- Quality thresholds are heuristic; users must validate that empirical pass/fail cutoffs are appropriate for their specific LC-MS instrument, ionization mode, and metabolite classes.60- Feature quality evaluation assumes features have already been detected and peak-picked; garbage input (e.g., noise spikes or misaligned peaks from poor LC conditions) may yield misleading quality scores.61- Isotope and adduct coherence assessment requires that the feature table include annotations linking related m/z features; if such relationships are unavailable, this dimension cannot be evaluated.62- No changelog found; version-specific changes to quality metrics are not publicly documented, which may affect reproducibility across software versions.6364## Evidence6566- [intro] Comprehensive feature quality evaluation as part of its LC-MS data processing pipeline: "MassCube provides comprehensive feature quality evaluation as part of its LC-MS data processing pipeline, which operates on detected features to generate per-feature quality scores."67- [other] Extract feature attributes and compute individual quality dimensions: "Extract feature attributes including retention time, m/z, peak shape, signal-to-noise ratio, and chromatographic metrics. 3. Compute individual quality dimensions (peak definition, chromatographic"68- [other] Aggregate per-feature quality scores and assign quality flags: "Aggregate per-feature quality scores into a single comprehensive metric and assign quality flags (pass/fail/warning). 5. Output a quality-annotated feature table with per-feature quality scores and"69- [readme] MassCube is an integrated Python package for LC-MS data processing: "masscube is an integrated Python package for liquid chromatography-mass spectrometry (LC-MS) data processing."70- [readme] Comprehensive feature quality evaluation as a core capability: "Comprehensive feature quality evaluation."