Multi algorithm comparative analysis
Use when when you have prepared metabolomics data (e.g., covid_data) with a binary outcome variable and need to select the most appropriate predictive algorithm for your classification task.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill multi-algorithm-comparative-analysisAssembled 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 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
7.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
multi-algorithm-comparative-analysis
License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->
Summary
Systematically train and evaluate multiple classification algorithms (logistic regression, random forest, XGBoost) on the same metabolomics dataset under identical cross-validation conditions to compare their performance metrics and identify algorithm-specific feature importance. This skill is essential for determining which algorithm best generalizes to binary classification tasks on metabolomic biomarkers.
When to use
When you have prepared metabolomics data (e.g., covid_data) with a binary outcome variable and need to select the most appropriate predictive algorithm for your classification task. Apply this skill after data preprocessing (imputation, normalization, format conversion) and feature selection, when you want to benchmark the three algorithms implemented in MeTEor under controlled cross-validation (stratified k-fold or leave-one-out) to report comparative performance and robustness.
When NOT to use
- Input dataset contains missing values or non-numeric metabolite columns — preprocess and impute first using KNN or other methods.
- Outcome variable is continuous (regression) rather than binary — use regression algorithm comparison instead.
- Sample size is extremely small (n < 20) — cross-validation schemes may be unreliable; consider leave-one-out cross-validation or external validation cohorts.
Inputs
- Preprocessed metabolomics dataset in long format (rows: observations, columns: metabolite features + outcome variable)
- Binary outcome variable (categorical grouping variable)
- Metabolite feature matrix (numeric type, missing values imputed, normalized)
- Cross-validation configuration (fold count, stratification preference)
Outputs
- Per-algorithm classification performance metrics (accuracy, sensitivity, specificity, AUC, precision, F1-score)
- ROC curves for each algorithm (if test set size > 0%)
- Feature importance rankings (top 10 features per algorithm)
- Cross-validation fold scores or holdout test set predictions
- Comparative summary table of algorithm performance
How to apply
Load the preprocessed metabolomics dataset into MeTEor and configure it via the Configurator module, specifying the timepoint, categorical grouping variable (binary outcome), and metabolite features of interest. In the Prediction module, set the test set size and cross-validation scheme (stratified 5-fold cross-validation or leave-one-out cross-validation are options). Train logistic regression (LR), random forest (RF), and XGBoost (XGB) models sequentially, recording performance metrics (accuracy, sensitivity, specificity, AUC) and ROC curves for each. Extract the ten most important features ranked by each algorithm to assess feature selection consistency and interpretability. Compare performance across algorithms using the same evaluation metric (e.g., AUC or cross-validation fold scores) to select the model with the highest generalization capability and most reliable feature rankings.
Related tools
- MeTEor (R Shiny application for training and comparing logistic regression, random forest, and XGBoost classifiers on metabolomics data with integrated cross-validation and feature importance extraction) — https://github.com/scibiome/meteor
- R (Statistical computing environment for executing MeTEor and underlying algorithm implementations)
Examples
library(MeTEor); data(covid_data); meteor() # Configure dataset in Configurator (select binary outcome and metabolite features), then use Prediction module: select stratified 5-fold CV, train LR/RF/XGB models, compare AUC and extract top-10 features from each.
Evaluation signals
- Each algorithm produces non-null performance metrics (AUC, accuracy, sensitivity, specificity) and ROC curves for the same cross-validation splits.
- Feature importance rankings are consistent across folds for the same algorithm (low variance in top-10 features across CV splits).
- Cross-validation fold scores sum correctly to the reported overall performance metric; no missing fold results.
- Algorithm ranking by AUC or primary metric is reproducible across independent runs with the same random seed.
- Feature importance lists from RF and XGB contain metabolite names matching the input feature set; LR produces coefficient magnitudes that correlate with RF/XGB importance for top features.
Limitations
- MeTEor's prediction module does not natively support multiclass classification; this skill is restricted to binary outcomes.
- Feature importance from logistic regression (coefficient magnitude) may not be directly comparable to tree-based importances (mean decrease in impurity or gain); interpretation requires algorithm-specific context.
- Small sample sizes or highly imbalanced outcomes may produce unstable feature rankings and inflated cross-validation scores; stratified cross-validation is recommended but does not guarantee robustness with n < 50.
- XGBoost and Random Forest are computationally expensive on high-dimensional metabolomics datasets (thousands of features); feature pre-selection is advisable.
Evidence
- [other] task_002 finding: "MeTEor implements three classification algorithms—logistic regression (LR), random forest (RF), and extreme gradient boosting (XGB)—for binary classification tasks on metabolomics data such as"
- [other] task_002 workflow steps 2–5: "Access the Prediction module and select test set size and cross-validation type (stratified 5-fold cross-validation or leave-one-out cross-validation). Train logistic regression (LR) model and record"
- [other] task_002 research question: "What are the per-algorithm classification performance scores when MeTEor's three algorithms (logistic regression, random forest, and gradient boosting) are applied to binary classification on"
- [readme] README feature list: "Prediction models: Logistic regression, Random Forest, XGBoost"
- [other] task_002 workflow step 6: "Retrieve and record the ten most important features identified by the models (or fewer if not all features are used)."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.