agentsclimarketplace

Gc ims matrix table generation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/gc-ims-matrix-table-generation

Use when after integratePeaks has been executed with a chosen integration method (e.g., fixed_size with RIP saturation threshold of 0.1) on a clustered, baseline-corrected GC-IMS dataset.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill gc-ims-matrix-table-generation

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

  • 15 stars15 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 file declares

Copied from the file, not written here

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

5.9 KB, 892 tokens by cl100k_base, as published. Nobody here has run it

gc-ims-matrix-table-generation

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Extract and format integrated peak intensities from Gas Chromatography–Ion Mobility Spectrometry samples into a peak_table_matrix where rows represent clusters and columns represent samples. This skill produces the quantitative feature table required for downstream statistical or multivariate analysis.

When to use

After integratePeaks has been executed with a chosen integration method (e.g., fixed_size with RIP saturation threshold of 0.1) on a clustered, baseline-corrected GC-IMS dataset. Use this skill when you need to convert peak integration results into a rectangular matrix format suitable for statistical or machine learning workflows.

When NOT to use

  • integratePeaks has not yet been run — you must first integrate peaks across samples
  • Peak clustering (clusterPeaks) has not been performed — peakTable requires clustered peak definitions
  • Input data has not undergone baseline correction and alignment — pre-processing is mandatory

Inputs

  • integration result object from integratePeaks (with fixed_size or other integration method and RIP saturation threshold applied)
  • preprocessed GC-IMS dataset (after alignment, baseline correction, and peak detection/clustering)

Outputs

  • peak_table_matrix: rows = peak clusters, columns = samples, values = intensity (some NA)

How to apply

Call the peakTable function on the integration result object returned by integratePeaks. The function extracts intensity values for each detected peak cluster across all samples and arranges them into a matrix where rows correspond to peak clusters and columns correspond to samples. Some entries will be NA (missing intensities for peaks not detected in certain samples), which signals that imputation or missing-value handling must follow. The output structure is designed to feed directly into statistical or multivariate analysis pipelines after NA handling.

Related tools

  • GCIMS (R package providing integratePeaks and peakTable functions for peak integration and matrix generation) — https://github.com/sipss/GCIMS
  • R (Runtime environment for GCIMS package execution)

Examples

peak_table_matrix <- peakTable(integratePeaks(clustered_peaks, integration_size_method='fixed_size', rip_saturation_threshold=0.1))

Evaluation signals

  • peak_table_matrix has dimensions [n_clusters × n_samples] with no unexpected transpose or dimension mismatch
  • Row names correspond to detected peak cluster identifiers; column names correspond to sample IDs
  • Intensity values are numeric; NA entries are present only where peaks were not detected in specific samples
  • Sum of intensities per sample is positive and within expected range for the instrument and RIP threshold used
  • No rows or columns are entirely NA or zero-valued (indicates successful detection in at least some samples)

Limitations

  • NA entries require downstream imputation or omission strategies before statistical analysis — peakTable does not perform imputation itself
  • Fixed-size integration with RIP saturation threshold = 0.1 may produce different peak counts and intensity distributions than other integration methods; method choice affects matrix dimensions
  • GCIMS uses delayed evaluations to save RAM; very large datasets may still cause memory issues during matrix materialization
  • Peak clustering quality directly affects row definitions in the matrix — poor clustering produces ambiguous or redundant rows

Evidence

  • [other] peakTable function produces a peak_table_matrix with rows representing clusters and columns representing samples: "The peakTable function produces a peak_table_matrix with rows representing clusters and columns representing samples, containing intensity values with some entries as NA that require imputation."
  • [other] Fixed-size integration method with RIP saturation threshold setting: "Execute integratePeaks function with integration_size_method set to 'fixed_size' and rip_saturation_threshold parameter set to 0.1 to integrate detected peaks across all samples."
  • [other] GCIMS preprocessing pipeline involves alignment and baseline correction before peak integration: "Load the preprocessed GC-IMS dataset (after alignment and baseline correction) into R using the GCIMS package."
  • [readme] GCIMS is an R package implementing a preprocessing pipeline for Gas Chromatography – Ion Mobility Spectrometry samples: "GCIMS is an R package implementing a preprocessing pipeline for Gas Chromatography – Ion Mobility Spectrometry samples."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.