Quality control visualization metabolomics
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill quality-control-visualization-metabolomicsAssembled 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 completing kNN imputation, outlier sample removal, and variance-stabilizing normalization (vsn) on a MultiAssayExperiment object containing metabolite measurements.
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.3 KB, as published. Nobody here has run it
quality-control-visualization-metabolomics
License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->
Summary
Generate and interpret quality control plots that verify normalized metabolite measurements show comparable distributions across samples and experimental groups after preprocessing. This skill validates that variance stabilization and outlier removal have achieved homogeneous signal quality before downstream statistical analysis.
When to use
After completing kNN imputation, outlier sample removal, and variance-stabilizing normalization (vsn) on a MultiAssayExperiment object containing metabolite measurements. Use this skill to confirm that normalized measurements exhibit stable variance across the measurement range and comparable distributions within and between sample groups (e.g., tumor vs. normal tissue) before proceeding to differential analysis or correlation network construction.
When NOT to use
- Input data has not yet been normalized via vsn or equivalent variance-stabilizing method; use na_heatmap and outlier_heatmap first.
- Outlier samples have not been identified and removed; quality_plot will not accurately reflect true signal quality if outliers remain.
- Sample grouping factor is not available or is undefined in colData; the grouping parameter is essential for stratified visualization.
Inputs
- MultiAssayExperiment object (preprocessed: post-imputation, post-outlier removal, post-vsn normalization)
- sample metadata (colData) with group assignments (e.g., tumor_normal factor)
Outputs
- quality control plot (visualization of normalized metabolite distributions stratified by sample group)
- visual assessment of variance homogeneity and inter-group comparability
How to apply
Call the quality_plot function on the preprocessed MultiAssayExperiment object, specifying the grouping factor (e.g., group_factor='tumor_normal') and group-specific label colors to visualize measurement distributions stratified by sample class. The plot should display normalized metabolite values across samples, revealing whether variance remains nearly constant over the measured spectrum and whether distributions are comparable across groups. Inspect the plot for outlier samples persisting after preprocessing, asymmetric or heavy-tailed distributions that suggest incomplete normalization, and systematic differences in variance or central tendency between groups that would indicate batch effects or preprocessing failure. Success is confirmed when all samples show similar distribution shapes and spreads, group-specific patterns are driven by biology rather than technical artifact, and no isolated samples deviate markedly from their group's distribution.
Related tools
- MetaboDiff (Provides quality_plot function for QC visualization of normalized metabolite measurements in MultiAssayExperiment objects) — https://github.com/andreasmock/MetaboDiff
- MultiAssayExperiment (Container object that integrates assay (normalized metabolite measurements), rowData (metabolite annotations), and colData (sample metadata with group labels) for quality_plot input)
- R (Environment for executing quality_plot and related MetaboDiff QC functions)
Examples
quality_plot(met, group_factor="tumor_normal", label_colors=c("darkseagreen","dodgerblue"))
Evaluation signals
- Normalized metabolite measurements display comparable distribution shapes and spreads across all samples within each group.
- Variance (spread/dispersion) remains approximately constant across the full range of normalized metabolite values, with no systematic increase or decrease with signal intensity.
- Group-specific patterns in the plot reflect expected biological differences (e.g., tumor vs. normal) rather than technical artifacts or preprocessing failures.
- No isolated samples deviate markedly from their assigned group's distribution, indicating successful outlier removal in prior preprocessing steps.
- Visual inspection confirms that samples do not cluster into unexpected sub-groups that would suggest unaccounted batch effects or unknown stratification.
Limitations
- quality_plot provides visual assessment only; it does not quantify variance homogeneity or perform formal statistical tests (e.g., Levene's test), so interpretation requires domain judgment.
- The plot's interpretability depends on the choice of grouping factor; if samples are grouped incorrectly or mixed-effects structure is present (e.g., multiple batches within a group), the plot may not reveal true preprocessing success.
- If outlier samples were not removed in prior steps, quality_plot will show them as deviants but will not automatically exclude them; the user must re-run outlier_heatmap and remove_cluster to improve signal quality and then regenerate the plot.
- Label color choices and plot aesthetics are user-specified; poor color contrast or overcrowding of samples can obscure distributional patterns even if preprocessing was successful.
Evidence
- [methods] quality_plot - generates quality control plots: "Generate a quality control plot with quality_plot to verify that normalized measurements show comparable distributions across samples and groups."
- [methods] vsn ensures constant variance over the measured spectrum: "Variance stabilizing normalization (vsn) is used to ensure that the variance remains nearly constant over the measured spectrum"
- [methods] quality_plot function call with group_factor: "quality_plot(met, group_factor="tumor_normal", label_colors=c("darkseagreen","dodgerblue"))"
- [readme] MetaboDiff QC workflow context: "The MetaboDiff packages aims to provide a low-level entry to differential metabolomic analysis with R by starting off with the table of metabolite measurements."