agentsclimarketplace

Pathway feature selection information gain

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/pathway-feature-selection-information-gain

Use when after computing a pathway dysregulation score matrix (PDSmatrix) from metabolite-to-pathway mappings, apply this skill when you need to reduce the dimensionality of pathway features and select only those pathways with sufficient information content to discriminate between phenotype classes.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill pathway-feature-selection-information-gain

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

6.3 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

Reconstruct significant-pathway feature selection with lilikoi.featuresSelection

Summary

Uses information-gain-based feature selection to rank and filter pathways from a pathway dysregulation score (PDS) matrix by their relevance to phenotype, identifying the most discriminative metabolic pathways for downstream classification or regression analysis.

When to use

After computing a pathway dysregulation score matrix (PDSmatrix) from metabolite-to-pathway mappings, apply this skill when you need to reduce the dimensionality of pathway features and select only those pathways with sufficient information content to discriminate between phenotype classes or predict a continuous outcome. Use it before machine learning or prognosis modeling to avoid overfitting and improve interpretability.

When NOT to use

  • Input is already a pre-filtered or manually curated set of pathways; feature selection is redundant.
  • Phenotype data contains missing or misaligned sample labels that do not correspond row-wise to PDSmatrix columns.
  • PDSmatrix contains only a small number of pathways (< 10); information-gain ranking may be unstable or uninformative.

Inputs

  • PDSmatrix (pathway-by-sample matrix of dysregulation scores, numeric)
  • phenotype labels (vector of class labels or continuous outcome values)

Outputs

  • selected_Pathways_Weka (vector of selected pathway names and their information-gain scores)

How to apply

Load the PDSmatrix (pathway-by-sample feature matrix) and phenotype labels into R. Apply the lilikoi.featuresSelection function with the information-gain method and a threshold of 0.50 to rank pathways by their mutual information with the phenotype and filter those meeting the threshold. The function outputs selected_Pathways_Weka, a vector of pathway names and their information-gain scores. Information-gain scores quantify how much knowing a pathway's dysregulation reduces uncertainty about the phenotype; pathways exceeding 0.50 are retained for subsequent analysis. This threshold balances feature reduction with retention of phenotype-relevant signal.

Related tools

  • Lilikoi v2.0 (R package implementing lilikoi.featuresSelection function with information-gain method for pathway feature selection) — https://github.com/lanagarmire/lilikoi2
  • R (Programming environment and runtime for Lilikoi v2.0)

Examples

selected_Pathways_Weka <- lilikoi.featuresSelection(PDSmatrix, threshold=0.50, method="gain")

Evaluation signals

  • selected_Pathways_Weka contains non-empty vector of pathway names with numeric information-gain scores all ≥ 0.50.
  • Number of selected pathways is substantially smaller than input PDSmatrix rows, confirming dimensionality reduction.
  • Selected pathways show improved discriminative power in downstream classification (e.g., higher cross-validation accuracy or AUC) compared to using all pathways.
  • Information-gain scores are ranked monotonically; no duplicates or missing values in output.
  • Pathways in selected_Pathways_Weka are a strict subset of the row names in the input PDSmatrix.

Limitations

  • Information-gain threshold of 0.50 is data-dependent and may require tuning for datasets with different phenotype distributions or pathway counts.
  • Feature selection based on univariate information-gain does not account for pathway-pathway interactions or collinearity; selected pathways may be redundant.
  • Method assumes discrete or discretized phenotype values; continuous outcomes may require prior binning, which can lose information.
  • Selection is performed independently on the training set; without proper cross-validation during feature selection, performance may be overestimated.

Evidence

  • [other] The lilikoi.featuresSelection function operates on the PDSmatrix using the information-gain method with a threshold of 0.50 to select pathways significantly related to phenotype.: "The lilikoi.featuresSelection function operates on the PDSmatrix using the information-gain method with a threshold of 0.50 to select pathways significantly related to phenotype"
  • [other] Apply the information-gain method for feature selection with threshold 0.50 in Lilikoi v2.0 to rank and filter pathways by their relevance to the phenotype.: "Apply the information-gain method for feature selection with threshold 0.50 in Lilikoi v2.0 to rank and filter pathways by their relevance to the phenotype"
  • [readme] Lilikoi v2.0 is a modern, comprehensive package to enable metabolomics analysis in R programming environment.: "Lilikoi v2.0 is a modern, comprehensive package to enable metabolomics analysis in R programming environment"
  • [readme] Select the most signficant pathway related to phenotype. selected_Pathways_Weka= lilikoi.featuresSelection(PDSmatrix,threshold= 0.50,method="gain"): "selected_Pathways_Weka= lilikoi.featuresSelection(PDSmatrix,threshold= 0.50,method="gain")"

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.